Jump to content
The simFlight Network Forums

Button Contingency


Recommended Posts

Pete

I have two switches 72,0 and 72,7.  Switch 72,7 is not supposed to operate until switch 72,0 is in the ON position.  I added a button contingency highlighted in red and for a while it worked fine.  It no longer does.  Now the strange thing is I cannot see button 72,7 in the INI file yet it is recognized in Buttons + Switches as such and is noted that it is dependent on another button and to edit in the INI file.  Can you please help me figure out why it's not showing up in the INI file and the reason the dependency is no longer working?
Thanks

Alan

 

 

 

[buttons]
ButtonRepeat=20,10
0=PB,0,Cx0D0073F8,x01
2=PB,5,Cx050073F8,x20
4=PB,1,Cx050073F8,x02
5=PB,14,C66040,16211
6=UB,1,Cx090073F8,x02
7=UB,0,Cx090073F8,x01
8=PB,2,Cx050073F8,x04
9=UB,2,Cx090073F8,x04
10=PB,3,Cx050073F8,x08
11=UB,3,Cx090073F8,x08
12=PB,4,Cx050073F8,x10
13=UB,4,Cx090073F8,x10
14=UB,5,Cx090073F8,x20
15=PB,13,Cx050073D5,x40
18=UB,13,Cx090073D5,x40
19=PB,7,Cx050073F9,x01
20=UB,7,Cx090073F9,x01
21=PB,8,Cx050073F9,x02
22=UB,8,Cx090073F9,x02
23=PB,9,Cx050073F9,x04
24=UB,9,Cx090073F9,x04
25=PB,10,Cx050073F9,x08
26=UB,10,Cx090073F9,x08
27=PB,11,Cx050073F9,x10
28=UB,11,Cx090073F9,x10
29=PB,12,Cx050073F9,x20
30=UB,12,Cx090073F9,x20
31=RB,19,Cx110073FD,x00FF0001
32=RB,18,Cx210073FD,x00FF0001
33=RB,23,Cx110073FC,x00FF0001
34=RB,22,Cx210073FC,x00FF0001
35=RB,21,Cx210073D2,x00FF0001
36=RB,20,Cx110073D2,x00FF0001
37=RB,25,Cx510073D7,x00FF0000
38=RB,24,Cx610073D7,x000000FF
39=RB,27,Cx610073D8,x000000FF
40=RB,26,Cx51000049,x00FF0000
41=RB,29,C65883,1
42=RB,28,C65884,1
70=PB,6,C65821,0
71=UB,6,C65821,-4096
75=R72,4,Cx32000C04,x3FFF004B
76=R72,5,Cx33000C02,x3FFF004B
77=R72,3,Cx42000000,xC001004B
78=PC,4,Cx02000BC8,x0000
80=PC,5,C65820,0
81=UC,5,C65820,-4096
82=PC,6,C65821,0
83=UC,6,C65821,-4096
84=PC,2,C65983,0
85=UC,2,C65987,0
86=PC,3,C65988,0
87=UC,3,C65992,0
88=UC,4,Cx02000BC8,x7FFF
89=R72,6,Cx42000C02,xC001004B
90=P72,0,C1126,0
91=U72,0,C66705,0
92=CR(+72,0)72,7,C66704,1
93=P69,8,CL3:R,0
94=U69,8,CL3:K,0
95=P70,9,CL4:R,0
96=U70,9,CL4:K,0
97=P70,10,CL3:R,0
98=U70,10,CL3:K,0
99=R64,0,Cx42000BC0,xC001004B
100=R72,1,Cx32000BC0,x3FFF004B
101=R72,2,Cx42000BC0,xC001004B
102=P64,2,CL5:R,0
103=U64,2,CL5:K,0
104=P64,3,CL6:R,0
105=U64,3,CL6:K,0
106=P64,5,CL5:R,0
107=U64,5,CL5:K,0
108=P64,4,CL3:R,0
109=U64,4,CL3:K,0
110=R64,7,Cx32000BC0,x3FFF004B
111=P64,8,C1126,0
112=CR(-64,8)72,1,Cx32000BC0,x3FFF004B
113=CR(-64,8)64,0,Cx42000BC0,xC001004B
Link to comment
Share on other sites

