• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Please see the most recent updates in the "Where did the .com name go?" thread. Posts number 16 and 17.

    Post 16 Update

    Post 17 Warning

FSUIPC4 Question

brettt777

Charter Member
I know that FSUIPC4 can be used to do key assignments that are aircraft specific. So when keys are being assigned, I am wondering if more than one function can be assigned to a single key or joystick button. Say I have a certain key that will fire a cannon in a plane that has specific sounds and visual effects but doesn't actualy fire "real" rounds. On that same plane I have the CS weapons mod active, which does fire "real" rounds from the cannon. Is there any way to have both functioning at the same time with one button so that I have the sound and visual effects of the one and be actualy firing real rounds with the other? Am I making sense at all? I don't feel like I am explaining this correctly.... :-/
 
I know that FSUIPC4 can be used to do key assignments that are aircraft specific. So when keys are being assigned, I am wondering if more than one function can be assigned to a single key or joystick button. Say I have a certain key that will fire a cannon in a plane that has specific sounds and visual effects but doesn't actualy fire "real" rounds. On that same plane I have the CS weapons mod active, which does fire "real" rounds from the cannon. Is there any way to have both functioning at the same time with one button so that I have the sound and visual effects of the one and be actualy firing real rounds with the other? Am I making sense at all? I don't feel like I am explaining this correctly.... :-/

You can have multiple assignments for the same switch or button but you will need to use the "Compound Button Conditions" feature described
in the documentation. (FSUIPC4 for Advanced Users.pdf) There is an Appendix "Do more with your joystick" that also describes another approach.

I use one of the "user defined variables" as a "mode indicator" that is incremented/decremented by 2 switches on my Saitek dual throttle
quadrants. The value in that variable defines the functions assigned to the other 10 switches. I have up to 80 functions assigned to just
10 switches using that feature of FSUIPC. You will need to implement these features through edits of the FSUIPC4.ini file.

Here are two "control maps" of my setup for the A2A B17G and B377.

http://i24.photobucket.com/albums/c24/Gypsy_Baron/TEMP/A2A_B-17G_MAP.jpg

http://i24.photobucket.com/albums/c24/Gypsy_Baron/TEMP/A2A_B-377_MAP-1.jpg


Here is a sample of snippets from my B17G FSUIPC4.ini coding.
This code specifies the user-defined location "66C0" as the "mode" indicator.

Code:
!10=//CONTROL SET INCREMENT/DECREMENT
161=PA,4,Cx510066C0,x00080001 ;INCREMENT 0X66C0 VALUE BY 1, MAX 8 THEN 0, CYLCLIC
162=PA,5,Cx610066C0,x00080001 ;DECREMENT 0X66C0 VALUE BY 1, MIN 0 THEN 8, CYLCLIC

This code illustrates how location "66CO" enables different assignments for a few of the
10 switches.

Code:
[Buttons.Boeing B-17G]
!1=//SET 1 GENERATORS, FUEL PUMPS, FUEL VALVES, CONTROLS LOCK
0=B66C0=0 PD,14,CM6:39,0 ;TOGGLE ENG1 FUEL VALVE
1=B66C0=0 PD,16,CM6:40,0 ;TOGGLE ENG2 FUEL VALVE
2=B66C0=0 PD,18,CM6:41,0 ;TOGGLE ENG3 FUEL VALVE
3=B66C0=0 PA,0,CM6:42,0 ;TOGGLE ENG4 FUEL VALVE

!2=//SET 2 STARTERS ENG 1 - 4 CLEAR START & MESH SET 4 PRIMER & PUMP - ALL MACROS
20=B66C0=1 PD,14,CM6:5,0 ;STARTER ENG 1 - SET PRIMER TO ENG 1 MACRO
21=B66C0=1 PD,16,CM6:5,2 ;STARTER ENG 2 - SET PRIMER TO ENG 2 MACRO
22=B66C0=1 PD,18,CM6:6,2 ;STARTER ENG 3 - SET PRIMER TO ENG 3 MACRO
23=B66C0=1 PA,0,CM6:6,0 ;STARTER ENG 4 - SET PRIMER TO ENG 4 MACRO

!3=//SET 3 MAGNETOS, INVERTERS
50=B66C0=2 RD,14,Cx11000892,x00030001 ;MAG1 INC
51=B66C0=2 RD,15,Cx21000892,x00000001 ;MAG1 DEC
52=B66C0=2 RD,16,Cx1100092A,x00030001 ;MAG2 INC
53=B66C0=2 RD,17,Cx2100092A,x00000001 ;MAG2 DEC

!4=//SET 4  GENERATORS, RADIO POWER, PITOT HEAT, MASTER IGN, APU, BATTERIES
70=B66C0=3 PD,14,CM6:13,0 ;TOGGLE GENERATOR 1 MACRO
71=B66C0=3 PD,15,CM6:64,1 ;RADIO POWER
72=B66C0=3 PD,16,CM6:14,0 ;TOGGLE GENERATOR 2
73=B66C0=3 PD,17,C65858,0 ;PITOT HEAT

!5=//SET 5 COWL FLAP SETTINGS,HYDR PUMP MODE,CARB FILTER
90=B66C0=4 RD,14,C66329,99 ;OPEN COWL FLAPS 1
91=B66C0=4 RD,15,C66330,1 ;CLOSE COWL FLAPS 1
92=B66C0=4 RD,16,C66331,99 ;OPEN COWL FLAPS 2
93=B66C0=4 RD,17,C66332,1 ;CLOSE COWL FLAPS 2


It may look complicated but once you have the technique down, it is pretty easy to create
additional assignments.

FSUIPC also has a good number of Lua fuctions that can also be used to "expand" the
functionality of your controllers and a new program called "LINDA" can also be used to
assign control functions but I'm not sure how it handles multiple aasignments for the
same switch in a given aircraft.

Paul
 
Wow, ummmm, yeah. That certainly answers my question. Thanks a bunch. I think some of that may be a bit more than I want to do but it sure gives me a starting point. I have the Logitech G940 and it's kind of a love hate relationship with the thing so we'll see what happens. I love it when it works but it frequently does it's own thing and causes BSOD and GSOD on a regular basis. I thought it was the Logitech software but last night it was doing it even without the Logitech software running. I am wondering if it's a Win 7 issue and plan on trying it on my old XP desktop PC. Anyway, I digress. Thanks again...
 
Back
Top