IskenderWang / 787-family

787 family for FlightGear, after merging legoboyvdlp's abandoned -9 with the FGAddon -8
GNU General Public License v2.0
26 stars 7 forks source link

Airline FMC Database #51

Open SP-NTX opened 3 years ago

SP-NTX commented 3 years ago

On the flightgear wiki page https://wiki.flightgear.org/Boeing_787-8_Dreamliner:_Flightplan_and_Procedures_Tutorial I read about the flight plan database of virtual airlines. I know that I need to make such flight plans, that is xml files for my airline in /FMC-DB/FMC-Flights.xml directory. Neither on the wiki page, nor in the readme or anywhere in the aircraft files I could find how such a file should look like. I did not find such a file either. Maybe I searched wrongly. Drealiner on FGwiki screenshots looks like old version, so this feature may not exist, but it would be very useful not only for virtual airlines, but also for regular users. It definitely improves the realism.

IskenderWang commented 3 years ago

I would assume it's just in the standard format for FG? You may know that any flight plan for FG (.fgfp file) is basically just an xml file, so it's probably evaluating it in the exact same way, that said I'd need to check the code myself to know for certain

SP-NTX commented 3 years ago

Inferring from what you can read on the wiki, it is about something completely different

MarcinListkowski commented 3 years ago

Hi @SP-NTX, a few pointers that might be of use, from a passer-by. 1) The code to read FMC-Flights.xml is here in the repo: https://github.com/IskenderWang/787-family/blob/32e5384e8135919571064262713c8c7d8f48c5e7/Nasal/fmc.nas#L334-L340 It doesn't mean it works :smile: but there is a chance that this feature exists, and by reading the code you can infer something about this XML structure. 2) Running git/svn blame a few times shows how this XML file looked like 9 years ago:grin: : https://github.com/omega95-aircraft/fg-boeing-787-8/blob/aa3bdefc5b69a1c2a88206d18e0cc81a557005a9/FMC-DB/FMC_Flights.xml

Hope this helps, it would be great to hear if it worked for you.