I have two switches 72,0 and 72,7.  Switch 72,7 is not supposed to operate until switch 72,0 is in the ON position.  I added a button contingency highlighted in red and for a while it worked fine.  It no longer does.  Now the strange thing is I cannot see button 72,7 in the INI file yet it is recognized in Buttons + Switches as such and is noted that it is dependent on another button and to edit in the INI file.  Can you please help me figure out why it's not showing up in the INI file and the reason the dependency is no longer working?

 

But it IS listed in the [buttons] section with the condition! You even highlighted it in RED:

 

92=CR(+72,0)72,7,C66704,1

 

That IS the assignment to 72,7 with the condition on 72,0 being pressed included. What did you expect it to look like?

 

You also have two assignments to 72,0, apart from its use in qualifying 72,7:

 

90=P72,0,C1126,0

91=U72,0,C66705,0
 
The odd thing is that your conditional 72,7 assignment seems to be to "APU Starter" with a parameter of 1 (does that really do anything?), whilst releasing 72,0 does an "APU Off Switch". It looks to me that one might cancel the other.
 
You say that
 
for a while it worked fine.  It no longer does

 

but you need to realise that FSUIPC doesn't change by iteself, nor does your INI file setting. I've no idea what you mean to do with these assignments (they make no sense to me), but whatever it is if it changed then it is because you changed something.
 
Regards
Pete
Link to comment
Share on other sites

 

But it IS listed in the [buttons] section with the condition! You even highlighted it in RED:

 

That IS the assignment to 72,7 with the condition on 72,0 being pressed included. What did you expect it to look like?

 

Pete

Yes I know it's listed -- but only where I entered it in the button condition.  The actual button entry is not. The entry for button 72,0 is here:

 

90=P72,0,C1126,0
91=U72,0,C66705,0
 
What I don't see is the equivalent entry for 72,7. What I expected to see was this entry, as I programmed the Down (On) action as APU start:
 
120=P72,7,C66704,1

I tried to delete the action for 72,7 in Buttons + Switches and reprogram it but it's grayed out and says I can only edit it in the INI file!! I even deleted the programming for Virtual Joystick 72 buttons 0 and 7 and deleted the button condition in the INI file.  Buttons + Switches didn't recognize them -- obviously as I had deleted them, but when I reprogrammed 72,7 and went into Buttons + Switches and actuated it, it defaulted to the original entry (APU Start) and is grayed out

 
FYI 72,7 is APU START and 72,0 is the APU Master and it has to be ON before the APU can be started.  Once the APU is running turning 72,0 OFF stops the APU.
 
Thanks
Alan
Link to comment
Share on other sites

Yes I know it's listed -- but only where I entered it in the button condition.  The actual button entry is not.

 

But that IS the "actual" button entry!!!

It is how a conditional button action is recorded. If there were another entry for the same button ythen the action it defined woyuld NOT be conditional!!!

 

 
What I don't see is the equivalent entry for 72,7. What I expected to see was this entry, as I programmed the Down (On) action as APU start:
 

120=P72,7,C66704,1

 

That is almost the SAME as this:

 

92=CR(+72,0)72,7,C66704,1

 

but without the Repeat action ® and without the condition that 72,0 must be pressed. Why would you want it to send control 66704 once when 72,0 is not pressed, but twice when it is pressed? If that is what you want, just at the extra line.

 

If you want the conditional equivalent of  "120=P72,7,C66704,1" you would have

 

120=CP(+72,0)72,7,C66704,1

 

i.e. the same as your line 92 but with 'P' for 'Press' instead of 'R' for 'Repeat'.

 

Please please DO read the documentation which explains the format of button definitions, then when you mess around you might understand what you are doing. Okay?

 

I tried to delete the action for 72,7 in Buttons + Switches and reprogram it but it's grayed out and says I can only edit it in the INI file!

 

Correct, exactly as documented. The dialogue is only suited to normal simple programming. Once you start messing with multiple actions and conditions it is an INI file editing job.

 

Pete

Link to comment
Share on other sites

Pete

Okay to preserve your sanity let me approach this from another direction.   I deleted the button conditional line (and only the button conditional line) so I can program the APU START button in a different way without being conditional on another button.  So now this is my INI button section:

 

