13,208
edits
m (Fix internal wiki link) |
(→-set.xml Sections: + Checking FlightGear version and aircraft folder name. After tip from Mika, and from flightgear/Main/fg_init.cxx, around line 400) |
||
Line 99: | Line 99: | ||
Version of the aircraft. Often the date of the last change or a version number. | Version of the aircraft. Often the date of the last change or a version number. | ||
<!-- | <!-- | ||
Line 109: | Line 108: | ||
Minimum FlightGear version required for this aircraft [http://forum.flightgear.org/viewtopic.php?f=4&t=28010&p=264797#p264788], note that this is a "soft" requirement - i.e. it will not terminate fg or trigger an error, but only show a warning in the console/fg window using a Nasal script that checks if the property is set. This is intended to make compatibility issues more obvious, i.e. end-users downloading new aircraft and wanting to use them in conjunction with an old version of FlightGear, which is causing quite a bit of workload on the support forum. | Minimum FlightGear version required for this aircraft [http://forum.flightgear.org/viewtopic.php?f=4&t=28010&p=264797#p264788], note that this is a "soft" requirement - i.e. it will not terminate fg or trigger an error, but only show a warning in the console/fg window using a Nasal script that checks if the property is set. This is intended to make compatibility issues more obvious, i.e. end-users downloading new aircraft and wanting to use them in conjunction with an old version of FlightGear, which is causing quite a bit of workload on the support forum. | ||
--> | --> | ||
==== Minimum FlightGear version ==== | |||
<syntaxhighlight lang="xml"> | |||
<minimum-fg-version><!-- The minimal version of FlightGear the aircraft can be expected to fully work with. --></minimum-fg-version> | |||
</syntaxhighlight> | |||
This will make FlightGear show a warning dialog stating that the aircraft might not work as expected or at all if the FlightGear version loading it is too old. | |||
This is useful of you know that you are using features not available for older versions of FlightGear. | |||
==== Expected aircraft folder name ==== | |||
<syntaxhighlight lang="xml"> | |||
<expected-aircraft-dir-name><!-- The expected name of the aircraft folder. --></expected-aircraft-dir-name> | |||
</syntaxhighlight> | |||
This will make FlightGear show a warning dialog if the aircraft do not have the expected folder name, suggesting that the user rename the aircraft to the aircraft name given above. | |||
This is useful if you expect users to download your aircraft from for example GitHub, which will add a hyphen and a branch name to the folder name, most often <code>-master</code>. This will usually break a lot of things, for example showing the blue and yellow "infamous glider" instead of the aircraft model, as FlightGear do not find the aircraft model. | |||
==== Ratings ==== | ==== Ratings ==== |