Standard.xml contains multiple entries for same Controller (Throttle/Stick)

Any issues, problems or troubleshooting topics related to the additional features present in the Prepar3D Professional Plus client application.
Post Reply
zamirk
Posts: 132
Joined: Mon Jul 21, 2014 8:39 am

Standard.xml contains multiple entries for same Controller (Throttle/Stick)

Post by zamirk »

Hi,

I'm using Prepar3d Professional Plus 4.5, I have found an issue that prepar3d creates multiple entries of controls in standard.xml with different GUID. When we connect hardware to the computer, and open prepar3D its creates controls settings in the standard.xml, after that when we change/delete any assignment, its creates another setting in standard.xml with a different GUID.
In our scenario, we're facing this issue very frequently, because we have multiple stations with Prepar3d installed on them, that are used for the training purposes of the students and whenever we change/disconnect/reconnect any controller, it writes another setting in the standard.xml file which results default mapping of controls. Our site is around 400 km away from our office and we do not have any remote connectivity. When we have to replace our controller, we have to remap all the assignments which takes time.

We are looking for a standard controls settings in standard.xml, so whenever we change or delete it doesn't creates another settings for the same controller.

Regards,
Zamirk
mpni
Posts: 1092
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: Standard.xml contains multiple entries for same Controller (Throttle/Stick)

Post by mpni »

Hi Zamirk
Hope LM will answer to you.
You sayed:
"... When we have to replace our controller, we have to remap all the assignments which takes time..."
If no answer by LM you can try this:
When all assignments are OK for one controller, make a backup of your standard.xml and rename it standard.controller1.xml.
Do the same with controller number 2, number 3...
When you replace a controller, make a copy of the corresponding backup standard.controllerX.xml and rename it standard.xml.
Regards
Michel
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: Standard.xml contains multiple entries for same Controller (Throttle/Stick)

Post by Clifton Crane »

Hi Zamirk,

You could try using the Direct Input control API, rather than the Raw Input API (default in v4.5). Direct Input is the new default API in version v5.x. This can be changed in Settings > Controls. Direct Input should provide a more consistent GUID's when moving controllers between different USB ports.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
zamirk
Posts: 132
Joined: Mon Jul 21, 2014 8:39 am

Re: Standard.xml contains multiple entries for same Controller (Throttle/Stick)

Post by zamirk »

Hi Clifton Crane,
Direct Input is working fine and providing consistent GUID's, but there's another issue, Standard.xml contains a lot of entries in the following xml tags listed below, we don't require these tags, because we have to restrict our students.
KEYBOARD_MAIN.Native
KEYBOARD_MAIN.Army Infantry
KEYBOARD_MAIN.Civilian Male White Shirt Blue Jeans
KEYBOARD_SLEW
KEYBOARD_OBSERVE
KEYBOARD_SIMDIRECTOR
KEYBOARD_CINEMATOGRAPHER

Standard.xml have many entries of controls in the above mentioned tags, and if we import a standard.xml file with no entry in the following tags to overwrite the file, Prepar3D doesn't overwrite the following tags. but if we explicitly remove all the <Entry> tags of controls from the following above mentioned tags, In this case when we close/restart Prepar3D it again save the entries in these tags.

For example, if we import file with no entries of controls.
<SimControls.Map>
<Name>KEYBOARD_MAIN.Native</Name>
</SimControls.Map>
but, we get
<SimControls.Map>
<Name>KEYBOARD_MAIN.Native</Name>
<Entry>
<Key>F</Key><Down>DME</Down>
</Entry>
.
.
.
</SimControls.Map>

Regards,
Zamirk
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: Standard.xml contains multiple entries for same Controller (Throttle/Stick)

Post by Clifton Crane »

Hi Zamirk,

What happens if you add a single <Entry> to the control map you are trying to import? We may be loading the default XML if no <Entry> elements are found.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Post Reply