[buttons]
ButtonRepeat=20,10
0=PB,0,Cx0D0073F8,x01
2=PB,5,Cx050073F8,x20
4=PB,1,Cx050073F8,x02
5=PB,14,C66040,16211
6=UB,1,Cx090073F8,x02
7=UB,0,Cx090073F8,x01
8=PB,2,Cx050073F8,x04
9=UB,2,Cx090073F8,x04
10=PB,3,Cx050073F8,x08
11=UB,3,Cx090073F8,x08
12=PB,4,Cx050073F8,x10
13=UB,4,Cx090073F8,x10
14=UB,5,Cx090073F8,x20
15=PB,13,Cx050073D5,x40
18=UB,13,Cx090073D5,x40
19=PB,7,Cx050073F9,x01
20=UB,7,Cx090073F9,x01
21=PB,8,Cx050073F9,x02
22=UB,8,Cx090073F9,x02
23=PB,9,Cx050073F9,x04
24=UB,9,Cx090073F9,x04
25=PB,10,Cx050073F9,x08
26=UB,10,Cx090073F9,x08
27=PB,11,Cx050073F9,x10
28=UB,11,Cx090073F9,x10
29=PB,12,Cx050073F9,x20
30=UB,12,Cx090073F9,x20
31=RB,19,Cx110073FD,x00FF0001
32=RB,18,Cx210073FD,x00FF0001
33=RB,23,Cx110073FC,x00FF0001
34=RB,22,Cx210073FC,x00FF0001
35=RB,21,Cx210073D2,x00FF0001
36=RB,20,Cx110073D2,x00FF0001
37=RB,25,Cx510073D7,x00FF0000
38=RB,24,Cx610073D7,x000000FF
39=RB,27,Cx610073D8,x000000FF
40=RB,26,Cx51000049,x00FF0000
41=RB,29,C65883,1
42=RB,28,C65884,1
70=PB,6,C65821,0
71=UB,6,C65821,-4096
75=R72,4,Cx32000C04,x3FFF004B
76=R72,5,Cx33000C02,x3FFF004B
77=R72,3,Cx42000000,xC001004B
78=PC,4,Cx02000BC8,x0000
80=PC,5,C65820,0
81=UC,5,C65820,-4096
82=PC,6,C65821,0
83=UC,6,C65821,-4096
84=PC,2,C65983,0
85=UC,2,C65987,0
86=PC,3,C65988,0
87=UC,3,C65992,0
88=UC,4,Cx02000BC8,x7FFF
89=R72,6,Cx42000C02,xC001004B
90=P72,0,C1126,0
91=U72,0,C66705,0
93=P69,8,CL3:R,0
94=U69,8,CL3:K,0
95=P70,9,CL4:R,0
96=U70,9,CL4:K,0
97=P70,10,CL3:R,0
98=U70,10,CL3:K,0
99=R64,0,Cx42000BC0,xC001004B
100=R72,1,Cx32000BC0,x3FFF004B
101=R72,2,Cx42000BC0,xC001004B
102=P64,2,CL5:R,0
103=U64,2,CL5:K,0
104=P64,3,CL6:R,0
105=U64,3,CL6:K,0
106=P64,5,CL5:R,0
107=U64,5,CL5:K,0
108=P64,4,CL3:R,0
109=U64,4,CL3:K,0
110=R64,7,Cx32000BC0,x3FFF004B
111=P64,8,C1126,0
112=CR(-64,8)72,1,Cx32000BC0,x3FFF004B
113=CR(-64,8)64,0,Cx42000BC0,xC001004B
 
Switch 72,0 is highlighted in red and shows an action for press and release.  In Buttons + Switches if I press my APU switch it shows up as Joy 72 button 7 and the press action is APU START but is still showing as being conditional and is to be edited in the INI file.  Please let me know where the entry for 72,7 is in my INI file so I can delete it and start over.
Thanks for your help.
Alan
Link to comment
Share on other sites

In Buttons + Switches if I press my APU switch it shows up as Joy 72 button 7 and the press action is APU START but is still showing as being conditional and is to be edited in the INI file.  Please let me know where the entry for 72,7 is in my INI file so I can delete it and start over.

 

If what you are showing is the only [buttons ...] section,d and it is the active FSUIPC INI file, and you have either pressed the Reload button since changing the INI file or closed and reloaded FS, then there is no record of button 72,7 left and no way possible for FSUIPC to attribute any action to it! It cannot invent these things by itself, so it sounds to me as if you've changed the file and not told FSUIPC to re-read it by pressing the Reload button.

 

Pete

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.