Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Is it possible to set-up a modifier button via FSUIPC on a HOTAS so to use other buttons/switches for more than one command as is possible in DCS?  If so how plz?

 

Thank you!

 

Bru

Posted

Is it possible to set-up a modifier button via FSUIPC on a HOTAS so to use other buttons/switches for more than one command as is possible in DCS?  If so how plz?

 

If you mean a button which when held pressed changes the functions of others, yes -- that's "compound" or "conditional" buttons. Up to 16 conditional buttons can be associated with any button.

 

For a button to select one of two modes for a set of other buttons, you can also do this with conditionals, but in this case using a "button flag" wfich is toggled on and off alternately by the mode button each time it is pressed.

 

For a button to go through a series of modes the way would be to assign that button to an offset cyclic increment control, using one of the user offsets in the range 66C0 to 66FF, and use offset conditions on the actions of the other buttons.

 

All of these things require editing in the FSUIPC INI file -- they are too involved to be suitable for the FSUIPC options tabs. The formats are explained in the FSUIPC Advanced User's guide with examples.

 

Regards

Pete

Posted (edited)

Thanks so much Pete! However in looking at p.p. 21-23 in the advanced users man. I'm overwhelmed as it all seems way too complicated for my simple brain.

 

DCS spoiled me.

 

I just want to use the slap switch on my Warthog stick such that when it's held down I can map a second command to whatever buttons on the throttle. My apologies as this is the only way I know how to articulate what I want to do.  I certainly admire tech savvy people who can read the manual and understand it.

 

Best regards,

 

Bru

Edited by Brubaker_77
Posted

Thanks so much Pete! However in looking at p.p. 21-23 in the advanced users man. I'm overwhelmed as it all seems way too complicated for my simple brain.

 

DCS spoiled me.

 

I just want to use the slap switch on my Warthog stick such that when it's held down I can map a second command to whatever buttons on the throttle. My apologies as this is the only way I know how to articulate what I want to do.  I certainly admire tech savvy people who can read the manual and understand it.

 

Best regards,

 

Bru

 

 

We can do it here. Assign the buttons to the first set of functions, then take a copy of the [buttons] section of the INI. Then reassign them to the second set of functions, and take a copy of that section again. Make a note of the button number you want to hold down to switch to the second set, then post all that information in a message here. Then I'll simply fill in the bits you need.

 

Okay?

 

Pete

Posted
First set:
 
[buttons]
ButtonRepeat=20,10
1=R2,32,C65607,0
2=R2,36,C65615,0
3=R2,34,C66277,0
4=R2,38,C66276,0
7=P2,14,K67,8
8=P2,16,K70,8
9=P2,15,K74,8
10=P2,17,K84,8
11=P2,18,K85,10
12=P2,8,K49,11
13=P2,6,K52,11
14=P2,7,K51,11
15=P2,9,K50,11
16=P2,10,K38,10
17=P2,12,K40,10
18=P2,11,K39,10
19=P2,13,K37,10
20=P2,3,K78,8
25=P3,22,C65603,0
26=P3,21,C65595,0
27=P3,25,K90,8
28=H3,24,K65,9
29=U3,24,K65,9
30=U3,21,C65758,0
31=U3,22,C65759,0
32=P3,12,K77,9
33=U3,12,K77,9
34=P3,13,K73,8
35=U3,13,K73,8
36=P3,0,K82,10
39=P3,15,K65,10
41=P3,7,K191,8
42=R3,6,C1010,0
43=R3,3,K56,11
44=R3,5,K57,11
45=P2,2,K78,9
46=P3,14,C65570,0
48=P3,20,K74,11
49=P2,4,K77,8
50=R3,36,K40,8
51=R3,32,K38,8
52=R3,34,K39,8
53=R3,38,K37,8
54=R0,38,C66276,0
55=R0,34,C66277,0
56=R0,32,C65607,0
57=R0,36,C65615,0
59=P0,2,K78,8
60=P0,4,K77,8
 
Second set:
 
