Habu_69 Posted November 18, 2012 Posted November 18, 2012 My goal was to assign the Master Switch Arm/Safe functions to my F-16 MFD 1 SYM rocker. Note that the rocker switches in the sim are in different positions than the labels on the device; however, for example, the BRT rocker on the device still actuates the BRT rocker in the cockpit. I found no method to make the Master Switch assignment to the MFD rocker within the GUI Options> Controls applet. After much experimentation, I discovered the following. DCSW 3D world actions are invoked by commands in the form iCommandText, for example iCommandPlaneAHCPMasterArm. The relevant .lua files are located in the folders C:\Users\(Name)\Saved Games\DCS\Config\Input\A-10C\keyboard and joystick. These device .lua files are initially generated by customizing key assignments in the Options > Controls applet, then clicking OK to save them. I assigned my F-16 MFD 1 CON rocker up/down to master switch arm/safe. For safety, backup any .lua files you change manually, so you can recover from a screw-up. 1. In the ...\A-10C\keyboard\keyboard.lua file, locate and copy the command line you want to assign, for example the Master Switch Arm (iCommandPlaneAHCPMasterArm). 2. In the A-10C\joystick folder open the .lua file of the device to which you wish to assign the command, for example F16 MFD 1 {4851D710-2F48-11e2-8002-444553540000}.lua. 3. Locate in the device.lua file the Win Joy button, to which you wish to assign the key binding, for example the line: {combos = {{key = "JOY_BTN23"}, }, down = iCommandPlaneLeftMFD_CON_Increase, up = iCommandPlaneLeftMFD_CON_Stop, name = "Left MFCD CON Increase", category = "Left MFCD"}, 4. Copy and replace relevant portions of the key binding text so that it resembles the binding from the keyboard file. For example: {combos = {{key = "JOY_BTN23"}, }, down = iCommandPlaneAHCPMasterArm, name = "Master switch ARM", category = "Armament HUD Control Panel"}, I like to first paste the new stuff at the end of the line, then alter the line as necessary. 5. Save the file Now in the sim Options>Controls applet you should see the Master Switch Arm command assigned to the F-16 MFD 1 device Joy Button 23. In the 3D world the CON rocker will actuate the Master Switch. Enjoy.
ED Team BIGNEWY Posted November 18, 2012 ED Team Posted November 18, 2012 Nice work, you may want to take a look here as well, found it very helpful http://forums.eagle.ru/showthread.php?t=89226&highlight=TOGGLE+LUA 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
Recommended Posts