Jump to content

Help ED to help us - stateful commands


Recommended Posts

Changelog for this thread can be seen at the end of the first post.

 

 

Hi everybody!

 

Motivated by the current discussions about the controls and ED's recent introduction of diff.lua files, I think we can help ED to give us more convenient controls by default.

 

As I'm not the greatest .lua editor, but managed to implement some controls myself, I'm sure out there are people who know a lot more about .lua edits.

 

Hence, this thread is a try to collect .lua edits that:

 

  1. Add commands that can then be normally assigned in the controls options
  2. Create stateful commands that place a switch in 1 position and 1 position only
  3. Are not of the press/release type (would defeat #2)
    • Sole exception for #2 and #3 is, if the created command actuates a button or switch that is spring loaded by design

 

[*]Are easy for ED to just put in the default.lua files (since the different working now)

[*]Are confirmed working

 

How to use this :

 

  • Only use Notepad++ to edit dcs files

 

  • Copy and paste the desired commands into the default.lua of every controller you want to use them with. (DCS World/Mods/aircrafts/ "aircraft" /Input/ "device" /default.lua)
    • Add the code before the last 2 curly brackets (keyboard .lua files) / before the last curly bracket prior to the "axisCommands" section (joystick .lua files)

     

 

  • .lua files are read per line, make sure each line starts with " { " and ends with " }, " (you can add comments, that are ignored when the .lua is read, by starting a line with "--")

 

  • If in game a control column turns completely empty, don't panic, there is just a " { " or "}, " missing, a typo or obsolete spaces in the according default.lua (search in the code you added last)

 

  • Assign a button to the commands in game and enjoy :)

Before I get going:

If you are rather looking for toggle commands (up & down commands in one button), you may want to have a look at GregP's thread ->here<-.thumbup.gif

He also links to other helpful threads about toggle actions.

 

 

I'll go ahead and post what I managed to do:

 

Working perfectly:

 

Ka-50 :

Burst length switch:

{down = 3004, cockpit_device_id = 12, value_down = 0.2, name = "Burst length - Long", category = "Ins Weapons Status and Control Panel PUI-800"},
{down = 3004, cockpit_device_id = 12, value_down = 0.1, name = "Burst length - Medium", category = "Ins Weapons Status and Control Panel PUI-800"},
{down = 3004, cockpit_device_id = 12, value_down = 0.0, name = "Burst length - Short", category = "Ins Weapons Status and Control Panel PUI-800"},

Engine protection system:
{down = 3014, cockpit_device_id = 4, value_down = 0.0, name = "Engine Protection - Dust", category = "Ins Overhead panel"},
{down = 3014, cockpit_device_id = 4, value_down = 0.5, name = "Engine Protection - Off", category = "Ins Overhead panel"},
{down = 3014, cockpit_device_id = 4, value_down = 1.0, name = "Engine Protection - Anti Ice", category = "Ins Overhead panel"},

Laser range finder:
{down = 3001, cockpit_device_id = 11, value_down = 1.0, name = "Laser - Standby", category = "Ins Targeting Mode Controls Panel PVR"},
{down = 3001, cockpit_device_id = 11, value_down = 0.0, name = "Laser - Off", category = "Ins Targeting Mode Controls Panel PVR"},

Gun auto tracking / gunsight:
{down = 3017, cockpit_device_id = 12, value_down = 1.0, name = "Cannon Automatic Tracking", category = "Ins Targeting Mode Controls Panel PVR"},
{down = 3017, cockpit_device_id = 12, value_down = 0.0, name = "Cannon gun sight", category = "Ins Targeting Mode Controls Panel PVR"},

Gear lever:
{down = 3001, cockpit_device_id = 34, value_down = 1.0, name = "Gear lever down", category = "Ins Forward panel and gauges"},
{down = 3001, cockpit_device_id = 34, value_down = 0.0, name = "Gear lever up", category = "Ins Forward panel and gauges"},

Rotor anti-ice:
{down = 3013, cockpit_device_id = 4, value_down = 1.0, name = "Rotor de-icing system On", category = "Ins Overhead panel"},
{down = 3013, cockpit_device_id = 4, value_down = 0.0, name = "Rotor de-icing system Off", category = "Ins Overhead panel"},

Landing light:
{down = 3001, cockpit_device_id = 44, value_down = 1.0, name = "Landing light On", category = "Ins Landing Lights & Voice Warning Panel"},
{down = 3001, cockpit_device_id = 44, value_down = 0.5, name = "Landing light Off", category = "Ins Landing Lights & Voice Warning Panel"},
{down = 3001, cockpit_device_id = 44, value_down = 0.0, name = "Landing light Retract", category = "Ins Landing Lights & Voice Warning Panel"},

UV-26 Dispenser Board:
{down = 3002, cockpit_device_id = 22, value_down = 0.0, name = "UV-26 Dispensing board Left", category = "Ins Countermeasures dispensers UV-26"},
{down = 3002, cockpit_device_id = 22, value_down = 0.1, name = "UV-26 Dispensing board Both", category = "Ins Countermeasures dispensers UV-26"},
{down = 3002, cockpit_device_id = 22, value_down = 0.2, name = "UV-26 Dispensing board Right", category = "Ins Countermeasures dispensers UV-26"},

P-51D (TF-51D) :

Gear lever (by Olethros):
{down = device_commands.Button_3, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = 1.0, name = 'Gear Up', category = 'Systems'},
{down = device_commands.Button_3, cockpit_device_id  = devices.CONTROL_SYSTEM, value_down = -1.0, name = 'Gear Down', category = 'Systems'},

Fw190D-9 :

.

Almost all commands were adopted by ED and thus I deleted them from the post.

If the remaining two turn out not to be true to the real plane, they will be deleted too.

 

F-86F :

UH-1-H :

 

Mi-8MTV2 :

Commands for the Mi-8MTV2 can be found in
and

 

Bf109K-4 :

 

Almost working:

 

Ka-50 :

Cut-Off Valves (
commands move the mouse clickable boxes correctly, but move the cockpit levers themselves both ways
):
{down = 3009, cockpit_device_id = 4, value_down = 0.0, name = "Cut-Off Valve Left Engine Close", category = "Ins Engines start-up control panel and levers"},
{down = 3009, cockpit_device_id = 4, value_down = 1.0, name = "Cut-Off Valve Left Engine Open", category = "Ins Engines start-up control panel and levers"},
{down = 3010, cockpit_device_id = 4, value_down = 0.0, name = "Cut-Off Valve Right Engine Close", category = "Ins Engines start-up control panel and levers"},
{down = 3010, cockpit_device_id = 4, value_down = 1.0, name = "Cut-Off Valve Right Engine Open", category = "Ins Engines start-up control panel and levers"},

