FlightGear version check: Difference between revisions

Jump to navigation Jump to search
no edit summary
(http://forum.flightgear.org/viewtopic.php?f=4&t=28010&p=264797#p264788)
 
No edit summary
Line 4: Line 4:




If in doubt, people should check the [[About do notdialog]] or even /sim/version in the property tree using the proeperty brwoser.
If in doubt, people should check the [[About dialog]] or even /sim/version in the property tree using the proeperty brwoser.


[[File:Property-browser-showing-version-info.png|thumb|property browser showing /sim/version info]]
[[File:Property-browser-showing-version-info.png|thumb|property browser showing /sim/version info]]


== For aircraft developers ==
== For aircraft developers ==
<syntaxhighlight lang="xml">
  <minimum-flightgear-version>4.0.0</minimum-flightgear-version>
</syntaxhighlight>
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 mainly 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.
We are hoping to also display this info in the [[About dialog]]
== Fgdata ==
$FG_ROOT/Nasal/version.nas
<syntaxhighlight lang="nasal">
</syntaxhighlight>

Navigation menu