Jump to content
The simFlight Network Forums

Detecting X-Plane/XPUIPC


Timothee1

Recommended Posts

Hi,

checking the FSUIPC version number would give you a way to differ. 

Quote

3304, 4, FSUIPC version number:
The HIWORD (i.e. bytes 3306-7) gives the main version as
BCD x 1000: e.g. 0x1998 for 1.998
The LOWORD (bytes 3304-5) gives the Interim build letter:
0=none, 1-26=a-z: e.g. 0x0005 = 'e'

Also the specific version number or used FS can do, maybe in combination to be more precise on FS side (FSX or P3D . . .).

Quote

3124, 1, The specific version of FSX or P3D being used. The values are: Intl No
FSX: 1 to 4 for the RTM, SP1, SP2 and Acc versions,
respectively
FSX-SE: 101 to 109 (etc) for builds 62607 to 62615 (etc)
P3Dv1: 10 to 14 for versions 1.0 to 1.4 (but versions before 1.4
not supported).
P3Dv2: 20 to 25 for versions 2.0 to 2.5
P3Dv3: 30 to 32 (etc) for versions 3.0 to 3.2 (etc)
P3Dv4: 40 to 45 (etc) for versions 4.0 to 4.5 (etc)

Thomas

Link to comment
Share on other sites

Thank you for the replies. I'm aware that XPUIPC is from another developer. However I was just asking for ideas in general.

It looks like I havent properly studied the XPUIPC documention. XPUIPC offers additonal offsets which may help me to solve this problem, for example:
6F03 - XPUIPC Version string with 0 terminator

Regards
Timothee

Link to comment
Share on other sites

  • 4 months later...

I find the *.air file via Paul Henty's dll. The dll brings *.acf file when used with XPUIPC. You can determine if it's Xplane or not by the file extension (air or acf). If it's acf then Sim is XPlane. If it's air then do some more code to determine if it''s FS9, FSX or p3d** by the FSUIPC version.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.