.

.

.

.

.

.

So please, dear fellow members, let's help ED to help us:

 

  • Please post .lua edits that are conform with points 1-5 (see above)
  • Please post .lua edits that are almost working too (like I did with the Cut-Off Valves for the Ka-50, maybe with a little help we can get those to work properly)
  • Please don't post edits that don't work at all
  • Please keep discussions about controls to other, already present threads
  • Please use the following template for posting your edits

Working perfectly
:

"aircraft":

"switch":

".lua edits"

Almost working
:

"aircraft":

"switch" ("
short explanation
"):

".lua edits"

.

.

.

In case I work out more working .lua edits, I will update this post.

I will also update the first post with all the posted edits from time to time, to maybe make this into some kind of ( ? stickied ? ) "library", until ED gives us more detailed controls.

 

Edit away and show ED our direct support! :thumbup:

 

Greetings

MadCat

 

 

Changelog:

03062014 - TF-51D commands added (Fuel boost pumps)

08062014 - Ka-50 commands added (UV-26 Dispenser Board)

07082014 - Fw190 commands added (too many to name all) ; UH-1 commands added (Post #3)

08082014 - F-86F commands added (Post #3)

09082014 - F-86F commands added (Post #3 (Rockets Release Selector, thanks Highwayman-Ed) ; obsolete spaces in codes removed ;

codes wraped in code-windows ; Fw190 command added (Rocket Emergency Release Cover Close) ; "How to" added

10082014 - All Fw190 commands moved to post #17 ; more Fw190 Commands added

11082014 - All F-86F commands moved to post #20 ; more F-86F commands added (thanks LiveBait)

11082014 - UH-1 commands added (Post #3)

12082014 - Mi-8 commands added (Post #25 & #26)

13092014 - Merged P-51D and TF-51D ; P-51D/TF-51D command added (Gear lever) (thx Olethros)

19092014 - Deleted Fw190 and P-51D/TF-51D commands that have been made default by ED

10122014 - Commands for Bf-109 added


Edited by -=MadCat=-
Link to comment
Share on other sites

This post is a great idea BUT it has been moved to the wrong location. This post has NOTHING to do with mission editing and will soon get lost in the vacuum of the forums, This subject more properly belongs in the "input and output" section of the forums where it will get a much better response and not get totally lost.

Link to comment
Share on other sites

  • 2 months later...

Note: Post #17 now contains all commands for working systems in the Fw190 !

 

 

Working perfectly:

 

UH-1H :

Anti-Collision Light:
{down = device_commands.Button_4, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 0.0, name = 'Anti-Collision Lights OFF', category = 'Ins Overhead panel'},
{down = device_commands.Button_4, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, name = 'Anti-Collision Lights ON', category = 'Ins Overhead panel'},

Governor Switch:

{down = device_commands.Button_14, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = "Governor Emer", category = "Pedestal"},
{down = device_commands.Button_14, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = "Governor Auto", category = "Pedestal"},

Landing Light:

{down = device_commands.Button_5, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 0.0, name = "Landing light OFF", category = "Ins Collective Stick"},
{down = device_commands.Button_5, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, name = "Landing light ON", category = "Ins Collective Stick"},

Main Fuel Switch:

{down = device_commands.Button_1, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = "Main Fuel Switch OFF", category = "Pedestal"},
{down = device_commands.Button_1, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = "Main Fuel Switch ON", category = "Pedestal"},

Starter Generator Switch:

{down = device_commands.Button_3, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = "Starter-Generator STBY GEN", category = "Ins Overhead panel"},
{down = device_commands.Button_3, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = "Starter-Generator START", category = "Ins Overhead panel"},

Position Lights Brightness:
{down = device_commands.Button_3, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 0.0, name = "Position Lights DIM", category = "Ins Overhead panel"},
{down = device_commands.Button_3, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, name = "Position Lights BRIGHT", category = "Ins Overhead panel"},

Radar Altimeter Power :
{down = device_commands.Button_7, cockpit_device_id = devices.RADAR_ALTIMETER, value_down = 0.0, name = "Radar Altimeter Power OFF", category = "Circuit breaker panel"},
{down = device_commands.Button_7, cockpit_device_id = devices.RADAR_ALTIMETER, value_down = 1.0, name = "Radar Altimeter Power ON", category = "Circuit breaker panel"},

Battery :
{down = device_commands.Button_1, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = "Battery ON", category = "Ins Overhead panel"},
{down = device_commands.Button_1, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = "Battery OFF", category = "Ins Overhead panel"},

Pitot Heater :
{down = device_commands.Button_16, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = "Pitot Heater OFF", category = "Ins Overhead panel"},
{down = device_commands.Button_16, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = "Pitot Heater ON", category = "Ins Overhead panel"},

Engine De-Ice :
{down = device_commands.Button_2, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = "De-Ice OFF", category = "Pedestal"},
{down = device_commands.Button_2, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = "De-Ice ON", category = "Pedestal"},

Wipers Mode :
{down = device_commands.Button_2, cockpit_device_id = devices.CPT_MECH, value_down = 0.0, name = "Wipers Both", category = "Ins Overhead panel"},
{down = device_commands.Button_2, cockpit_device_id = devices.CPT_MECH, value_down = 1.0, name = "Wiper Pilot", category = "Ins Overhead panel"},
{down = device_commands.Button_2, cockpit_device_id = devices.CPT_MECH, value_down = -1.0, name = "Wiper Copilot", category = "Ins Overhead panel"},

NON-ESS Bus Selector :
{down = device_commands.Button_5, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = "Non-ESS Bus Normal", category = "Ins Overhead panel"},
{down = device_commands.Button_5, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = "Non-ESS Bus Manual", category = "Ins Overhead panel"},

Force Trim :
{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_SYS_INTERFACE, value_down = 0.0, name = "Force Trim OFF", category = "Pedestal"},
{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_SYS_INTERFACE, value_down = 1.0, name = "Force Trim ON", category = "Pedestal"},

Hydraulics Control :
{down = device_commands.Button_3, cockpit_device_id = devices.HYDRO_SYS_INTERFACE, value_down = 0.0, name = "Hydraulics Control OFF", category = "Pedestal"},
{down = device_commands.Button_3, cockpit_device_id = devices.HYDRO_SYS_INTERFACE, value_down = 1.0, name = "Hydraulics Control ON", category = "Pedestal"},

GMC Pointer #1 :
{down = device_commands.Button_4, cockpit_device_id = devices.GMCS, value_down = 0.0, name = "GMC Pointer #1 VOR", category = "Systems"},
{down = device_commands.Button_4, cockpit_device_id = devices.GMCS, value_down = 1.0, name = "GMC Pointer #1 ADF", category = "Systems"},

GMC Operation Mode :
{down = device_commands.Button_2, cockpit_device_id = devices.GMCS, value_down = 0.0, name = "GMC Operation MAGNETIC", category = "Systems"},
{down = device_commands.Button_2, cockpit_device_id = devices.GMCS, value_down = 1.0, name = "GMC Operation DG", category = "Systems"},

Marker Beacon Sensitivity :
{down = device_commands.Button_2, cockpit_device_id = devices.MARKER_BEACON, value_down = 0.0, name = "Marker Beacon Sensitivity LOW", category = "Systems"},
{down = device_commands.Button_2, cockpit_device_id = devices.MARKER_BEACON, value_down = 1.0, name = "Marker Beacon Sensitivity HIGH", category = "Systems"},

Flare Ripple Cover :
{down = device_commands.Button_1, cockpit_device_id = devices.XM_130, value_down = 1.0, name = "Ripple Fire Cover Open", category = "Pedestal"},

Flare Ripple :
{down = device_commands.Button_2, cockpit_device_id = devices.XM_130, value_down = 1.0, name = "Ripple Fire ON", category = "Pedestal"},

Flare System Safety :
{down = device_commands.Button_5, cockpit_device_id = devices.XM_130, value_down = 1.0, name = "Flare System ARMED", category = "Pedestal"},

Flare Counter :
{down = device_commands.Button_4, cockpit_device_id = devices.XM_130, value_down = -1.0, name = "Flare Counter Decrease", category = "Pedestal"},
{down = device_commands.Button_4, cockpit_device_id = devices.XM_130, value_down = 1.0, name = "Flare Counter Increase", category = "Pedestal"},
{down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.XM_130, value_down = 1.0, value_up = 0.0, name = "Flare Counter Reset", category = "Pedestal"},

UHF Radio Squelch :
{down = device_commands.Button_7, cockpit_device_id = devices.UHF_ARC_51, value_down = 1.0, name = "Squelch ON", category = "UHF Radio Control panel"},
{down = device_commands.Button_7, cockpit_device_id = devices.UHF_ARC_51, value_down = 0.0, name = "Squelch OFF", category = "UHF Radio Control panel"},

Radio Receivers Switches :
{down = device_commands.Button_1, cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = "VHF AM Radio Receiver ON", category = "Intercom Control Panel"},
{down = device_commands.Button_1, cockpit_device_id = devices.INTERCOM, value_down = 0.0, name = "VHF AM Radio Receiver OFF", category = "Intercom Control Panel"},
{down = device_commands.Button_2, cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = "UHF Radio Receiver ON", category = "Intercom Control Panel"},
{down = device_commands.Button_2, cockpit_device_id = devices.INTERCOM, value_down = 0.0, name = "UHF Radio Receiver OFF", category = "Intercom Control Panel"},
{down = device_commands.Button_3, cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = "VHF FM Radio Receiver ON", category = "Intercom Control Panel"},
{down = device_commands.Button_3, cockpit_device_id = devices.INTERCOM, value_down = 0.0, name = "VHF FM Radio Receiver OFF", category = "Intercom Control Panel"},
{down = device_commands.Button_5, cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = "INT Receiver ON", category = "Intercom Control Panel"},
{down = device_commands.Button_5, cockpit_device_id = devices.INTERCOM, value_down = 0.0, name = "INT Receiver OFF", category = "Intercom Control Panel"},
{down = device_commands.Button_6, cockpit_device_id = devices.INTERCOM, value_down = 1.0, name = "NAV Receiver ON", category = "Intercom Control Panel"},
{down = device_commands.Button_6, cockpit_device_id = devices.INTERCOM, value_down = 0.0, name = "NAV Receiver OFF", category = "Intercom Control Panel"},

Weapon Systems Safety :
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYS, value_down = 0.0, name = "Weapon Systems SAFE", category = "Armament System"},
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYS, value_down = 1.0, name = "Weapon Systems ARMED", category = "Armament System"},
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYS, value_down = -1.0, name = "Weapon Systems OFF", category = "Armament System"},

Armament Sides Selector :
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYS, value_down = 0.0, name = "Armament Both Sides", category = "Armament System"},
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYS, value_down = 1.0, name = "Armament Right Side", category = "Armament System"},
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYS, value_down = -1.0, name = "Armament Left Side", category = "Armament System"},

