Aircraft-set.xml: Difference between revisions

Jump to navigation Jump to search
Remaining cleanup, for now
(Some more cleanup. Still more to go though)
(Remaining cleanup, for now)
Line 1: Line 1:
''See also: [[Aircraft Generation Wizard]] (stalled as of 12/2013)''
The '''aircraft-set.xml''' file (or rather ''name-of-aircraft''-set.xml) is the top level aircraft configuration file.  The aircraft-set.xml file should be in the aircraft's root directory, for example <code>[[$FG_ROOT]]/Aircraft/747-400/747-400-set.xml</code>.
The '''aircraft-set.xml''' file (or rather ''name-of-aircraft''-set.xml) is the top level aircraft configuration file.  The aircraft-set.xml file should be in the aircraft's root directory, for example <code>[[$FG_ROOT]]/Aircraft/747-400/747-400-set.xml</code>.


Line 62: Line 60:
While the aircraft-set.xml file is very flexible and can be dauntingly complex for some aircraft this description will only deal with the most commonly used tags within the <code>&lt;sim&gt;</code> tags.
While the aircraft-set.xml file is very flexible and can be dauntingly complex for some aircraft this description will only deal with the most commonly used tags within the <code>&lt;sim&gt;</code> tags.


{{note|Most of these tags are optional.}}


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
Line 163: Line 162:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
  </sim>
  <checklists include=""/> <!-- File name -->
<PropertyList>
</syntaxhighlight>
</syntaxhighlight>


Closing <code>&lt;sim&gt;</code> and <code>&lt;PropertyList&gt;</code> tags
Configuration XML file defining a [[Aircraft Checklists|checklist]] (available since version 3.0).
 
<syntaxhighlight lang="xml">
<variant-of><!-- Aircraft --></variant-of>
</syntaxhighlight>


== Checklists ==
Another aircraft an aircraft is a variant of (available since 3.6).  For example, the [[British Aerospace Sea Harrier|BAe Sea Harrier FA2]] is a variant of the BAe Sea Harrier, and the ''Cessna 172P - Canvas Demo'' is a variant of the [[Cessna C172P|C172P]].  Additionally, this could be used for different [[Talk:Aircraft_Checklists#In-air_startups_.26_supporting_Startup_Situations|startup situations]] too.
Please see [[Aircraft Checklists]]


== Variants (3.6+) ==
Example from the [{{fgaddon url|777|777-200ER-set.xml|l=11}} 777-200ER-set.xml]: <code><nowiki><variant-of>777-200</variant-of></nowiki></code>
Aircraft developers can make use of a new tag in the [[Aircraft-set.xml]] file. Added to the <code><nowiki><sim></nowiki></code>, the <code><nowiki><variant-of></nowiki></code> tag states to the launcher the aircraft type that your aircraft is a variant of.  For example, the [[British Aerospace Sea Harrier|BAe Sea Harrier FA2]] is a variant of the BAe Sea Harrier, and the ''Cessna 172P - Canvas Demo'' is a variant of the [[Cessna C172P|C172P]]. Equally, this could be used for different [[Talk:Aircraft_Checklists#In-air_startups_.26_supporting_Startup_Situations|startup situations]] too.


{{note|At the moment, only the [[Integrated Qt5 Launcher|Mac Qt launcher]] (which comes with FlightGear for Mac v3.4+) will read this tag.}}
{{note|At the moment, only the [[Integrated Qt5 Launcher|Mac Qt launcher]] (which comes with FlightGear for Mac v3.4+) will read this tag.}}


Syntax:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<sim>
</sim>
    ...
<PropertyList>
    <variant-of>[aircraft]</variant-of>
    ...
</sim>
</syntaxhighlight>
</syntaxhighlight>


Example from {{repo link|site=gito|path=Aircraft/777/777-200ER-set.xml|pre=$FG_ROOT}} (see [https://gitorious.org/fg/fgdata/commit/1017a32b1b078f46959b3b6e7510a7376458b02b commit]):
Closing <code>&lt;sim&gt;</code> and <code>&lt;PropertyList&gt;</code> tags
 
<code><nowiki><variant-of>777-200</variant-of></nowiki></code>


== Related content ==
== Related content ==

Navigation menu