Jump to content
The simFlight Network Forums

Recommended Posts

Posted

One of my add-ons deletes the P3dv5 GPS-flightplan after touchdown. This is a problem for other add-ons relying on the GPS-flightplan to work properly and that are active until gate arrival (for example a Traffic Board displaying user flight information). All these add-ons immediately fail after touchdown. I had the same problem in FSX times and I remember that I could solve by using the FSUIPC event.intercept function to inhibit the deletion of the flightplan, but unfortunately I don't remember how I did this. Perhaps anybody can point me in the right direction. For example: Which is the right flightplan-event variable to intercept? (I don't find anything suitable in the event list) And how exactly do I do this? Is simply intercepting the event enough to prevent it from happening or do I need to inject the flightplan again after the interception?

Posted

event.intercept intercepts offset writes, not actual events. I don't see how this can prevent the flight plan from being deleted (if that is the case...), intercepting this can only prevent the location of the flight plan held in the offset from being overwritten. The current flight plan path is held in offset 0x0130. You can try to intercept that and prevent that being cleared, but you would still want to write the actual flight plan to that offset when it is received.

You could possibly copy the floght plan to another location when received, of you can set the location for the flight plan in the other add-ons that use this.
Otherwise, I would try to stop the add-on deleting the flight plan on touchdown, if possible. Maybe contact the support for this add-on to see if that can be done.

John

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.