Armament Selector :
{down = device_commands.Button_10, cockpit_device_id = devices.WEAPON_SYS, value_down = 0.0, name = "Armament 2.75", category = "Armament System"},
{down = device_commands.Button_10, cockpit_device_id = devices.WEAPON_SYS, value_down = -1.0, name = "Armament 7.62", category = "Armament System"},

Jettison Cover :
{down = device_commands.Button_13, cockpit_device_id = devices.WEAPON_SYS, value_down = 1.0, name = 'Jettison Cover Open', category = 'Armament System'},

ADF BFO Switch :
{down = device_commands.Button_6, cockpit_device_id = devices.ADF_ARN_83, value_down = 1.0, name = "ADF BFO ON", category = "ADF Set Control panel"},
{down = device_commands.Button_6, cockpit_device_id = devices.ADF_ARN_83, value_down = 0.0, name = "ADF BFO OFF", category = "ADF Set Control panel"},

Throttle Stop (momentary) :
{down = device_commands.Button_27, up = device_commands.Button_27, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_up = 0.0, name = "Throttle Stop (momentary)", category = "Ins Collective Stick"},

Edited by -=MadCat=-
  • Like 3
Link to comment
Share on other sites

Excellent post! Looking forward to seeing this. I wonder if it's worth adding as a special section to the DCS Wiki in my sig?

[sIGPIC][/sIGPIC]

 

Creator of:

 

F-18C VFA-195 "Dambusters" 1998 CAG Livery

https://forums.eagle.ru/showthread.php?t=213788

 

F-18C VFA-195 "Dambusters" July 2001 CAG Livery

https://forums.eagle.ru/showthread.php?t=215950

 

Pilot avatars for DCS Logbook

https://forums.eagle.ru/showthread.php?t=221160

 

How to make a DCS A-10C Panel

http://forums.eagle.ru/showthread.php?t=65998

Link to comment
Share on other sites

Kudos MadCat, the F-86 Gun/Missile/Camera commands work great. Awesome to be able to switch back and forth without fumbling for the mouse.

drinks_cheers.gif



Win 10 64 Pro, MSI Z390 I7-9700K @5ghz Kraken Z63, 32Gb Corsair Dominator, MSI RTX-2070, 1TB NVME 2TB SSD's, TM Warthog, Pro Rudders, OpenTrack w/ IR Clip

Link to comment
Share on other sites

