How to assign Gen Reset to a button?
-
Hello!
I use Axis and Ohs for button assignments.
When I use the "L:var_GeneratorReset_L" command from the manual it only switches the generator to ON but it does not go to RESET before.
I want it to stay at RESET as long as the button is held, and when releasing it should go to ON. Is there a way to do this?Thank you!
-
Hello!
I use Axis and Ohs for button assignments.
When I use the "L:var_GeneratorReset_L" command from the manual it only switches the generator to ON but it does not go to RESET before.
I want it to stay at RESET as long as the button is held, and when releasing it should go to ON. Is there a way to do this?Thank you!
@Rhinozherous I may have an idea, but it won't be pretty. It may involve editing some files. I can try it later in a few hours when I get to the computer.
-
There are smarter people here than me, but with a hardware toggle switch I used toggle_alternate1 on the down switch which cycles on/off.
On the up switch I use keydown/keyup events L:var_GeneratorReset_L (and R for right) as 1 and 0. Press will move the switch to the reset position and release will move it back to the on position.
A three position switch is needed for these, but this is a workaround
Maybe another way is to assign the usual up/down switch as off/on, then another event as hold forward to reset.
Nope, that didn't work, hold moves the switch to reset, but doesn't spring back to on, which is why I used my original arrangement.. -
I’m not familiar with AO, but I’m SpadNext the three position switch will have three positions 0, 1, and 2 as values. It may take experimentation to determine what value does what to the switch.
-
I use FSUIPC so the programming can be also be difficult. I'll usually take the wording from what Nick provides in the manual (or in a forum post) and do a search in the "starship_interior.xml" file to see if I can get additional wording that might help with functionality. That said this generator reset for the Starship has been elusive (as well as a few others). I do have many functions working with my hardware but we'll have to wait for more clues to get them all to work.
-
Hello!
I use Axis and Ohs for button assignments.
When I use the "L:var_GeneratorReset_L" command from the manual it only switches the generator to ON but it does not go to RESET before.
I want it to stay at RESET as long as the button is held, and when releasing it should go to ON. Is there a way to do this?Thank you!
@Rhinozherous so I was playing with it a bit in AAO, and seems it's much easier than I expected. Thought that the momentary reset position would be making problems like the prop overspeed test, but this one plays nicely with the reset variable on/off.
So to get the behaviour you describe in the original post, I bound bothK:ALTERNATOR_ON/OFF
and the GeneratorReset LVAR to two buttons, to achieve that with the press of the ON button, you turn on the generator and while holding the button, it will be held in the reset positon. And the OFF button turns it off.These are the bindings:
RIGHT generator ON button (#4 in my case) has two bindings:
first binding: (K:2:ALTERNATOR_ON) screenshot
second binding: screenshot
Key Down (L:var_GeneratorReset_R) = 1
Key Up (L:var_GeneratorReset_R) = 0RIGHT generator OFF button (#9):
(K:2:ALTERNATOR_OFF) screenshotRepeat for the LEFT generator as appropriate.
Note: the ALTERNATOR_ON/OFF is an indexed event which may be a bit tricky in AAO, bindings for the LEFT engine look like this, the engine index is the rightmost value, and the value being sent is in the
K:2:index
field: screenshotI hope I didn't mix up the screenshots, would be nice to have the image upload feature back
-
@Rhinozherous so I was playing with it a bit in AAO, and seems it's much easier than I expected. Thought that the momentary reset position would be making problems like the prop overspeed test, but this one plays nicely with the reset variable on/off.
So to get the behaviour you describe in the original post, I bound bothK:ALTERNATOR_ON/OFF
and the GeneratorReset LVAR to two buttons, to achieve that with the press of the ON button, you turn on the generator and while holding the button, it will be held in the reset positon. And the OFF button turns it off.These are the bindings:
RIGHT generator ON button (#4 in my case) has two bindings:
first binding: (K:2:ALTERNATOR_ON) screenshot
second binding: screenshot
Key Down (L:var_GeneratorReset_R) = 1
Key Up (L:var_GeneratorReset_R) = 0RIGHT generator OFF button (#9):
(K:2:ALTERNATOR_OFF) screenshotRepeat for the LEFT generator as appropriate.
Note: the ALTERNATOR_ON/OFF is an indexed event which may be a bit tricky in AAO, bindings for the LEFT engine look like this, the engine index is the rightmost value, and the value being sent is in the
K:2:index
field: screenshotI hope I didn't mix up the screenshots, would be nice to have the image upload feature back
@Randolf You are awesome! Will trie! Thank you very much!
-
I use FSUIPC so the programming can be also be difficult. I'll usually take the wording from what Nick provides in the manual (or in a forum post) and do a search in the "starship_interior.xml" file to see if I can get additional wording that might help with functionality. That said this generator reset for the Starship has been elusive (as well as a few others). I do have many functions working with my hardware but we'll have to wait for more clues to get them all to work.