• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

New Switch allocations

Messages
6
Country
unitedkingdom
I am hoping someone can answer this for me as I am new to this section of FS Developer.
I would like to add some new switch allocations to FSX, namely a 'Master Arm' switch, an 'Air/ground' switch and a 6 position range switch amongst others. As FSX is not a military sim these switches do not exist at present.
On the package I am using they have been programed using an .xmll file.

I can add my physical switch panel switches to work by adding them to the .xml, but they are not able to be fully programed using FSUIPC to detect the off position (toggle only).
I am assumiing that this is because in FSUIPC you have to allocate the switch from a drop down list of available switches/operations, and these do not exist.

How can I add new switches to this master list, and can I add switch/operations to this list?

Any help would be appreciated.

pete
 
I see this post is in the simconnect area but I hope the general info
below will be of use.

If you are using L:Variables for the states of those switches all
you need to do to get those 'added' to the FSUIPC4 Buttons & Switches
drop-down assignment menu is to declare them in a MCRO file.
They will then be present in the list and can be assigned to
any of your controller buttons/switches.

In your XML code you should be able to read the current state
of your 'custom' switches. In the code I would use separate click-spots
for the ON and OFF operations rather than using the 'negate and save
the current state' type of 'toggle' code.

The documentation that comes with FSUIPC4 is quite expansive
and digging in to those files will provide you all the answers, and more
with regards to the use of that utility.

FSUIPC4 also has 'user defined' offsets available that you can
use as well. They begin at offset 0x66C0. Again, the documentation
is the place to go for all this.

Paul
 
Last edited:
Paul,

Thanks for the info, it's all a bit over my head at the moment as this is all new to me (I am a model maker, and this is something I have tried to make the cockpit experience a bit more realistic).
I will have a read through the FSUIPC manual again and re post if I can not figure it out.

This is a sample of the .xml file that I have added to - thats the limit of my knowledge at this point in time, adding the new joystick button assignment.

<ControlsInfo>
<!-- contols section -->
<Action name="fire" control="joystick:1:button:1" />
<!-- fire button -->
<Action name="fire" control="Space" />
<!-- fire button -->
<Action name="masterSw" control="Ctrl+6" />
<Action name="masterSw" control="joystick:2:button:11" />

Regards

Pete
 
Back
Top