[buttons]
ButtonRepeat=20,10
1=R2,32,C65607,0
2=R2,36,C65615,0
3=R2,34,C66277,0
4=R2,38,C66276,0
7=P2,14,K67,8
8=P2,16,K70,8
9=P2,15,K74,8
10=P2,17,K84,8
11=P2,18,K85,10
12=P2,8,K49,11
13=P2,6,K52,11
14=P2,7,K51,11
15=P2,9,K50,11
16=P2,10,K38,10
17=P2,12,K40,10
18=P2,11,K39,10
19=P2,13,K37,10
20=P2,3,K78,8
25=P3,22,C65603,0
26=P3,21,C65595,0
28=H3,24,K65,9
29=U3,24,K65,9
30=U3,21,C65758,0
31=U3,22,C65759,0
32=P3,12,K77,9
33=U3,12,K77,9
34=P3,13,K73,8
35=U3,13,K73,8
36=P3,0,K90,8
39=P3,15,K65,10
41=P3,7,K191,8
42=R3,6,C1010,0
43=R3,3,K56,11
44=R3,5,K57,11
45=P2,2,K78,9
46=P3,14,C65570,0
48=P3,20,K74,11
49=P2,4,K77,8
50=R3,36,K40,8
51=R3,32,K38,8
52=R3,34,K39,8
53=R3,38,K37,8
54=R0,38,C66276,0
55=R0,34,C66277,0
56=R0,32,C65607,0
57=R0,36,C65615,0
59=P0,2,K78,8
60=P0,4,K77,8

 

Buttons to hold down for switch or modifier: Joy#3  & Button#1 for first set; Joy#0 & Button#3 for second set.

 

I hope this is what you were asking for. Thx again Pete! Bru

Posted
First set:
...

Second set:

...

 

But both sets are virtually identical! I can see only one assignment which is different -- 36= for button P3,0. Is that the ONLY one you want switching? If so it seems a little daft using one button to switch one other. You might as well assign both to the respective functions and be done.

 

Buttons to hold down for switch or modifier: Joy#3  & Button#1 for first set; Joy#0 & Button#3 for second set.

 

Er ... you only want ONE button to hold down to select the alternate, surely? When unpressed it's one set, when pressed it's the other. What are you going to do with TWO buttons to select with? Makes no sense, and is not what you said you wanted at all.

 

Regards

Pete

Posted

Let me offer an approach to your modifier quaetion,

 

I use a 'modifier' on all my aircraft to assign multiple controls
to the switches on my Saitel Pro dual throttle quads. In some cases
I have up to 9 assignments per switch. Think of them as 'modes'.

It is simple and allows easy modification and addition of more 'modes'
by editing the ini file and using 'cut & paste' actions.

The technique uses one of the user-defined offsets to hold the 'mode'
number. One switch is assigned to increment the mode number. Each
press of the switch increments that number until it reaches the
maximum mode number. It then goes back to mode '0'. You COULD
have as many as 256 'modes' using this approach.  :)

The modifier is the "=B66C0=0" part of the assignment statement.
The mode switch is defined once per aircraft and below is my
top-right-most switch on my quadrants, A,4. I use the assign letters
to the joysticks name option so mine are ID'ed as "A", "B", "C" etc.
 


[JoyNames]
AutoAssignLetters=Yes

Here are the aissignmenys for the same switches on my
2 left-most switches on my quadrants, D,14, 15,16 and 17.

[Buttons.Curtiss P-40]
1!==//------- Control Set 1 -----------------
0=PA,4,Cx510066C0,x00030001 ;//CONTROL SET INC Max = 3 Step = 1
1=B66C0=0 PD,14,C66400,0 ;//Magneto - OFF
2=B66C0=0 PD,15,C66400,2 ;//Magneto - Left
3=B66C0=0 PD,16,C66400,3 ;//Magneto - Both
4=B66C0=0 PD,17,C66400,1 ;//Magneto - Right

2!==//------- Control Set 2 -----------------
60=B66C0=1 PD,14,C66506,225 ;//Toggle GPS
61=B66C0=1 PD,15,C66506,440 ;//Toggle ANR-75 radar
62=B66C0=1 PD,16,C66506,14992 ;//Toggle AP Chart
63=B66C0=1 PD,17,C65910,0 ;//MAP - TOGGLE (Panel 5)

3!==//--------- Control Set 3 -----------------
40=B66C0=2 PD,14,C66389,0 ;//Toggle Canopy
41=B66C0=2 PD,15,CM9:1,0 ;//Toggle Gunsight
42=B66C0=2 PD,16,CM9:8,0 ;//Klaxton Test Toggle
43=B66C0=2 PD,17,CM9:10,0 ;//Prestone Test Toggle

