Scorpion27 Posted January 23, 2021 Posted January 23, 2021 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 2
LeCuvier Posted January 23, 2021 Posted January 23, 2021 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')}}, 1 2 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
Skligmund Posted March 16, 2021 Posted March 16, 2021 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
AKA_Clutter Posted May 22, 2023 Posted May 22, 2023 (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 May 22, 2023 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.
LeCuvier Posted May 23, 2023 Posted May 23, 2023 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. 3 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
AKA_Clutter Posted May 23, 2023 Posted May 23, 2023 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! 2 ---------------- 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.
Aronis Posted February 16 Posted February 16 Was looking for same thing, will this modification make you have issues on-line gaming??? Mike
Pribs86 Posted April 14 Posted April 14 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. 1
LeCuvier Posted April 14 Posted April 14 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. 2 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
Pribs86 Posted April 15 Posted April 15 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. 1
YoYo Posted August 22 Posted August 22 On 1/23/2021 at 10:14 AM, Scorpion27 said: 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 Hello ED, can you add it too? F-16C hasnt still this 2 buttons .... The other topic: @Flappie , any chances? Maybe it's just a small matter and half an hour of work? 3 Webmaster of http://www.yoyosims.pl Win 10 64, i9-13900 KF, RTX 5090 32Gb OC, RAM 64Gb Corsair Vengeance LED OC@3600MHz,, 3xSSD+3xSSD M.2 NVMe, Predator XB271HU res.2560x1440 27'' G-sync, Sound Blaster Z + 5.1, TiR5, [MSFS, P3Dv5, DCS, RoF, Condor2, IL-2 CoD/BoX] VR fly only: Meta Quest Pro
Scott-S6 Posted September 28 Posted September 28 This is the one startup element which requires me to use the mouse, which is very annoying. Everything else is bound in my cockpit. 2
Red Dog Posted Monday at 07:30 AM Posted Monday at 07:30 AM Kind bump for this to be added please 4 Have a Bandit Day Red Dog [sIGPIC] http://www.ravico.com/ST/perso/Sig_generale.png [/sIGPIC]
LeCuvier Posted yesterday at 11:32 AM Posted yesterday at 11:32 AM 12 hours ago, Mapi said: @ ED How long does it take? 3 to 4 weeks? It took me about 15 minutes plus a bit of testing time, to add a line into the "default.lua" for "UI Layer", so it works across all aircraft modules. 2 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
Pribs86 Posted yesterday at 02:49 PM Posted yesterday at 02:49 PM 3 hours ago, LeCuvier said: It took me about 15 minutes plus a bit of testing time, to add a line into the "default.lua" for "UI Layer", so it works across all aircraft modules. Any other fixes for those of us who don't know how to code or add lua lines? Thanks in advance! 1
MAXsenna Posted yesterday at 03:54 PM Posted yesterday at 03:54 PM Any other fixes for those of us who don't know how to code or add lua lines? Thanks in advance!Don't remember if I have suggested this to you before, but have a look at Quaggles Keybind Injector. It's a small single file you can push after every update, (with a mod manager), and doesn't break IC. Then you can keep all your edits in your Saved Games. Add Munkwolf's Keybind Repository, and you will have many missing keybinds premade for you.Cheers! Sent from my SM-A536B using Tapatalk
MAXsenna Posted yesterday at 04:05 PM Posted yesterday at 04:05 PM (edited) 4 hours ago, LeCuvier said: It took me about 15 minutes plus a bit of testing time, to add a line into the "default.lua" for "UI Layer", so it works across all aircraft modules. Hold on! You can add both the triple and single press keybind for ejection to the UI Layer? And it works in every module, even 3rd parties? That's pretty neat, and I guess it works because as @BIGNEWY told me in another thread today that it's hard coded in the core. The triple sequence that is. Edit: If this works in the UI Layer, it should work in the General category too, and that's probably a better place, and should absolutely be implemented by ED. Edited yesterday at 04:08 PM by MAXsenna
ED Team BIGNEWY Posted yesterday at 04:26 PM ED Team Posted yesterday at 04:26 PM 19 minutes ago, MAXsenna said: because as @BIGNEWY told me in another thread today that it's hard coded in the core. x3 ctrl + e is hardcoded in dcs has been for over 16 years, as I mentioned we do have a request for a single button eject and have done for some time, but it is very low priority. thank you 1 Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal
MAXsenna Posted yesterday at 04:38 PM Posted yesterday at 04:38 PM 10 minutes ago, BIGNEWY said: x3 ctrl + e is hardcoded in dcs has been for over 16 years, as I mentioned we do have a request for a single button eject and have done for some time, but it is very low priority. thank you Yeah, I know. Apologies for pestering you yet again. But if this can implemented in two simple commands as both 3x and 1x in the general category across all modules, it would be worth pursuing IMHO.
ED Team BIGNEWY Posted yesterday at 04:49 PM ED Team Posted yesterday at 04:49 PM 8 minutes ago, MAXsenna said: Yeah, I know. Apologies for pestering you yet again. But if this can implemented in two simple commands as both 3x and 1x in the general category across all modules, it would be worth pursuing IMHO. as mentioned if we do it for one we would have to do it for all, then we have to pull a dev from other tasks to do it, and it just isn't high enough priority to do that. The most I can do is bump the report internally. thank you 2 Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal
Pribs86 Posted yesterday at 04:55 PM Posted yesterday at 04:55 PM I personally don't care for the 1x button press for the ejection seat, but I know some do, which is great. But I just want a binding so I can arm the seat with my button box - same button box I use to close the canopy and open/close the canopy safety latch. So it's in the same place like all the other jets I fly and don't have to keep clicking it with the mouse. Thanks for the consideration and passing this along! Appreciate you!
MAXsenna Posted yesterday at 05:02 PM Posted yesterday at 05:02 PM 6 minutes ago, BIGNEWY said: as mentioned if we do it for one we would have to do it for all, then we have to pull a dev from other tasks to do it, and it just isn't high enough priority to do that. The most I can do is bump the report internally. thank you Yes, I'm well aware, and I pinged you by mistake. Not trying to argue at all. The UI Layer and General are global for all modules, that's my point. And neither ED nor 3rd party devs would ever have to touch the ejection sequence in any module ever after. After all it's obvious your devs are heading in that direction seeing more and keybinds that are identical across modules are moved to common categories and that's awesome for us users! I know you have brought the request further, so I don't expect anymore than that. 3 minutes ago, Pribs86 said: I personally don't care for the 1x button press for the ejection seat, but I know some do, which is great. Personally, I use a macro on one of macro keyboards on an Esc key, which is even lighted red. VoiceAttack too for good measure. But I plan to make a handle, and that's where it comes in handy, and I'll add the arming keybind to the same contraption. 1
LeCuvier Posted yesterday at 05:23 PM Posted yesterday at 05:23 PM 1 hour ago, MAXsenna said: Hold on! You can add both the triple and single press keybind for ejection to the UI Layer? And it works in every module, even 3rd parties? That's pretty neat, and I guess it works because as @BIGNEWY told me in another thread today that it's hard coded in the core. The triple sequence that is. Edit: If this works in the UI Layer, it should work in the General category too, and that's probably a better place, and should absolutely be implemented by ED. My added line actually triggers the "Eject" command 3 times with a single button press. Twice when you push the button down, and once when you release the button. This is the LUA line: {down = iCommandPlaneEject, pressed = iCommandPlaneEject, up = iCommandPlaneEject, name = _('Eject (press once)'), category = _('Systems')}, And of course I have all modded "default.lua" files under saved games, using the Command Injector by @Quaggles, so I don't have to mess around after every update. Is "General" a better place than "UI Layer"? I wouldn't know why. 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
MAXsenna Posted yesterday at 05:36 PM Posted yesterday at 05:36 PM 12 minutes ago, LeCuvier said: Is "General" a better place than "UI Layer"? I wouldn't know why. Just my personal opinion for consistency, as in General we have commands that are identical across the modules, while the UI Layer have more of the User Interface commands.
Recommended Posts