Can not set 2 commands to one toggle switch with keyfile editor.
-
In BMS 4.34 I was able to set 2 commands to one toggle switch such as CATI and CATIII. Now all of the toggles only recognize the fwd position and not the back from fwd position. Is there a way using the keyfile editor to assign 2 functions to one toggle?
-
If you use Alternate launcher it makes it so much easier for these buttons. But in any case you need to set one position as the RELEASE. Here is an example what mine looks like. I have a Warthog and it only detects the up position so you need the down position as a Release command
SimCATI 183 -1 -2 0 0x0 0
SimCATIII 183 -2 -2 0x42 0x0 0 -
This post is deleted! -
Thank you Jambo! I had a look at the Alternate launcher and saw that is how it handles this but I do not know enough about it to get that to work. I believe you need to change something with the code (or keyfile, it is not very clear to me) it reads to make it work?
-
Did you get this to work? Post your code and I may be able to help. I’ve been neck deep in target.
Also Jambo’s code goes in the keyfile. It tells the sim to push a button when a joystick button is released. Which works for the Warthog throttle because when the switch is thrown it holds the joystick button. When it’s the switch is rest it stops pressing that joystick button and BMS then invokes the action.SimCATI 183 -1 -2 0 0x0 0 ```This turns on CAT 1 when joystick button 182 is pressed
SimCATIII 183 -2 -2 0x42 0x0 0
To do this with target script we have to invoke an key press for both switch positions.
//Engine Fuel Flow Right
// Switch Forward MapKey(&Throttle, EFRNORM, PULSE+L_CTL+L_ALT+'r'); // Switch Forward = CAT 1 // SimCATI = CTRL + ALT + r = 0x13 6 // Switch Aft MapKey(&Throttle, EFROVER, PULSE+L_CTL+L_SHIFT+L_ALT+'r'); // Switch Aft = CAT 3 // SimCATIII = CTRL + SHFT + ALT R = 0x13 7
Target Casts CTRL + ALT + r When the right engine fuel flow switch on the Warthog throttle is forward. However we also have to Add this bind to the Keyfile. The next set of notes are for me and telll me which key bind I need to change, and the hex code I need to add to trigger the response. Then when switch is pressed aft Target casts CTRL + SHFT + ALT R Which is what I have bound to Cat III in the key file. So in my Key file I have
SimCATI 115 0 0X13 6 0 0 1 “GEAR: STORES CONFIG Switch - CAT I”
SimCATIII 115 0 0X13 7 0 0 1 “GEAR: STORES CONFIG Switch - CAT III”and This maps CTRL + SHFT + ALT R To Cat III
-
Thanks Gastone, I was able to get it to work. My problem was I was testing in the dogfight module. Some of the switches don’t work correctly in that module. When I loaded up a TE everything worked fine. I’ve been at this since the mid 90’s you would think I would know this by now! :uham::uham:
-
Greetings. I too am trying to map 2 commands to a 2 position-toggle switch on my Throttle. Up to now, I’ve been using Morphine/Gastone’s TARGET profile which handle all the buttons and switches really well but I am also trying to learn some Key file editing. Been searching thru the forum’s threads and I came across this one. I have a couple of questions if I may and hoping someone can help.
I am using Windows 10 Notepad App for editing the Key file. I’m using “BMS_Full” Key file.- First, I’ve mapped my Joystick/Throttle (DX Device} switch thru BMS UI. (only in the “Up” position though as "down position is not recognized).
- Then I open the key file thru Notepad to try to program the switch to be recognized in the “down” position.
When I check the Key file code with Notepad, 3rd value in the Key file line corresponding to the switch that I programmed thru BMS UI has a value of “8” (as mentioned in the Key file editor manual).
“SimAntiCollOn 55 8 -2 0 0x0 -1” for example. Now, I would like to make this switch turn the AntiColl lights “Off” when in the down position
Key file manual basically says that in order to to make the corresponding switch to work in both “Up” and “Down” positions, the “8” value has to be changed to “-2”. Correct?
So the Key file line should now read: “SimAntiCollOn 55 -2 -2 0 0x0 -1”
Also, another new line needs to be added to the code for each switch that you plan to use in both positions “SimAntiCollOff 55 -2 -2 0x42 0x0 -1” in this case. True?
So the new line(s) would read:“SimAntiCollOn 55 -2 -2 0 0x0 -1”
“SimAntiCollOff” 55 -2 -2 0x42 0x0 -1"After editing the corresponding lines and specific values I then tried the switch “in game” and everything’s good…switch behaving as programmed.
The issue that I’m facing is that the switch keeps “resetting” back to its original state (only works in the “Up” position).
When I open the key file the DX switch’s 3rd value has changed back to “8”. The “SimAntiCollOff” 55 -2 -2 0x42 0x0 -1" line which I added is also missing.
Don’t know if I’m doing something wrong but I’m pretty sure that I’ve followed the instructions correctly.I would like to add that after configuring the switch and checking it “in game” a few times, I proceeded to map some more switches thru the BMS UI first, with the idea of then editing the Key file lines’ values thru Notepad
I understand that programming buttons and switches thru BMS UI is not recommended. Could this be the cause for the switch which I had previously configured to work in both positions to revert back to its default value?Thanks
-
You’ve setup the keybinds correctly. It sounds like the in game UI is overwriting your changes. You should also checkout notepad ++ it makes it easier to work with the keyfile. It’s free too.
-
I also have BMS installed on a Laptop and was having a go with the Keybindings.
Getting same results.
I’ve also got a Logitech 3D pro Joystick which I connected to the Laptop. There’s no switches on this Joystick, just buttons but the principle is the same. Press/release.
Configured one of the Joystick’s pushbutton as SimAntiCollOn/Off.
Works perfectly all the time, even after restarting BMS a few times and testing the push button/switch “in game”.
Its only when I proceed to “map” a new button (thru BMS UI) that the previous one resets to its default value.
Maybe it’s a BMS Keyfile code safety feature so that the Keyfiles don’t get messed up or something.
I just wanted to make sure that I was setting up the Keybinds correctly.
Thanks for the tip Gastone. Bms Key file editor manual also recommends Norepad ++.
I’ll start using that. -
I also have BMS installed on a Laptop and was having a go with the Keybindings.
Getting same results.
I’ve also got a Logitech 3D pro Joystick which I connected to the Laptop. There’s no switches on this Joystick, just buttons but the principle is the same. Press/release.
Configured one of the Joystick’s pushbutton as SimAntiCollOn/Off.
Works perfectly all the time, even after restarting BMS a few times and testing the push button/switch “in game”.
Its only when I proceed to “map” a new button (thru BMS UI) that the previous one resets to its default value.
Maybe it’s a BMS Keyfile code safety feature so that the Keyfiles don’t get messed up or something.
I just wanted to make sure that I was setting up the Keybinds correctly.
Thanks for the tip Gastone. Bms Key file editor manual also recommends Norepad ++.
I’ll start using that.Maybe consider to use the Alternative Launcher for BMS it has all those missing features such as press release Button switch assignment as well as Shift layer assignment. without haven to deal with the key files directly
https://github.com/chihirobelmo/FalconBMS-Alternative-Launcher
-
Maybe consider to use the Alternative Launcher for BMS it has all those missing features such as press release Button switch assignment as well as Shift layer assignment. without haven to deal with the key files directly
https://github.com/chihirobelmo/FalconBMS-Alternative-Launcher
I’ve been aware of AL for a while now and have “read” great things about it.
Apart from my Hotas, I also have TM MFDs (mapped through BMS UI) and some panels with switches which work thru Pokeys software.
Would you know if AL recognizes or works well with other devices (non- DX)? -
i use a TM WARTHOG , MFDs and a Logitech G13 and AL works great with all of them.