Great research MadCat, thanks.

 

Subscribed! :D

i7-2600 @3.4GHz | Corsair 16GB @1600MHz. | MSI GTX1660Ti Gaming X | Samsung 256GB SSD (Win10HPx64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | Saitek X-55 Rhino & Rudder | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5
>>MY MODS<< | Discord: Devrim#1068

Link to comment
Share on other sites

Good job!! :thumbup:

 

I need a Warthog Combined default lua created for the A-10C, and possibly the A-10A, too. But I guess that is another issue.


Edited by cichlidfan

ASUS ROG Maximus VIII Hero, i7-6700K, Noctua NH-D14 Cooler, Crucial 32GB DDR4 2133, Samsung 950 Pro NVMe 256GB, Samsung EVO 250GB & 500GB SSD, 2TB Caviar Black, Zotac GTX 1080 AMP! Extreme 8GB, Corsair HX1000i, Phillips BDM4065UC 40" 4k monitor, VX2258 TouchScreen, TIR 5 w/ProClip, TM Warthog, VKB Gladiator Pro, Saitek X56, et. al., MFG Crosswind Pedals #1199, VolairSim Pit, Rift CV1 :thumbup:

Link to comment
Share on other sites

Thanks again MadCat.

I'm having trouble with the Fuel tank selector for the F-86, doesnt seem to want to co-operate. When i put this one in, my control options show no keybinds for anything and the whole keyboard column is not useable. All the rest I've tried work great.

 

@ johnv2pt0. either dont copy the switch name in or comment it out with -- in front of it eg:

 

--Emergency Fuel :

 

{down = engine_commands.F86_CockpitDeviceCommand_EmergFuel , cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Emergency Fuel ON', category = 'Front Dashboard'},

{down = engine_commands.F86_CockpitDeviceCommand_EmergFuel , cockpit_device_id = devices.ENGINE_INTERFACE, value_down = -1.0, name = 'Emergency Fuel OFF', category = 'Front Dashboard'},

 

--Sight Mechanical Cage :

 

{down = device_commands.Button_16, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 1.0, name = 'Sight Mechanical CAGE', category = 'A-4 Sight'},

{down = device_commands.Button_16, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 0.0, name = 'Sight Mechanical UNCAGE', category = 'A-4 Sight'},

 

edit: Could also be the same prob i was having with the Fuel Tank selector

 

edit2:

Thanks GregP for making me look closer. It had a space between the o and the r. (CockpitDeviceCommand_TankSelecto r_Sw,) on each line. Here is a working Drop Tank Selector

 

Working Perfectly

 

F-86

 

Drop Tank Selector :

 

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.0, name = 'Drop Tanks ALL OFF', category = 'Drop Tank Control Panel'},

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.1, name = 'Drop Tanks OUTBOARD', category = 'Drop Tank Control Panel'},

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.2, name = 'Drop Tanks INBOARD', category = 'Drop Tank Control Panel'},

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.3, name = 'Drop Tanks LH OUTBOARD', category = 'Drop Tank Control Panel'},

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.4, name = 'Drop Tanks RH OUTBOARD', category = 'Drop Tank Control Panel'},

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.5, name = 'Drop Tanks LH INBOARD', category = 'Drop Tank Control Panel'},

{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.6, name = 'Drop Tanks RH INBOARD', category = 'Drop Tank Control Panel'},


Edited by LiveBait
  • Like 1
Link to comment
Share on other sites

To add to the F-86, here are the rocket firing switch commands;

 

Working perfectly

 

Rockets Firing Selector :

