PropertyList XML files: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 130: Line 130:


Emmanuel Baranger's models tend to use this technique lot and often have several XML files: the first (the -set.xml) contains very basic information, often just author and version number, and includes the next; the second is for FDM-specific properties (the -yasim-cnf or -jsbsim-cnf); and the last has FDM-independent things like flap settings (the -base.xml). This structuring allows for maximum reusability between FDMs and makes it easier for someone to come along and add another FDM to a model.
Emmanuel Baranger's models tend to use this technique lot and often have several XML files: the first (the -set.xml) contains very basic information, often just author and version number, and includes the next; the second is for FDM-specific properties (the -yasim-cnf or -jsbsim-cnf); and the last has FDM-independent things like flap settings (the -base.xml). This structuring allows for maximum reusability between FDMs and makes it easier for someone to come along and add another FDM to a model.
{{Caution|The 'new' vec*d types are not fully/propertly integrated  with the underlying PropertyTree APIs yet, which means that some things may not work as expected, which is particularly important when dealing with files using those types (e.g. effects - see below for details).
{{FGCquote
  |Instead of:
<syntaxhighlight lang="xml">
<effect include="Aircraft/f16/Models/Effects/glass/glass.xml"/>
</syntaxhighlight>
It is best to use
<syntaxhighlight lang="xml">
<effect>
  <inherits-from>Aircraft/f16/Models/Effects/glass/glass</inherits-from><br/>
</effect>
</syntaxhighlight>
  |{{cite web |url=http://sourceforge.net/p/flightgear/mailman/message/33606423/
    |title=<nowiki>Re: [Flightgear-devel] xml: Unrecognized data type 'vec3d (Was:
Cockpit glass effect)</nowiki>
    |author=<nowiki>Erik Hofman</nowiki>
    |date=<nowiki>2015-03-17</nowiki>
  }}
}}
}}


=== Aliased properties ===
=== Aliased properties ===

Navigation menu