Jump to content

Recommended Posts

Posted

I can't find in "options/adj conrol" a key bind for arming ejection seat (EJECTION CONTROLS ARMED) lever - left front of seat.

It is a kind of pain in the neck for home cockpit VR to search blind for mouse just to arm ejection seat, while everything else can be done by buttons etc.

Cheers

 

Posted

adding the line of code below to the file "default.lua" gives you a command binding for a maintained 2-position ON/OFF switch. ON = Locked, OFF = Armed:

{down = cpt_commands.EjectionSafetyLever, up = cpt_commands.EjectionSafetyLever, value_down = 1.0, value_up = 0.0, cockpit_device_id = devices.CPT_MECH, name = _('Ejection Safety Lever 2-Pos ARMED/LOCKED'), category = {_('Systems')}},

If you don't have such a switch or prefer to use a pair of pushbuttons, you need to add these 2 lines of code:

{down = cpt_commands.EjectionSafetyLever, value_down = 1.0, cockpit_device_id = devices.CPT_MECH, name = _('Ejection Safety Lever ARMED'), category = {_('Systems')}},
{down = cpt_commands.EjectionSafetyLever, value_down = 0.0, cockpit_device_id = devices.CPT_MECH, name = _('Ejection Safety Lever LOCKED'), category = {_('Systems')}},

 

  • Thanks 1

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

  • 1 month later...
Posted

Excellent, I was just coming on here to ask about the same thing. I can currently fly an entire mission starting cold and dark without touching my keyboard or mouse other than the ejection seat arming and AI comms.

Ryzen 3700X, MSI X370 Gaming Pro Carbon, 32GB DDR4-3200, MSI GTX 1070, TM Warthog HOTAS, TM Cougar MFD's, TekCreations F-16 ICP, TrackIR 5, 1080P 55" TV. All mounted to Next Level Racing Flight Stand

  • 2 years later...
Posted (edited)

Hi all,

I am trying to get this to work and am having some trouble.  I have added the above line to both the DCS Install folder\mods\aircraft\F-16c\input\joystick\default.lua and the  DCS Install folder\mods\aircraft\F-16c\input\keyboard\default.lua files.  It shows up int the control setup as an assignable keyboard command but it doesn't show up as an assignable joystick/throttle command.  I also tried adding it to just the joystick dafault.lua file, but that didn't work either.

I added the command at the bottom of the file, just before the end of rile/return.

Any idea of what I'm doing wrong?

Edited by AKA_Clutter

----------------

AKA_Clutter

 

Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080  FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.

Posted
14 hours ago, AKA_Clutter said:

...I added the command at the bottom of the file, just before the end of rile/return.

 

That's definitively the wrong insert point. It must be inserted after these lines (beginning of the file)

local cockpit = folder.."../../../Cockpit/Scripts/"
dofile(cockpit.."devices.lua")
dofile(cockpit.."command_defs.lua")

local res = external_profile("Config/Input/Aircrafts/common_joystick_binding.lua")

join(res.keyCommands,{

and before these lines (near the end of file):

})

-- joystick axes 
join(res.axisCommands,{

I recommend to insert near the beginning of the file.

  • Thanks 1

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Posted
2 hours ago, LeCuvier said:

... .... .....

and before these lines (near the end of file):

})

-- joystick axes 
join(res.axisCommands,{

I recommend to insert near the beginning of the file.

Works like a charm now.

And it makes sense.  With them at the bottom of the file, it would treat the line as an axes.

Thanks!

----------------

AKA_Clutter

 

Win 10 Pro, Intel i7 12700k @4.6 GHz, EVGA RTX 3080  FTW, Ultra 64 GB G.Skill DDR4 3600 RAM, Acer 27" flat screen, HP Reverb G2, TM Warthog HOTAS with Virpil warBRD base, MFG Rudder Pedals, Virpil TCS Rotor Base with AH-64Dcollective, TrackIR 5 Pro w/Vector Expansion, PointCTRL.

  • 1 year later...
  • 1 month later...
Posted

Can DCS make this change? I don't really like going into the code or whatever it's called. Don't want to screw something up worse or violate any multiplayer authentication as well.

Posted
6 hours ago, Pribs86 said:

Can DCS make this change? I don't really like going into the code or whatever it's called. Don't want to screw something up worse or violate any multiplayer authentication as well.

Of course they can. But they obviously don't see this as a priority. This thread starts in January 2021 and they have never responded in any way.

  • Like 1
  • Thanks 1

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Posted
On 4/14/2025 at 2:56 AM, LeCuvier said:

Of course they can. But they obviously don't see this as a priority. This thread starts in January 2021 and they have never responded in any way.

It was a rhetorical question, sorry.

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...