Hangar catalog

From FlightGear wiki
Revision as of 15:41, 31 July 2018 by Bugman (talk | contribs) (Added the stub template.)
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.

In the FlightGear launcher, all the aircraft from the official FGAddon FlightGear hangar are displayed. This is via the default catalog.xml file. This will in the future be used for the in-sim Aircraft Center. 3rd party hangars can also provide a catalog URL via their own catalog.xml file.

Catalog generation

The catalog.xml file can be generated using the update-catalog.py Python script. Alongside the script is the fgaddon-catalog/ directory, which is the configuration files used to generate the catalog for the FGAddon official hangar. To generate the FGAddon catalog, as an example, type:

./update-catalog.py fgaddon-catalog

The idea is to create a subdirectory tree for each catalog. This subdirectory can have any name, and it contains the config and administrative files for maintaining the catalog. The config file inside the catalog directory will need to be adjusted for each new hangar. The script builds the content locally which then needs to be uploaded to an appropriate place on a server.