Jump to content
The simFlight Network Forums

Recommended Posts

Posted

One of my LINDA users has installed FSUIPC 6.0.7 with P3Dv4.5 using the c:/users/{name}/prepar3d v4 add-ons/FSUIPC6 option. He does not have P3Dv5 installed.

LINDA reads offsets 0x3E00 to read the path to the Flt Sim and 0x3124 to read the Flt Sim version number (eg 45). On his system the former lists the add-on path to FSUIPC6 and the latter is blank. On my system running P3Dv5 the Flt Sim path and version are read correctly from the offsets. With P3Dv4.5 the results are intermittent sometimes the offsets are populated correctly and are blank at other times. 

Can you check this from your end?

Posted
21 minutes ago, Scotfleiger said:

With P3Dv4 0x3C00 also appears to point to the current AIR FILE

0x3C00 does contain the AIR file - from the documentation:

Quote
Full pathname of the current AIR file (in UNC form when
applicable *). This is zero padded to fill the 256 bytes available.
When this changes the 16-bit counter at 32FC is incremented, so
interested programs don’t have to keep on reading the whole 256
bytes to check.

Note: If you are accessing this from a Gauge, it has been reported that it
will not contain the correct aircraft path until FSX loads the gauges
completely and begins the update sequence
PANEL_SERVICE_PRE_UPDATE ...
PANEL_SERVICE_POST_UPDATE
*
UNC paths are only used if WideFS is in use

Flt sim path is in offset 0x3E00:

Quote
Path of the Flight Simulator installation, down to and including
the FS main folder and a following \ character. If the PC is on a
Network and WideFS is in use, then if possible the full UNC
(universal naming convention) path is given. Examples are:
D:\FS2000\ (non-Network)

I cannot see how offset 0x3124 can be empty - it is set directly after the P3D version is reported. Please try the following dll - this just contains an extra logging statement when offset 0x3124 is set: FSUIPC6.dll

John

 

Posted

Hi John

Following extensive testing I have established that the contents of 0x3E00 (Flt Sim Path) and 0x3124 (Flt Sim Version) depend on when it is read. LINDA was reading these values on start up whether or not P3D was running. If read with a running P3D the values are correct.

Thank you again for your help.

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.