{down = device_commands.Button_10, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Rockets Release Selector Cover up', category = 'Center Pedestal'},

{down = device_commands.Button_10, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Rockets Release Selector Cover down', category = 'Center Pedestal'},

{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Rocket Release Selector Single', category = 'Center Pedestal'},

{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Rocket Release Selector Off', category = 'Center Pedestal'},

{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Rocket Release Selector Auto', category = 'Center Pedestal'},

Edited by Highwayman-Ed
  • Like 1

Intel i9-9900KF @5.2GHz

MSI Z390 Gaming Pro Carbon

32GB G.Skill Trident Z DDR3200 RAM

MSI RTX 2080 Ti Gaming X Trio

40" Panasonic TH-40DX600U @ 4K

Pimax Vision 8K Plus / Oculus Rift CV1 / HTC Vive

Gametrix JetSeat with SimShaker

Windows 10 64 Bit Home Edition

 

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

This is incredible work, guys! A few typos in the F-86 section though:

 

There are extra (spurious) spaces in the 'down' part of these commands:

External Light Brightness

Battery

Drop Tank Selector

Engine Master Switch

 

BTW, MadCat, I think those extra spaces will go away, and make copying-and-pasting easier, if you enclose all the commands with the "code" tags.


Edited by GregP
  • Like 1
Link to comment
Share on other sites

Enables toggle switches for the position lights for the F-86:

 

--Position and Fuselage Lights:
{down = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts, up = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts, cockpit_device_id = devices.NAV_LIGHTS_INTERFACE,	value_down = 1,  value_up = 0, name = 'Pos & Fus Lights - Steady middle', category = 'Right Forward Console'},
{down = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts, up = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts, cockpit_device_id = devices.NAV_LIGHTS_INTERFACE,	value_down = -1, value_up = 0, name = 'Pos & Fus Lights - Flash middle', category = 'Right Forward Console'},


Edited by GregP
Link to comment
Share on other sites

Hello i am newb to this but wat do i do with those lines ?

 

I have the Trustmaster Warthog .

 

And i have al the modules ;)

 

I am stil config the buttons for the planes (alot of work )

 

I try to upload the LUA i saved a 1 year ago for the KA 50 but it dont work any more it seems :( .

 

Now i am trying to config the Dora .

 

 

Can i use those lines ? or wat is the purpose of this .

 

Sorry for my bad English its not my native language .

 

Thx


Edited by Friedric

[sIGPIC][/sIGPIC]

I/JG53_Friedric

Link to comment
Share on other sites

Indeed some spaces got in there, thanks for pointing it out, will be corrected right away. EDIT: DONE

Weird though, as they are not in the lines I edited in my .lua files.

Will have a look at the code feature too, didn't work with it yet. EDIT: DONE

 

Thanks Highwayman for the addition, will be added to the list right away. EDIT: DONE

 

There might be some MI-8 commands coming soon too btw :thumbup:

 

Greetings

MadCat


Edited by -=MadCat=-
Link to comment
Share on other sites

Enables toggle switches for the position lights for the F-86:

 

--Position and Fuselage Lights:
{down = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts, up =   nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts,   cockpit_device_id = devices.NAV_LIGHTS_INTERFACE,    value_down = 1,    value_up = 0, name = 'Pos & Fus Lights - Steady middle', category =   'Right Forward Console'},
{down = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts, up =   nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLts,   cockpit_device_id = devices.NAV_LIGHTS_INTERFACE,    value_down = -1,   value_up = 0, name = 'Pos & Fus Lights - Flash middle', category =   'Right Forward Console'},

 

Thanks for the effort, unfortunately they are not in canon with the idea of this thread, see points 2. and 3. in the first post.

Hence, this thread is a try to collect .lua edits that:

 

  1. Add commands that can then be normally assigned in the controls options
  2. Create stateful commands that place a switch in 1 position and 1 position only
  3. Are not of the press/release type (would defeat #2)
  4. Are easy for ED to just put in the default.lua files (since the different working now)
  5. Are confirmed working

Thus, please forgive that I will not add them to the existing list.

They may fit better in this thread.

 

Have a nice day, still

MadCat

Link to comment
Share on other sites

Working perfectly:

 

Fw190D-9 :

Rocket Emergency Jettison Cover:
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Rocket Emergency Release Cover CLOSE', category = 'Weapon System'},

Fuselage Stores Jettison :
{down = device_commands.Button_12, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Bomb Emergency Release Push', category = 'Weapon System'},

I will investigate on these two remaining commands.

 

  1. I currently don't know if the bomb release handle is spring loaded in the real plane.
  2. I thought the Rockets jettison cover/lock was spring loaded in the real plane, or at least could be closed again.

Until I know about the correct workings of those two, I'll leave the code in here.

If somebody knows about those two, please PM me!


Edited by -=MadCat=-
Link to comment
Share on other sites

Working Perfectly

 

F-86

 

--Alternate Flight control

 

{down = device_commands.Button_3, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'FlightControl Normal', category = 'Left Side Panel'},

{down = device_commands.Button_3, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'FlightControl Alternate', category = 'Left Side Panel'},

{down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = -1, value_up = 0, name = 'FlightControl Reset', category = 'Left Side Panel'},

 

 

 

--Alternate Hydraulics Overide

 

{down = device_commands.Button_8, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Hydraulics Overide In', category = 'Emergency Systems'},

{down = device_commands.Button_8, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Hydraulics Overide Out', category = 'Emergency Systems'},

 

 

 

--Emergency Airbrake Lever

 

{down = device_commands.Button_6, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Emergency Airbrake Lever Close', category = 'Emergency Systems'},

{down = device_commands.Button_6, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Emergency Airbrake Lever Open', category = 'Emergency Systems'},

 

 

 

--Hydraulic Pressure Selector

 

{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Hydraulic Pressure Utility', category = 'Front Dashboard'},

{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Hydraulic Pressure Normal', category = 'Front Dashboard'},

{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = -1.0, name = 'Hydraulic Pressure Alternate', category = 'Front Dashboard'},

 

 

 

--SIGHT FILAMENT SWITCH

 

{down = device_commands.Button_15, cockpit_device_id = devices.A4_GUNSIGHT, value_down = -1.0, name = 'Sight filament primary', category = 'Center Pedestal'},

{down = device_commands.Button_15, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 1.0, name = 'Sight filament secondary', category = 'Center Pedestal'},

 

 

 

 

--INSTRUMENT POWER ALTERNATE

 

{down = electric_commands.F86_CockpitDeviceCommand_InverterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = -1.0, name = 'Instrument Power Primary', category = 'Center Pedestal'},

{down = electric_commands.F86_CockpitDeviceCommand_InverterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Instrument Power Alternate', category = 'Center Pedestal'},

 

 

 

This one may contradict your rule #2

 

--Emergency Gear Up

 

{down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Emergency Gear Up', category = 'Front Dashboard'},

 

 

 

 

Got to thank you again MadCat, great initiative. I would not have been able to do this without you showing the way :thumbup:


Edited by LiveBait
Link to comment
Share on other sites

Working perfectly:

 

F-86F :

External Light Brightness
{down = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLtsDimmer, cockpit_device_id = devices.NAV_LIGHTS_INTERFACE, value_down = 1.0, name = 'External Lights Bright', category = 'Right Forward Console'},
{down = nav_lights_commands.F86_CockpitDeviceCommand_PosAndFusLtsDimmer, cockpit_device_id = devices.NAV_LIGHTS_INTERFACE, value_down = -1.0, name = 'External Lights DIM', category = 'Right Forward Console'},

Battery :
{down = electric_commands.F86_CockpitDeviceCommand_BatteryStarterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Battery OFF', category = 'Right Forward Console'},
{down = electric_commands.F86_CockpitDeviceCommand_BatteryStarterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Battery ON', category = 'Right Forward Console'},

Armament Safety Selector :
{down = device_commands.Button_2, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Armament Safety Switch MISSILE', category = 'Center Pedestal'},
{down = device_commands.Button_2, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.1, name = 'Armament Safety Switch GUNS', category = 'Center Pedestal'},
{down = device_commands.Button_2, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.2, name = 'Armament Safety Switch SIGHT-CAMERA-RADAR', category = 'Center Pedestal'},
{down = device_commands.Button_2, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.3, name = 'Armament Safety Switch OFF', category = 'Center Pedestal'},

Rockets Fuze :
{down = device_commands.Button_11, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Rockets Fuze OFF', category = 'Center Pedestal'},
{down = device_commands.Button_11, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Rockets Fuze DELAY', category = 'Center Pedestal'},
{down = device_commands.Button_11, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Rockets Fuze INSTANT', category = 'Center Pedestal'},

Gunsight Selector :
{down = device_commands.Button_11, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 0.0, name = 'Gunsight Selector ROCKET', category = 'Center Pedestal'},
{down = device_commands.Button_11, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 0.1, name = 'Gunsight Selector GUN', category = 'Center Pedestal'},
{down = device_commands.Button_11, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 0.2, name = 'Gunsight Selector BOMB', category = 'Center Pedestal'},

Guns Selector :
{down = device_commands.Button_1, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -0.2, name = 'Guns Selector OFF', category = 'Left Wall Panel'},
{down = device_commands.Button_1, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -0.1, name = 'Guns Selector UPPER GUNS', category = 'Left Wall Panel'},
{down = device_commands.Button_1, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Guns Selector MID GUNS', category = 'Left Wall Panel'},
{down = device_commands.Button_1, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.1, name = 'Guns Selector LOWER GUNS', category = 'Left Wall Panel'},
{down = device_commands.Button_1, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.2, name = 'Guns Selector ALL GUNS', category = 'Left Wall Panel'},

Drop Tank Selector :
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.0, name = 'Drop Tanks ALL OFF', category = 'Drop Tank Control Panel'},
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.1, name = 'Drop Tanks OUTBOARD', category = 'Drop Tank Control Panel'},
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.2, name = 'Drop Tanks INBOARD', category = 'Drop Tank Control Panel'},
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.3, name = 'Drop Tanks LH OUTBOARD', category = 'Drop Tank Control Panel'},
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.4, name = 'Drop Tanks RH OUTBOARD', category = 'Drop Tank Control Panel'},
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.5, name = 'Drop Tanks LH INBOARD', category = 'Drop Tank Control Panel'},
{down = fuel_commands.F86_CockpitDeviceCommand_TankSelector_Sw, cockpit_device_id = devices.FUEL_INTERFACE, value_down = 0.6, name = 'Drop Tanks RH INBOARD', category = 'Drop Tank Control Panel'},

Engine Master Switch :
{down = electric_commands.F86_CockpitDeviceCommand_EngineMasterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = -1.0, name = 'Engine Master OFF', category = 'Right Forward Console'},
{down = electric_commands.F86_CockpitDeviceCommand_EngineMasterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Engine Master ON', category = 'Right Forward Console'},

Bomb Station Selector :
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Bomb Station Selector OFF', category = 'Center Pedestal'},
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.1, name = 'Bomb Station Selector ALL', category = 'Center Pedestal'},
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.3, name = 'Bomb Station Selector RIGHT', category = 'Center Pedestal'},
{down = device_commands.Button_8, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.5, name = 'Bomb Station Selector LEFT', category = 'Center Pedestal'},

Bomb Fuze :
{down = device_commands.Button_7, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Bomb Fuze OFF', category = 'Center Pedestal'},
{down = device_commands.Button_7, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Bomb Fuze NOSE & TAIL', category = 'Center Pedestal'},
{down = device_commands.Button_7, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Bomb Fuze TAIL ONLY', category = 'Center Pedestal'},

Release Mode Selector :
{down = device_commands.Button_6, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Bomb Release AUTO', category = 'Center Pedestal'},
{down = device_commands.Button_6, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Bomb Release MANUAL', category = 'Center Pedestal'},

Rockets Jettison :
{down = device_commands.Button_12, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Rockets Jettison READY', category = 'Center Pedestal'},
{down = device_commands.Button_12, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Rockets Jettison OFF', category = 'Center Pedestal'},

Gun Heater :
{down = device_commands.Button_3, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Gun Heater ON', category = 'Center Pedestal'},
{down = device_commands.Button_3, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Gun Heater OFF', category = 'Center Pedestal'},

Emergency Fuel :
{down = engine_commands.F86_CockpitDeviceCommand_EmergFuel, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Emergency Fuel ON', category = 'Front Dashboard'},
{down = engine_commands.F86_CockpitDeviceCommand_EmergFuel, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = -1.0, name = 'Emergency Fuel OFF', category = 'Front Dashboard'},

Sight Mechanical Cage :
{down = device_commands.Button_16, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 1.0, name = 'Sight Mechanical CAGE', category = 'A-4 Sight'},
{down = device_commands.Button_16, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 0.0, name = 'Sight Mechanical UNCAGE', category = 'A-4 Sight'},

Rockets Firing Selector (by Highwayman-Ed):
{down = device_commands.Button_10, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Rockets Release Selector Cover up', category = 'Center Pedestal'},
{down = device_commands.Button_10, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Rockets Release Selector Cover down', category = 'Center Pedestal'},
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 1.0, name = 'Rocket Release Selector Single', category = 'Center Pedestal'},
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = 0.0, name = 'Rocket Release Selector Off', category = 'Center Pedestal'},
{down = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYSTEM, value_down = -1.0, name = 'Rocket Release Selector Auto', category = 'Center Pedestal'},

Alternate Flight control (by LiveBait) :
{down = device_commands.Button_3, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Flight Control Normal', category = 'Left Side Panel'},
{down = device_commands.Button_3, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Flight Control Alternate', category = 'Left Side Panel'},
{down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = -1.0, value_up = 0.0, name = 'Flight Control Reset', category = 'Left Side Panel'},

Alternate Hydraulics Overide (by LiveBait) :
{down = device_commands.Button_8, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Hydraulics Overide In', category = 'Emergency Systems'},
{down = device_commands.Button_8, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Hydraulics Overide Out', category = 'Emergency Systems'},

Emergency Airbrake Lever (by LiveBait) :
{down = device_commands.Button_6, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Emergency Airbrake Lever Close', category = 'Emergency Systems'},
{down = device_commands.Button_6, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Emergency Airbrake Lever Open', category = 'Emergency Systems'},

Hydraulic Pressue Selector (by LiveBait) :
{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, name = 'Hydraulic Pressue Utility', category = 'Front Dashboard'},
{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 0.0, name = 'Hydraulic Pressue Normal', category = 'Front Dashboard'},
{down = device_commands.Button_4, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = -1.0, name = 'Hydraulic Pressue Alternate', category = 'Front Dashboard'},

Sight Filament Switch (by LiveBait) :
{down = device_commands.Button_15, cockpit_device_id = devices.A4_GUNSIGHT, value_down = -1.0, name = 'Sight filament primary', category = 'Center Pedestal'},
{down = device_commands.Button_15, cockpit_device_id = devices.A4_GUNSIGHT, value_down = 1.0, name = 'Sight filament secondary', category = 'Center Pedestal'},

Instrument Power Alternate (by LiveBait) :
{down = electric_commands.F86_CockpitDeviceCommand_InverterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = -1.0, name = 'Instument Power Primary', category = 'Center Pedestal'},
{down = electric_commands.F86_CockpitDeviceCommand_InverterSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Instument Power Alternate', category = 'Center Pedestal'},

Emergency Gear Up (by LiveBait) :
{down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.HYDRO_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Emergency Gear Up', category = 'Front Dashboard'},

Edited by -=MadCat=-
Link to comment
Share on other sites

Hi LiveBait !

 

Great to see you being inspired ! :)

Thanks for your additions, I confirm them all working and added them to the list.

The F-86F now has its own post too, see ->here<-,or just look one post above :P.

 

Thanks POLARIS1 for the feedback, most of the commands are already there, just not assigned yet.

 

By the time ED/BST add commands natively, I will delete the obsolete edits here again.

I hope this entire thread will become obsolete (sooner than later) and ED adds all those commands natively, so we don't need to put them in again after each update.

Broad hint, ED ?! :music_whistling:

 

 

Greetings

MadCat

Link to comment
Share on other sites

Has anyone worked out if there is a way to map both positions of the two-position switches on the A-10C AHCP panel? Specifically the TGP, hud mode day/night and norm/stby, CICU and JTRS?

 

At the moment they only operate as a toggle when the switch is flicked on and off again. Previously I had it working such that whenever the "button" was pressed or released it toggled state, so it would work if the physical AHCP switch positions matched those in the sim. I would prefer for the switches to be always synchronised.

 

The issue is that the up and down states have no explicit command. For example the GUN/PAC ARM switch has three commands:

 

iCommandPlaneAHCPGUNPACArm

iCommandPlaneAHCPGUNSafe

iCommandPlaneAHCPGUNArm

 

Whereas the TGP switch has one:

 

iCommandPlaneAHCPTGPOnOff

 

Anyone have a solution for this?

Link to comment
Share on other sites

Has anyone worked out if there is a way to map both positions of the two-position switches on the A-10C AHCP panel? Specifically the TGP, hud mode day/night and norm/stby, CICU and JTRS?

 

At the moment they only operate as a toggle when the switch is flicked on and off again. Previously I had it working such that whenever the "button" was pressed or released it toggled state, so it would work if the physical AHCP switch positions matched those in the sim. I would prefer for the switches to be always synchronised.

 

The issue is that the up and down states have no explicit command. For example the GUN/PAC ARM switch has three commands:

 

iCommandPlaneAHCPGUNPACArm

iCommandPlaneAHCPGUNSafe

iCommandPlaneAHCPGUNArm

 

Whereas the TGP switch has one:

 

iCommandPlaneAHCPTGPOnOff

 

Anyone have a solution for this?

 

I also haven't figured this out yet....without changing the original Lua file. I want to know how to do it with the new diff file std.

[sIGPIC][/sIGPIC]

 

Creator of:

 

F-18C VFA-195 "Dambusters" 1998 CAG Livery

https://forums.eagle.ru/showthread.php?t=213788

 

F-18C VFA-195 "Dambusters" July 2001 CAG Livery

https://forums.eagle.ru/showthread.php?t=215950

 

Pilot avatars for DCS Logbook

https://forums.eagle.ru/showthread.php?t=221160

 

How to make a DCS A-10C Panel

http://forums.eagle.ru/showthread.php?t=65998

Link to comment
Share on other sites

Excuse my ignorance Madcat,I have found the route to my Defualt.Lua folder via (DCS World/Mods/aircrafts/ "aircraft" /Input/ "device" /default.lua).

 

I have then copied and paste the 'Armament Safety Selector' text into my Joystick Default.Lua folder,down at the bottom of the text within it,and then tried to save it as required,but I get 'Access Denied',am I doing something wrong here ? :doh:...........my first time editing controller scripts btw,sorry.


Edited by Basco1

Chillblast Fusion Cirrus 2 FS Pc/Intel Core i7-7700K Kaby Lake CPU/Gigabyte Nvidia GTX 1070 G1 8GB/Seagate 2TB FireCuda SSHD/16GB DDR4 2133MHz Memory/Asus STRIX Z270F Gaming Motherboard/Corsair Hydro Series H80i GT Liquid Cooler/TM Warthog with MFG 10cm Extension/WINWING Orion Rudder Pedals (With Damper Edition)/TrackiR5/Windows 11 Home

Link to comment
Share on other sites

Working perfectly:

 

Mi-8MTV2 :

Vibration Sensor Test :
{down = device_commands.Button_21, up = device_commands.Button_21, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Vibration Sensor Test', category = "Left Electropanel's Dash"},

Temperature Sensor Tests :
{down = device_commands.Button_23, up = device_commands.Button_23, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Temperature Sensor Test Cold', category = "Left Electropanel's Dash"},
{down = device_commands.Button_22, up = device_commands.Button_22, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Temperature Sensor Test Hot', category = "Left Electropanel's Dash"},

Temperature Regulator Tests :
{down = device_commands.Button_19, up = device_commands.Button_19, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Temperature Regulator Test Left', category = "Left Electropanel's Dash"},
{down = device_commands.Button_20, up = device_commands.Button_20, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, value_up = 0.0, name = 'Temperature Regulator Test Right', category = "Left Electropanel's Dash"},

Batteries :
{down = device_commands.Button_3, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Battery 1 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_3, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Battery 1 OFF', category = "Right Electropanel's Dash"},
{down = device_commands.Button_2, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Battery 2 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_2, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Battery 2 OFF', category = "Right Electropanel's Dash"},

Strobe Light :
{down = device_commands.Button_15, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, name = 'Strobe Light ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_15, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 0.0, name = 'Strobe Light OFF', category = "Right Electropanel's Dash"},

Tip Lights :
{down = device_commands.Button_14, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, name = 'Tip Lights ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_14, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 0.0, name = 'Tip Lights OFF', category = "Right Electropanel's Dash"},

Navigation Lights Code Mode :
{down = device_commands.Button_16, up = device_commands.Button_16, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, value_up = 0.0, name = 'Navigation Lights Code Mode', category = "Left Electropanel's Dash"},

Taxi Light :
{down = device_commands.Button_17, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 1.0, name = 'Taxi Light ON', category = "Left Dash"},
{down = device_commands.Button_17, cockpit_device_id = devices.NAVLIGHT_SYSTEM, value_down = 0.0, name = 'Taxi Light OFF', category = "Left Dash"},

Fuel Tank Pumps :
{down = device_commands.Button_6, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Service Tank Pump ON', category = "Fuel System"},
{down = device_commands.Button_6, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Service Taml Pump OFF', category = "Fuel System"},
{down = device_commands.Button_3, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Left Tank Pump ON', category = "Fuel System"},
{down = device_commands.Button_3, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Left Taml Pump OFF', category = "Fuel System"},
{down = device_commands.Button_5, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Right Tank Pump ON', category = "Fuel System"},
{down = device_commands.Button_5, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Right Taml Pump OFF', category = "Fuel System"},

Shutoff Valves :
{down = device_commands.Button_9, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Left Shutoff Cover OPEN', category = "Fuel System"},
{down = device_commands.Button_9, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Left Shutoff Cover CLOSE', category = "Fuel System"},
{down = device_commands.Button_1, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Left Shutoff Valve OPEN', category = "Fuel System"},
{down = device_commands.Button_1, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Left Shutoff Valve CLOSE', category = "Fuel System"},
{down = device_commands.Button_10, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Right Shutoff Cover OPEN', category = "Fuel System"},
{down = device_commands.Button_10, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Right Shutoff Cover CLOSE', category = "Fuel System"},
{down = device_commands.Button_2, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Right Shutoff Valve OPEN', category = "Fuel System"},
{down = device_commands.Button_2, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Right Shutoff Valve CLOSE', category = "Fuel System"},

Crossfeed Valve :
{down = device_commands.Button_11, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Crossfeed Cover OPEN', category = "Fuel System"},
{down = device_commands.Button_11, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Crossfeed Cover CLOSE', category = "Fuel System"},
{down = device_commands.Button_4, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 1.0, name = 'Crossfeed Valve OPEN', category = "Fuel System"},
{down = device_commands.Button_4, cockpit_device_id = devices.FUELSYS_INTERFACE, value_down = 0.0, name = 'Crossfeed Valve CLOSE', category = "Fuel System"},

Rotor Brake :
{down = device_commands.Button_11, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Rotor Brake ON', category = "Systems"},
{down = device_commands.Button_11, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = 'Rotor Brake OFF', category = "Systems"},

Cut-off Valves :
{down = device_commands.Button_9, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Left Engine Cut-Off Valve OPEN', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_9, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = 'Left Engine Cut-Off Valve CLOSE', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_10, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Right Engine Cut-Off Valve OPEN', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_10, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = 'Right Engine Cut-Off Valve CLOSE', category = "Ins Engines start-up control panel and levers"},

Generators :
{down = device_commands.Button_15, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Generator 1 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_15, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Generator 1 OFF', category = "Right Electropanel's Dash"},
{down = device_commands.Button_16, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Generator 2 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_16, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Generator 2 OFF', category = "Right Electropanel's Dash"},

Rectifiers :
{down = device_commands.Button_7, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Rectifier 1 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_7, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Rectifier 1 OFF', category = "Right Electropanel's Dash"},
{down = device_commands.Button_5, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Rectifier 2 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_5, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Rectifier 2 OFF', category = "Right Electropanel's Dash"},
{down = device_commands.Button_6, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 1.0, name = 'Rectifier 3 ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_6, cockpit_device_id = devices.ELEC_INTERFACE, value_down = 0.0, name = 'Rectifier 3 OFF', category = "Right Electropanel's Dash"},

Fire Detection System :
{down = device_commands.Button_10, cockpit_device_id = devices.FIRE_EXTING_INTERFACE, value_down = 0.0, name = 'Fire Detection OFF', category = "Fire Extinguisher System"},
{down = device_commands.Button_10, cockpit_device_id = devices.FIRE_EXTING_INTERFACE, value_down = 1.0, name = 'Fire Detection ON', category = "Fire Extinguisher System"},

APU Mode Selector :
{down = device_commands.Button_12, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'APU Mode Selector START', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_12, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = 'APU Mode Selector CRANK', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_12, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = -1.0, name = 'APU Mode Selector FALSE START', category = "Ins Engines start-up control panel and levers"},

Engine Start Selector :
{down = device_commands.Button_8, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Engine Selector RIGHT', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_8, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = 'Engine Selector OFF', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_8, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = -1.0, name = 'Engine Selector LEFT', category = "Ins Engines start-up control panel and levers"},

Engine Start Mode :
{down = device_commands.Button_27, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 1.0, name = 'Engine Mode Selector START', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_27, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = 0.0, name = 'Engine Mode Selector OFF', category = "Ins Engines start-up control panel and levers"},
{down = device_commands.Button_27, cockpit_device_id = devices.ENGINE_INTERFACE, value_down = -1.0, name = 'Engine Mode Selector CRANK', category = "Ins Engines start-up control panel and levers"},

Attitude Indicators Power :
{down = device_commands.Button_4, cockpit_device_id = devices.AGB_3K_RIGHT, value_down = 1.0, name = 'Right Attitude Indicator ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_4, cockpit_device_id = devices.AGB_3K_RIGHT, value_down = 0.0, name = 'Right Attitude Indicator OFF', category = "Right Electropanel's Dash"},
{down = device_commands.Button_4, cockpit_device_id = devices.AGB_3K_LEFT, value_down = 1.0, name = 'Left Attitude Indicator ON', category = "Left Electropanel's Dash"},
{down = device_commands.Button_4, cockpit_device_id = devices.AGB_3K_LEFT, value_down = 0.0, name = 'Left Attitude Indicator OFF', category = "Left Electropanel's Dash"},

GMC Power :
{down = device_commands.Button_1, cockpit_device_id = devices.GMK1A, value_down = 1.0, name = 'GMC Power ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_1, cockpit_device_id = devices.GMK1A, value_down = 0.0, name = 'GMC Power OFF', category = "Right Electropanel's Dash"},

Radio Mode Selector :
{down = device_commands.Button_4, cockpit_device_id = devices.SPU_7, value_down = 1.0, name = 'Radio Selector ICS', category = "SPU-7, Intercom panel"},
{down = device_commands.Button_4, cockpit_device_id = devices.SPU_7, value_down = 0.0, name = 'Radio Selector RADIO', category = "SPU-7, Intercom panel"},

Radar Altimeter Power :
{down = device_commands.Button_3, cockpit_device_id = devices.RADAR_ALTIMETER, value_down = 1.0, name = 'Radar Altimeter Power ON', category = "Left Dash"},
{down = device_commands.Button_3, cockpit_device_id = devices.RADAR_ALTIMETER, value_down = 0.0, name = 'Radar Altimeter Power OFF', category = "Left Dash"},

Doppler Nav Power :
{down = device_commands.Button_1, cockpit_device_id = devices.DISS_15, value_down = 1.0, name = 'Doppler Navigation Power ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_1, cockpit_device_id = devices.DISS_15, value_down = 0.0, name = 'Doppler Navigation Power OFF', category = "Right Electropanel's Dash"},

JADRO 1A Power :
{down = device_commands.Button_13, cockpit_device_id = devices.JADRO_1A, value_down = 1.0, name = 'JADRO 1A Power ON', category = "Right Electropanel's Dash"},
{down = device_commands.Button_13, cockpit_device_id = devices.JADRO_1A, value_down = 0.0, name = 'JADRO 1A Power OFF', category = "Right Electropanel's Dash"},

RI-65 Power :
{down = device_commands.Button_6, cockpit_device_id = devices.VMS, value_down = 1.0, name = 'RI-65 Power ON', category = "Left Electropanel's Dash"},
{down = device_commands.Button_6, cockpit_device_id = devices.VMS, value_down = 0.0, name = 'RI-65 Power OFF', category = "Left Electropanel's Dash"},

VK-53 Power :
{down = device_commands.Button_1, cockpit_device_id = devices.CORRECTION_INTERRUPT, value_down = 1.0, name = 'VK-53 Power ON', category = "Left Electropanel's Dash"},
{down = device_commands.Button_1, cockpit_device_id = devices.CORRECTION_INTERRUPT, value_down = 0.0, name = 'VK-53 Power OFF', category = "Left Electropanel's Dash"},
Link to comment
Share on other sites

  • Recently Browsing   0 members

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