-0303- Posted July 16, 2019 Share Posted July 16, 2019 Just going through the switches to start it up. (Bolded is verbatim as spelled) Accum switch --------------(add toggle on/off) Shunt switch ---------------(add toggle on/off) Radio switch ---------------(add toggle on/off) Fuel valve ------------------(add toggle open/close) Primary fuel Pump --------(add toggle lock/close) wording says open/close, but better wording would be lock/unlock or screw/unscrew maybe Primary fuel Switch -------(add rotary) or maybe CW CCW Ignition switch -------------(add rotary) or maybe CW CCW (just rotary not CW CCW is good enough for the P-51 magnets) Intel Core i7 3630QM @ 2.40GHz (Max Turbo Frequency 3.40 GHz) | 16.0GB Dual-Channel DDR3 @ 798MHz | 2047MB NVIDIA GeForce GT 635M | 447GB KINGSTON SA400S37480G (SATA-2 (SSD)) Link to comment Share on other sites More sharing options...
zaelu Posted July 17, 2019 Share Posted July 17, 2019 Gear direction lever needs commands too [sIGPIC][/sIGPIC] I5 4670k, 32GB, GTX 1070, Thrustmaster TFRP, G940 Throttle extremely modded with Bodnar 0836X and Bu0836A, Warthog Joystick with F-18 grip, Oculus Rift S - Almost all is made from gifts from friends, the most expensive parts at least Link to comment Share on other sites More sharing options...
LeCuvier Posted July 19, 2019 Share Posted July 19, 2019 Here are some additions to the "default.lua" I use: {down = 3026, up = 3026, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, value_up = 0, name = _('Accum switch 2-Poa ON/OFF'), category = _('Systems')}, {down = 3022, up = 3022, cockpit_device_id = devices.MOTOR_SYSTEM, value_down = 1.0, value_up = 0.0, name = _('Ignition switch 2-Pos BOTH/OFF'), category = _('Engine Control')}, {down = 3062, up = 3062, cockpit_device_id = devices.MOTOR_SYSTEM, value_down = 1, value_up = 0, name = _('Fuel valve 2-Pos OPEN/CLOSE'), category = _('Fuel System Controls')}, {down = 3027, up = 3027, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, value_up = 0, name = _('Shunt switch 2-Pos ON/OFF'), category = _('Systems')}, {down = 3028, up = 3028, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, value_up = 0, name = _('Radio switch 2-Pos ON/OFF'), category = _('Systems')}, {down = 3024, up = 3024, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, value_up = 0, name = _('Pitot heating switch 2-Pos ON/OFF'), category = _('Systems')}, {down = 3025, up = 3025, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, value_up = 0, name = _('Nav light switch 2-Pos ON/OFF'), category = _('Systems')}, {down = 3046, up = 3046, cockpit_device_id = devices.MOTOR_SYSTEM, value_up = 1, value_down = 0, name = _('Supercharger switch 2-Pos HIGH/LOW'), category = _('Engine Control')}, {down = 3069, up = 3069, cockpit_device_id = devices.COMMON_SYSTEM, value_down = 1, value_up = 0, name = _('Mech sight 2-Pos ON/OFF'), category = _('Weapons')}, {down = 3700, up = 3700, cockpit_device_id = devices.COMMON_SYSTEM, value_down = 1, value_up = 0, name = _('Sight filter 2-Pos ON/OFF'), category = _('Weapons')}, {down = 3003, up = 3003, cockpit_device_id = devices.OXYGEN_SYSTEM, value_down = -1, value_up = 1, name = _('Oxygen shutoff valve 2-Pos OPEN/CLOSE'), category = _('Systems')}, 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 Link to comment Share on other sites More sharing options...
-0303- Posted July 21, 2019 Author Share Posted July 21, 2019 (edited) These work for the joystick. I tried to apply them to the keyboard. I understand one edits one file for the joystick and another file for the keyboard: C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\I-16\Input\I-16\joystick\default.lua C:\Program Files\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\I-16\Input\I-16\keyboard\default.lua (For Accum Switch) I tried the to add this line (the one that works for the joystick) to the keyboard file: {down = 3026, up = 3026, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, value_up = 0, name = _('Accum switch 2-Pos ON/OFF'), category = _('Systems')}, This works except it flips randomly 1x or 2x (ie back again) when pushed. ~ There is one ready made 'toggle' and that is the "Mixture Control (rotary)". It's just 2 positions so I would rather call it a toggle than a "rotary" but never mind that. Stripped of key assignment (Combos...) it looks like this: {down = 3004, cockpit_device_id = devices.MOTOR_SYSTEM, value_down = 1, name = _('Mixture control (rotary)'), category = _('Engine Control')},So I tried copying this but changing it to "Accum..." instead. Ie I changed 3004 to 3026 and changed name and category. Like this: {down = 3026, cockpit_device_id = devices.ELECTRIC_SYSTEM, value_down = 1, name = _('Accum switch 2-Pos ON/OFF'), category = _('Systems')},I added that to keyboard file. This doesn't even show up in the "ADJUST CONTROLS" menu. Looking at the original "Mixture Control" code, noting that there is no "Mixture On" or "Mixture Off" calls and that it is only given argument "value_down" and not given any "value_up", makes me think the toggle functionality for "Mixture Control" is hidden inside the call to "devices.ELECTRIC_SYSTEM" and therefore this toggling only works for "Mixture control (rotary)". Edited July 21, 2019 by -0303- Intel Core i7 3630QM @ 2.40GHz (Max Turbo Frequency 3.40 GHz) | 16.0GB Dual-Channel DDR3 @ 798MHz | 2047MB NVIDIA GeForce GT 635M | 447GB KINGSTON SA400S37480G (SATA-2 (SSD)) Link to comment Share on other sites More sharing options...
LeCuvier Posted July 21, 2019 Share Posted July 21, 2019 The commands I added mostly have "...2-Pos..." in their names. They are meant to be used with Maintained ON/OFF switches. They do one thing when the contact closes ("down") and another thing when the contact opens ("up"). They cannot work with the keyboard. For use with the keyboard each of them needs to be divided into 2 separate commands. 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 Link to comment Share on other sites More sharing options...
Home Fries Posted November 2, 2019 Share Posted November 2, 2019 Gear direction lever needs commands too +1. This is the only thing keeping me from doing a full-blown Warthog Throttle gear mapping. -Home Fries My DCS Files and Skins My DCS TARGET Profile for Cougar or Warthog and MFDs F-14B LANTIRN Guide Link to comment Share on other sites More sharing options...
gillesdrone Posted February 8, 2020 Share Posted February 8, 2020 I have finalise the " defaut.lua " for the joystick folder {action = 3001, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Engine RPM Setting')},--bon {action = 3044, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Mixture Setting Axis')}, --bon {action = 3042, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('WEP Setting Axis')},--bon {action = 3047, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Motor cowl flaps Setting Axis')},--bon {action = 3048, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Oil radiator Setting Axis')},--bon put it Mods/Aircraft/I-16/joystickdefault.lua Link to comment Share on other sites More sharing options...
JAPman Posted July 23, 2022 Share Posted July 23, 2022 On 2/9/2020 at 1:59 AM, gillesdrone said: I have finalise the " defaut.lua " for the joystick folder {action = 3001, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Engine RPM Setting')},--bon {action = 3044, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Mixture Setting Axis')}, --bon {action = 3042, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('WEP Setting Axis')},--bon {action = 3047, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Motor cowl flaps Setting Axis')},--bon {action = 3048, cockpit_device_id = devices.MOTOR_SYSTEM, name = _('Oil radiator Setting Axis')},--bon put it Mods/Aircraft/I-16/joystick default.lua 16.45 kB · 113 downloads This is excellent!!! OS:Windows 7 Ultimate CPU:Core i7-2700K 4.8GHz Mother Board:Asrock Z77Extreme6 Memory:G.SKILL DDR3-2133 16GB Graphic Card:AMD HD7970 1125/1575MHz Display:Eyefinity / Square x3 Link to comment Share on other sites More sharing options...
Recommended Posts