Jump to content

Spitfire LF Mk. IX has new logic in default.lua!


Recommended Posts

I wanted to edit the default.lua under "C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft\SpitfireLFMkIX\Input\SpitfireLFMkIX\joystick" in order to use single ON/OFF switches for some of the commands, just as I do in most other modules I own. For example, I wanted to use a single ON/OFF switch for the commands "Gunsight Master ON" and "Gunsight Master Off", rather than 2 switches or pushbuttons or a toggle. Like in all other modules, I expected to find action commands with these names. But no luck!

The command "Gunsight Master ON" in Options /Controls has the name 'Input.SpitfireLFMkIX.gun_sight_master_1' in the default.lua file. This means that there must be a translation table somewhere; but I have not found any.

Has anybody figured this out?

PS: I know that this could be solved by use of some 3rd party software; but I do not want to go there.

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

It basically still works the same way as before. The only difference is that the names seem to be variables now as you rightly said. I also have not figured out where exaclty to look those up - would be interesting though. However, for the introduction of new controls, it is not important since you can simply rename those to your linking.

 

For example, here is my list of additional control inputs, which works just fine:

-- Magnetos Toggles
{down = device_commands.Button_15, up = device_commands.Button_15, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Magneto 1 On/Off'), category = _('_My Buttons')},
{down = device_commands.Button_17, up = device_commands.Button_17, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Magneto 2 On/Off'), category = _('_My Buttons')},
{down = device_commands.Button_25, up = device_commands.Button_25, cockpit_device_id  = devices.CONTROLS,       value_down = 0.0, value_up = 1.0, name = _('Undercarriage (gear) Up/Down'), category = _('_My Buttons')},
{down = device_commands.Button_3,  up = device_commands.Button_3,  cockpit_device_id = devices.OXYGEN,          value_down = 1.0, value_up = 0.0, name = _('Oxygen Valve Open/Close'), category = _('_My Buttons')},
{down = device_commands.Button_7,  up = device_commands.Button_7,  cockpit_device_id = devices.CONTROLS,        value_down = 1.0, value_up = 0.0, name = _('Navigation Lights On/Off)'), category = _('_My Buttons')},
{down = device_commands.Button_9,  up = device_commands.Button_9,  cockpit_device_id = devices.CONTROLS,        value_down = 1.0, value_up = 0.0, name = _('Flaps Up/Down'), category = _('_My Buttons')},
{down = device_commands.Button_11, up = device_commands.Button_11, cockpit_device_id = devices.CONTROLS,        value_down = 1.0, value_up = 0.0, name = _('Undercarriage Indicator Blind Up/Down'), category = _('_My Buttons')},
{down = device_commands.Button_19, up = device_commands.Button_19, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Supercharger On/Off'), category = _('_My Buttons')},
{down = device_commands.Button_25, up = device_commands.Button_25, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Booster Coil Button Cover Open/Close'), category = _('_My Buttons')},
{down = device_commands.Button_33, up = device_commands.Button_33, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Tank Pressurizer On(Off'), category = _('_My Buttons')},
-- Gun Sight Tint Screen
{down = device_commands.Button_16, up = device_commands.Button_16, cockpit_device_id = devices.WEAPONS,         value_down = 1.0, value_up = 0.0, name = _('Gun Sight Tint Screen On/Off'), category = _('_My Buttons')},
[b]-- Gun Sight Master Switch
{down = device_commands.Button_18, up = device_commands.Button_18, cockpit_device_id = devices.WEAPONS,         value_down = 1.0, value_up = 0.0, name = _('Gun Sight Master Switch On/Off'), category = _('_My Buttons')},[/b]
-- Radio Remote Channel Switcher - Dimmer Toggle
{down = device_commands.Button_6,  up = device_commands.Button_6,  cockpit_device_id = devices.VHF_RADIO,       value_down = 1.0, value_up = 0.0, name = _('Radio Remote Channel Switcher Dimmer On/Off'), category = _('_My Buttons')},
-- Radio Remote Channel Switcher - Transmit Lock Toggle
{down = device_commands.Button_18, up = device_commands.Button_18, cockpit_device_id = devices.VHF_RADIO,       value_down = 1.0, value_up = 0.0, name = _('Radio Remote Channel Switcher Transmit Lock On/Off'), category = _('_My Buttons')},
-- Radio Remote Channel Switcher - Mode Selector
{down = device_commands.Button_8,  up = device_commands.Button_7,  cockpit_device_id  = devices.VHF_RADIO,      value_down =-1.0, value_up = 0.0, name = _('Radio Mode T/R'), category = _('_My Buttons')},
{down = device_commands.Button_7,  up = device_commands.Button_7,  cockpit_device_id  = devices.VHF_RADIO,      value_down = 1.0, value_up = 0.0, name = _('Radio Mode Rem/R'), category = _('_My Buttons')},
-- Throttle Quadrant - Mix Cut-Off Lever
{down = device_commands.Button_9,  up = device_commands.Button_9,  cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 0.0, value_up = 1.0, name = _('Mix Cut-Off Lever On/Off'), category = _('_My Buttons')},
-- Throttle Quadrant - U/C Indicator Cut-Off Toggle
{down = device_commands.Button_99, up = device_commands.Button_99, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 0.0, value_up = 1.0, name = _('Undercarriage Indicator Cut-Off On/Off'), category = _('_My Buttons')},
-- Radiator Control Toggle
{down = device_commands.Button_33, up = device_commands.Button_33, cockpit_device_id = devices.CONTROLS,        value_down = 1.0, value_up = 0.0, name = _('Radiator Control On/Off'), category = _('_My Buttons')},
-- Pitot Heater Toggle
{down = device_commands.Button_35, up = device_commands.Button_35, cockpit_device_id = devices.CONTROLS,        value_down = 1.0, value_up = 0.0, name = _('Pitot Heater On/Off'), category = _('_My Buttons')},
-- Fuel Pump Toggle
{down = device_commands.Button_43, up = device_commands.Button_43, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Fuel Pump On/Off'), category = _('_My Buttons')},
-- Carb. Air Control Lever
{down = device_commands.Button_45, up = device_commands.Button_45, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Carb. Air Control Lever On/Off'), category = _('_My Buttons')},
-- De-Icer Lever
{down = device_commands.Button_21, up = device_commands.Button_21, cockpit_device_id = devices.CONTROLS,        value_down = 1.0, value_up = 0.0, name = _('De-Icer Lever Up/Down'), category = _('_My Buttons')},
-- I.F.F. Control Box - I.F.F. Upper Toggle (Type B)
{down = device_commands.Button_17, up = device_commands.Button_17, cockpit_device_id = devices.TERTIARY_CONTROLS,value_down = 1.0,value_up = 0.0, name = _('I.F.F. Upper Toggle (Type B) On/Off'), category = _('_My Buttons')},
-- I.F.F. Control Box - I.F.F. Lower Toggle (Type D)
{down = device_commands.Button_19, up = device_commands.Button_19, cockpit_device_id = devices.TERTIARY_CONTROLS,value_down = 1.0,value_up = 0.0, name = _('I.F.F. Lower Toggle (Type D) On/Off'), category = _('_My Buttons')},
-- Fuel Cock
{down = device_commands.Button_37, up = device_commands.Button_37, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Fuel Cock Open/Close'), category = _('_My Buttons')},
-- Droptank Cock
{down = device_commands.Button_41, up = device_commands.Button_41, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Droptank Cock Open/Close'), category = _('_My Buttons')},
-- Canopy Movement Controls
{down = device_commands.Button_51, up = device_commands.Button_51, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Canopy Open/Close'), category = _('_My Buttons')},
-- Side Door Movement Controls
{down = device_commands.Button_59, up = device_commands.Button_59, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Side Door Open/Close'), category = _('_My Buttons')},

PS: The gun sight master switch is bold.


Edited by funkyfranky

A warrior's mission is to foster the success of others.

i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2

RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss

Link to comment
Share on other sites

It basically still works the same way as before. The only difference is that the names seem to be variables now as you rightly said. I also have not figured out where exaclty to look those up - would be interesting though. However, for the introduction of new controls, it is not important since you can simply rename those to your linking.

 

Thanks, that's good news. I will give it a try. I'm wondering though why they did it that way. Seems that every programmer does things his own ways, and that's not what I would expect in a well-managed software development organization.

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

I still don't understand why won't they just add the toggle switch logic as it is something A LOT of people want.

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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