jspringe Posted July 31, 2004 Report Posted July 31, 2004 I am trying to figure out how to get the path/filename of the currently loaded flightplan. I see offsets for the current AIR (3C00) and FLT (3F04) files, but not the PLN file. Anyone know how to determine the path/name of the current PLN file? Thanks, Jason
jd Posted July 31, 2004 Report Posted July 31, 2004 since you can get the .flt file name, you can read the .flt file, and look for [GPS_Engine] Filename=F:\jdekker\Documents\Flight Simulator Files\ktpa-kmlb then you can open that file up, and read the flight plan jd
jspringe Posted July 31, 2004 Author Report Posted July 31, 2004 JD, Thanks so much! I didn't realize that the flight file contained the path to the selected pln file. That helps me tremendously! Thanks again, Jason
jspringe Posted July 31, 2004 Author Report Posted July 31, 2004 Well, except that it didn't quite work. The problem is that the FLT file only contains a reference to the PLN file if it was created before starting the flight. If you create a flight without a plan and then use the FlightPlanner menu option this does not "re-save" the FLT file with a refernece to the PLN file. So, I still have no way to find out the current flight plan information. Any help? Thanks, Jason
jd Posted July 31, 2004 Report Posted July 31, 2004 all my flt's have pln's. i just assumed others would do a .pln before saving a .flt jd
TweakFS Posted August 1, 2004 Report Posted August 1, 2004 If a PLN was already loaded and the FLT was saved then that PLN will be recorded in the FLT file. However, I think what Jason is saying is that he needs to detect the PLN in use, even if it was loaded after the launching/saving of a flight or while a flight is in progress. The PLN is loaded in the GPS right? Well have a look at this post, may be of interest to you: http://forums.simflight.com/viewtopic.php?t=26010
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now