dotChuckles Posted March 24, 2011 Posted March 24, 2011 Hey guys, I tore apart an old game pad and turned it in to a switch box with some toggles. It was kind of a proof of concept for me. I will expand it, but at the moment I have limited switches. My question is... is there some kind of clever LUA scripting I can do in the controller file that will let me flip all four fuel pump switches when I flip one toggle switch on my frakenpanel? Thanks! [sIGPIC][/sIGPIC]
TigersharkBAS Posted March 25, 2011 Posted March 25, 2011 Try joy2keys Google it. Should be able to set up multiple keystrokes I think. Not 100% positive on this though. [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
dotChuckles Posted March 25, 2011 Author Posted March 25, 2011 Ahh! Hadn't thought of that. Will have to see if it will work with using a continuous signal from the toggle... will have to experiment when I get done with work. [sIGPIC][/sIGPIC]
Krebs20 Posted March 25, 2011 Posted March 25, 2011 Go to min 2:30 Heres a place to start. You could get away with putting all the Fuel switches to one Real toggle. The problem is that in game has no Boost pump on. Boost pump off command. Its just on/off as the same command. So if you set up a toggle that when its on, it will turn all four switches. When its off it switches everything again. Sync will have be backwards if you start a backwards state. Before [359] = { ["name"] = "Left wing tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1083, }, -- end of [359] [360] = { ["name"] = "Right wing tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1084, }, -- end of [360] [361] = { ["name"] = "Left wing tank fill disable", ["category"] = "Fuel system control panel", ["down"] = 1085, }, -- end of [361] [362] = { ["name"] = "Right wing tank fill disable", ["category"] = "Fuel system control panel", ["down"] = 1086, }, -- end of [362] [363] = { ["name"] = "Left main tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1087, }, -- end of [363] [364] = { ["name"] = "Right main tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1088, After Sadly this didnt work. [355] = { ["combos"] = { [1] = { ["key"] = "JOY_BTN1", ["reformers"] = { }, -- end of ["reformers"] }, -- end of [1] }, -- end of ["combos"] ["name"] = "Left wing tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1083, }, -- end of [355] [356] = { ["combos"] = { [1] = { ["key"] = "JOY_BTN1", ["reformers"] = { }, -- end of ["reformers"] }, -- end of [1] }, -- end of ["combos"] ["name"] = "Right wing tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1084, }, -- end of [356] [357] = { ["name"] = "Left wing tank fill disable", ["category"] = "Fuel system control panel", ["down"] = 1085, }, -- end of [357] [358] = { ["name"] = "Right wing tank fill disable", ["category"] = "Fuel system control panel", ["down"] = 1086, }, -- end of [358] [359] = { ["combos"] = { [1] = { ["key"] = "JOY_BTN1", ["reformers"] = { }, -- end of ["reformers"] }, -- end of [1] }, -- end of ["combos"] ["name"] = "Left main tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1087, }, -- end of [359] [360] = { ["combos"] = { [1] = { ["key"] = "JOY_BTN1", ["reformers"] = { }, -- end of ["reformers"] }, -- end of [1] }, -- end of ["combos"] ["name"] = "Right main tank boost pump", ["category"] = "Fuel system control panel", ["down"] = 1088, }, -- end of [360] My experiment failed. It only flips the Boost pump Left wing. I know you can put as many switches to run one function as you want. (every key on your keyboard could be Fire Cannon, roll your face on keyboard when you line up tank) But running 2 functions off one key has eluded me. I hope this helps put you in the right direction. BTW If you run vista or Windows 7 and install on a different drive than your C drive. You have to find the controller profile in C:\Users\<Your USER NAME>\Saved Games\DCS Warthog\Config\Input\A-10C\joystick. On my computer I installed A10 on the D drive and the file path he gives in the video only has that default game profiles that come with A10c. Not my own. 1 [sIGPIC][/sIGPIC]
dotChuckles Posted March 25, 2011 Author Posted March 25, 2011 Thanks Krebs, I had gone down a similar route as your last example and found the same thing. It only seems to do the first action assigned to the button. This might need tome input from ED as to if this is possible. Appreciate you having a look for me though. Thanks. [sIGPIC][/sIGPIC]
Recommended Posts