• 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.

FSX XML Code for identifying Sim version?

  • Thread starter Thread starter Deleted member 1281
  • Start date Start date
D

Deleted member 1281

Guest
Hi there everybody!

I am creating a/c models based on P3D 1.4. Is there a way for an xml gauge to identify which sim (FSX, P3D) the user is running?
 
Did 1.4 add any new A:Vars? Sorry, I don't recall off the top of my head.
If the answer is yes, you could create a small gauge that checks one or more of them for reasonable values. If that check succeeds, you set an L:Var to a non-zero value. If the gauge doesn't load because of the non-existant A:Var, then your L:Var will still have a zero value.
 
Thanks Doug. At a cursory glance I cannot find any A:vars that could be used for this purpose.

However, I know it has been noted here that in P3D the hydraulic switch cannot be turned off, so I suppose the following might work (not tested) ... until P3D correct their mistake at any rate. I am testing for switch #3. Save the state of the switch in s0. Toggle the switch. Compare current state to previous state. If identical then set L:isP3D to TRUE. Toggle once more to reset to previous state for non-P3D users.

Code:
(A:Hydraulic switch:3, bool) s0 3 (>K:HYDRAULIC_SWITCH_TOGGLE) (A:Hydraulic switch:3, bool) l0 ==
if{ 1 (>L:isP3D, bool) }
3 (>K:HYDRAULIC_SWITCH_TOGGLE)

I am sure this could be phrased more efficiently though...

Edit: yeah, well, doesn't work .. comes up as TRUE in FSX. BTTDB ... Back to the drawing board...
 
Last edited by a moderator:
If you're using my sound gauge anyway, it will give you the version information for FS. Check the docs, near the end.
If you're not, I can probably transplant that block of code into a stand alone gauge without too much trouble.
 
Indeed we have the sound gauge .. just completed recording 340 wavs for it.

In my setup (FSX SP2) I am getting 10.0.61742 for FSVersionMajor, FSVersionMinor, FSVersionBuild. Which values would P3D and for that matter FSX-SE produce?
 
Well, these are the ones I have installed:
FSX Deluxe: 10 0 61637
FS9: 9 1 40901
FSX-SE 10 0 62615
P3D 2.5: 2 5 12946
I would be surprised if my P3D 2.5 and SE installs are the current builds, and I haven't got around to buying P3D v3 yet. You should probably check what your beta testers report...
 
Great! I'll ask our testers to report their versions, and will list them here.

For those of you using Doug's sound gauge, here is a gauge <element> that prints out the version info. Make sure to modify the XY values as needed.


Code:
<Element>
<Position X="780" Y="4" />
<FormattedText X="154" Y="150" Font="Trebuchet MS" FontSize="11" FontWeight="600" FontFaceLocalize="Yes" LineSpacing="12.6" Adjust="Left" Color="#A8A8A8" Bright="Yes" Tabs="0L,132R,154L">
<String>
V%((L:FSVersionMajor))%!d!.%((L:FSVersionMinor))%!d!.%((L:FSVersionBuild))%!d%
</String>
</FormattedText>
</Element>
 
Update on version numbers:
Code:
9.1.40901   FS9
10.0.61472  FSX-SP2
2.5.12946   P3D
3.3.5.      P3D
10.0.61637  FSX-A, Deluxe, Gold
10.0.62615  FSX-SE
 
Last edited by a moderator:
Back
Top