Diesel_Thunder Posted May 11, 2021 Posted May 11, 2021 (edited) A friend of mine is building a A-10 simpit and decided to use the Button Box Interface, model BBI-64, for his switches and buttons. The issue he ran into is that he's having to cycle a toggle switch twice in order to change the state of the switch in the sim. I know you have to edit the lua file to do this, and I'm new to it as I just recently got a TM Warthog, and only started getting in to modifying lua for it's toggle switches in other modules. The lua structure on his BBI isn't the same as what I would find in doing the same for my Warthog. Here's an example from his fuel panel for one of the boost pump toggles: Quote ["d1083pnilunilcdnilvdnilvpnilvunil"] = { ["added"] = { [1] = { ["key"] = "JOY_BTN8", }, }, ["name"] = "Left wing tank boost pump", }, And the same line without the spacing: Quote ["d1083pnilunilcdnilvdnilvpnilvunil"] = {["added"] = {[1] = {["key"] = "JOY_BTN8",},},["name"] = "Left wing tank boost pump",}, Not what I expected to see as there's not an UP/DOWN or DEVICE ID. The controller works in the sim, and toggles the correct switch, just have to cycle it twice each time he wants to toggle that switch in sim. What needs to be added/changed on these lines in order to make it act as a normal toggle? Edited May 11, 2021 by Diesel_Thunder PC: MSI X670E, Ryzen 9 7900X, 64GB DDR5 RAM, RTX 3090 Ti, TM Warthog HOTAS, Saitek Pro Flight pedals, Opentrack Link to my Youtube Channel: https://www.youtube.com/c/DieselThunderAviation Commander, 62nd Virtual Fighter Squadron Join the 62nd VFS today! Link to our discord server: https://discord.gg/Z25BSKk84s
agrasyuk Posted May 12, 2021 Posted May 12, 2021 Had the same question. Anton. My pit build thread . Simple and cheap UFC project
Diesel_Thunder Posted May 14, 2021 Author Posted May 14, 2021 @agrasyuk I had a small revelation, I think we're trying to edit the wrong file. The file I was trying to edit in under: <drive>:\Users\<username>\Saved Games\DCS.openbeta\Config\Input\<aircraft> . This isn't the correct file and has the line entries like I showed in my first post. My TM Warthog lua has identically formatted entries as my friends BBI-64 lua file in those folders. The correct file we need to work on is: <drive>:\Eagle Dynamics\DCS World OpenBeta\Mods\aircraft\<aircraft>\Input\<aircraft>\<folder>\default.lua I have to modify entries for my TM Warthog so the default.lua I need to work on is under the joystick folder. I think the BBI-64 falls under keyboard, so the default.lua there in that folder needs to get worked on. LeCuvier wrote this awesome guide which is helping me work on my Warthog switches in other aircraft: PC: MSI X670E, Ryzen 9 7900X, 64GB DDR5 RAM, RTX 3090 Ti, TM Warthog HOTAS, Saitek Pro Flight pedals, Opentrack Link to my Youtube Channel: https://www.youtube.com/c/DieselThunderAviation Commander, 62nd Virtual Fighter Squadron Join the 62nd VFS today! Link to our discord server: https://discord.gg/Z25BSKk84s
Recommended Posts