Wizard of Oz Posted October 20, 2009 Report Share Posted October 20, 2009 Greetings, I’m using PD’s log Lvars.lau routine to access all the buttons and switches controls in a four engine aircraft from the log Lvars.log file. Taking one of these sets as an example I can get one of the switches to work OK but cannot get all four to act in the same way by pressing the same button on my CH Throttle Quadrant using FSUIPC4. The controls are four designated as “L:CarbAir1Switch” with the other three replacing the 1 in that name with 2 3 and 4. I have a Macro file set up [MACROS] 1=CarbAir1Switch=SET 2=CarbAir2Switch=SET etc Going through the FSIPC4 procedure I set the Joy# 0 and Button# 1 and the control as XXXX:L:CarbAir1Switch with parameter 0 where XXXX is the aircraft name. This button when pressed moves the switch in cockpit OK in the right direction. I now want to get all of the three remaining switches to move in the same way as switch 1. I have looked at the manual and fiddled with the FSUIPC4.INI file but have been unsuccessful in achieving this so far. I would appreciate any assistance to go from this point onward. Thanks. Link to comment Share on other sites More sharing options...
guenseli Posted October 20, 2009 Report Share Posted October 20, 2009 Hello, maybe you talk about the B377??? I have the same procedure for the B377, Take it as example for your problem. in my Macro I have the code: 10=L:CarbHeat1Switch=TOG 11=L:CarbHeat2Switch=TOG 12=L:CarbHeat3Switch=TOG 13=L:CarbHeat4Switch=TOG Now, go to the FSUIPC.ini and edit under the [buttons.B377] (or however your aircraft name is): 16=PD,1,CM8:10,0 17=PD,1,CM8:11,0 18=PD,1,CM8:12,0 19=PD,1,CM8:13,0 You can see, that Joystick D, button 1 is assigned 4 times to Macro 8 (the B377 macro), and there the function 10 to 13... An other trick is that you have to change the SET in the LUA Var to TOG (toggle), so you can the carbHeat use with one switch. Link to comment Share on other sites More sharing options...
Wizard of Oz Posted October 20, 2009 Author Report Share Posted October 20, 2009 Yes that was pretty much what I was using guensili. However, what I was doing wrong was changing the FSUIPC4.INI file and then doing a reload in FSX of the Flight. This is apparently not enough and one has to either reload FSX altogether or change to another aircraft and then back again to the aircraft being worked on. Otherwise the new entries into the INI file are not loaded. While the TOGGLE command works with a one way switch I prefer to use the SET command because when I press down or up on my CH Throttle Quadrant two way button I know without looking at the switches what the action is. With a one way switch this is not possible and its easy to forget which way it is set at any particular time. For the benefit of those who are thinking about doing the setup, here is a description of what I did for the 4 Carb Air switches in the B377. The macro file 1B377.MCRO that I created has in it: [MACROS] 1=L:CarbAir1Switch=SET 2=L:CarbAir2Switch=SET 3=L:CarbAir3Switch=SET 4=L:CarbAir4Switch=SET In my FSUIPC.INI file there is an entry that says : [MacroFiles] 1=1B377 2=1P47 (Note that the 1 in the 1B377 is arbitrary and just puts it at the top of the list.) The listing above shows that my macro file is numero uno (No 1). Now I do the entry into FSUIPC4 with my B377 loaded up in FSX and click on the buttons tab then click on the Profile option and then push down my CH Throttle button No 1 and then select "1B377:L:CarbAirSwitch Set" in the control window. (Don't forget to "reload" your buttons if you change your macro file !) When I open my FSUIPC4.INI file it has the following entry (as well as lots of others we are not concerned with) The CM1, that is the 1 in this statement says its using macro No 1 as noted above for the B377. [buttons.B377] 0=P0,1,CM1:1,0 I now add to the list the following entries. The numbers 2,3,4 refer to the statement numbers in the macro file above. 1=P0,1,CM1:2,0 2=P0,1,CM1:3,0 3=P0,1,CM1:4,0 I can now go back and do a similar procedure for an up press on button No 1 on my CH Throttle Then go back to the INI file and add the remaining 5,6 and 7 entries below. Everything should be in numeric sequence. 4=P0,0,CM1:1,1 5=P0,0,CM1:2,1 6=P0,0,CM1:3,1 7=P0,0,CM1:4,1 So my final entry in the INI file looks like this:(the 0 and 1 at the end of each statement is the parameter to make the switches go down and up) [buttons.B377] 0=P0,1,CM1:1,0 1=P0,1,CM1:2,0 2=P0,1,CM1:3,0 3=P0,1,CM1:4,0 4=P0,0,CM1:1,1 5=P0,0,CM1:2,1 6=P0,0,CM1:3,1 7=P0,0,CM1:4,1 Cheers WOZ Link to comment Share on other sites More sharing options...
Pete Dowson Posted October 20, 2009 Report Share Posted October 20, 2009 However, what I was doing wrong was changing the FSUIPC4.INI file and then doing a reload in FSX of the Flight. This is apparently not enough and one has to either reload FSX altogether or change to another aircraft and then back again to the aircraft being worked on. Otherwise the new entries into the INI file are not loaded. Whenever you make changes to any part of the INI file (other than the [General] section, which does require a reload of FS), all you need to do is use the appropriate "Reload" button on the options screen -- there's one for each of Buttons, Keys, Calibrations and Axes. They operate on their sections only. Regards Pete Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now