4!==//------- Control Set 4 -----------------
60=B66C0=3 PD,14,C66506,225 ;//Toggle GPS
61=B66C0=3 PD,15,C66506,440 ;//Toggle ANR-75 radar
62=B66C0=3 PD,16,C66506,14992 ;//Toggle AP Chart
63=B66C0=3 PD,17,C65910,0 ;//MAP - TOGGLE (Panel 5)

In your current case, simply define one button/switch to change 
the 'mode' and then just insert "=B66C0=0" in the top assignments
and "=B66C0=1" in the bottom assignments. 

0=P3,1,Cx510066C0,x00030001 ;//CONTROL SET INC Max = 1 Step = 1 Joy 3, button 1
1!==//------- first 4 of first set -------
1=B66C0=0 R2,32,C65607,0
2=B66C0=0 R2,36,C65615,0
3=B66C0=0 R2,34,C66277,0
4=B66C0=0 R2,38,C66276,0

2!==//--- first 4 of second set ----------
71=B66C0=1 R2,32,C65607,0   // NOTE: I see you have duplicated these commands in your  
72=B66C0=1 R2,36,C65615,0   // second set. There is no need to do that.
73=B66C0=1 R2,34,C66277,0   //only add the 'modifier' to those switch assignments that are 
74=B66C0=1=R2,38,C66276,0   //unique between 'modes'. The others you leave 'as 'is' buy only once.

I ususally add my 'global' assignmentsd, those that remain the same in all modes,
at the end of the 'Buttons.<plane name> section. Looking at your list again, I see vary few 
'different' assignments so your implementation should be quite simple.

This method lests you easily add  more 'modes' by simply changing the

0=P3,1,Cx510066C0,x00010001 ;//CONTROL SET INC Max = 1 Step = 1 Joy 3, button 1

entry to:

0=P3,1,Cx510066C0,x00020001 ;//CONTROL SET INC Max = 2Step = 1 Joy 3, button 1

and then add the new lines, taking care to adjust the line numbers.

3!==//--- first 4 of third set ----------
121=B66C0=2 R2,32,<new command>
122=B66C0=2 R2,36,<new command>
123=B66C0=2 R2,34<new command>
124=B66C0=2=R2,38,<new command>

Good luck,

 Paul
 

Posted

Wow, didn't expect to be berated, at least that's how I feel Pete.  I wanted to start with one or two changes & see how it was done & what you changed so I could take it from there & do it myself. One modifier button on my stick to hold down to use a button on my throttle for another function or command & vice versa.  What a hassle. Please enjoy my $40.

 

Thanks Gypsy - I'll take a hard look at what you've shared - Bru

Posted

Wow, didn't expect to be berated, at least that's how I feel Pete.

Thanks Gypsy - I'll take a hard look at what you've shared - Bru

 

Not sure why. I offered to do the condition for you.  So I examined the data you posted ready to do it. I compared line by line to see what was going on and found only one line changed, with two buttons to change it with. I merely pointed out that it was a waste of time doing it for this. What is so upsetting about that? I offer to do the work for you, and you come over so ungrateful?

 

I wanted to start with one or two changes & see how it was done & what you changed

 

So why not show me the lines needing the change? I saw no way of doing what you wanted with those two sets -- remember, you wanted to switch between two sets. All you needed to show were the ones needing changing.

 

One modifier button on my stick to hold down to use a button on my throttle for another function or command & vice versa.

 

So I don't understand why you gave me two modifier buttons. How was I supposed to apply two modifier buttons to one changed button action? Don't you see this makes no sense?

 

What a hassle. Please enjoy my $40.

 

How rude and nasty you are!!!! I go out of my way to offer to do it for you, and you talk to me like that? I spent quite a while poring trough the two lists line by line to see what was going on, which is how I found only one change. I've got better things to do than waste my time with people like you, and I would certainly earn more than $40 in the total time I wasted on you in a regular job! :sad:

 

Thanks Gypsy - I'll take a hard look at what you've shared - Bru

 

His was one of the two alternative ways I mentioned in the first place, when you then came back and said it was simpler than that, just a button to switch betweeen two sets of actions.  I offered to explain further or do it for you. You took me up on the latter then get stupidly upset when I merely point out the data you supplied wasn't related to the question you asked and explained exactly why.

 

Good bye. I'm out of here now.

 

Pete

Posted

Brubaker:  "Please enjoy my $40"

 

Bad enough that are you ungrateful for the help you received. ...You will soon realize that your $40 was well spent on a great bit of software.

Apologies in order.

Neal H

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.