Jump to content
The simFlight Network Forums

Problem with offset 0658 and Prepar3D


Recommended Posts

While offset 0658 4 bytes (icao) works ok in fsx, in prepar3d returns empty.

The facility relies on a SimConnect function which doesn't work very well, so it is defaulted off. Add (or change) "GetNearestAirports=Yes" to the [General] section of the FSUIPC4.INI file. However, it rarely provides the actual airport you are sitting on, and sometimes not others nearby. It is SmConnect which is buggy in this area.

After the facility was implemented I did get some hacked information from Daniel van Os which led me to a table inside FSX which contains the correct information, so I use this for FSX SP2/Acc. But I didn't find this in P3D -- and in fact did not look very hard, because P3D is still being developed and they should make the published facilities work. I don't really want the job of detailed hacking into each update of their code in order to correct their bugs.

If you check it after setting that parameter, and it doesn't give reliable information, please do report it to P3D support so that they might one day fix it. For reference the SimConnect facility concerned is:

HRESULT SimConnect_RequestFacilitesList(

HANDLE hSimConnect,

SIMCONNECT_FACILITY_LIST_TYPE type,

SIMCONNECT_DATA_REQUEST_ID RequestID

);

with type = SIMCONNECT_FACILITY_LIST_TYPE_AIRPORT

Currently I can't even test it on P3D as my license has expired again. I'm really waiting for Versio 2 when I might actually buy it if it looks as good as folks are hoping.

Regards

Pete

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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