1
0
Fork 0

Tweaks to how we load aircraft defaults and definition file to make things

more intuitive.  We switch to an include in the preferences.xml to include
the default model, and then if the user specifies --aircraft=, that is
expanded immediately so portions can be overwritten by subsequent command
line options.

This required a slight format change to all the *-set.xml files.
This commit is contained in:
curt 2001-12-10 15:31:15 +00:00
parent 6299a67c71
commit 5446f74bec
10 changed files with 150 additions and 174 deletions

View file

@ -11,25 +11,22 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<!-- c172 is default so basically we just need to specify the panel-->
<sim>
<flight-model>yasim</flight-model>
<aero>747</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<flight-model>yasim</flight-model>
<aero>747</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
<model>
<path><!-- you need to set this --></path>
</model>
</PropertyList>

View file

@ -11,32 +11,30 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<!-- these are the three main components -->
<sim>
<flight-model>jsb</flight-model>
<aero>X15</aero>
<sound>false</sound>
<!-- these are the three main components -->
<panel>
<path>Aircraft/X15/Panels/X15-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<!-- switching models doesn't work -->
<!-- gear up -->
<model>
<path>Aircraft/X15/Models/X15_flight.ac</path>
</model>
<!-- gear down -->
<model_2>
<path>Aircraft/X15/Models/X15_landing.ac</path>
</model_2>
<flight-model>jsb</flight-model>
<aero>X15</aero>
<sound>false</sound>
</sim>
<panel>
<path>Aircraft/X15/Panels/X15-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<!-- switching models doesn't work -->
<!-- gear up -->
<model>
<path>Aircraft/X15/Models/X15_flight.ac</path>
</model>
<!-- gear down -->
<model_2>
<path>Aircraft/X15/Models/X15_landing.ac</path>
</model_2>
</PropertyList>

View file

@ -11,25 +11,22 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<!-- c172 is default so basically we just need to specify the panel-->
<sim>
<flight-model>yasim</flight-model>
<aero>a4</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<flight-model>yasim</flight-model>
<aero>a4</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
</PropertyList>

View file

@ -11,26 +11,23 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<!-- c172 is default so basically we just need to specify the panel-->
<sim>
<flight-model>jsb</flight-model>
<aero>c172</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-ifr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<flight-model>jsb</flight-model>
<aero>c172</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-ifr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
</PropertyList>

View file

@ -11,24 +11,22 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<!-- c172 is default so basically we just need to specify the fdm -->
<sim>
<flight-model>larcsim</flight-model>
<aero>c172</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<flight-model>larcsim</flight-model>
<aero>c172</aero>
<sound>true</sound>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
</PropertyList>

View file

@ -11,25 +11,23 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<sim>
<flight-model>jsb</flight-model>
<aero>c172</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<flight-model>jsb</flight-model>
<aero>c172</aero>
<sound>true</sound>
<model>
<path><!-- you need to set this --></path>
</model>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
</PropertyList>

View file

@ -11,26 +11,23 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<!-- c172 is default so basically we just need to specify the panel-->
<sim>
<flight-model>yasim</flight-model>
<aero>c172</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
<flight-model>yasim</flight-model>
<aero>c172</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
</PropertyList>

View file

@ -12,26 +12,24 @@ October 23 2001 John Check, fgpanels@rockfish.net
<PropertyList>
<!-- these are the three main components -->
<sim>
<flight-model>jsb</flight-model>
<aero>c310</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c310/c310-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c310/c310-mini-panel.xml</path>
</panel_2>
<flight-model>jsb</flight-model>
<aero>c310</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c310/c310-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c310/c310-mini-panel.xml</path>
</panel_2>
<!-- you need to download this model from the site listed above -->
<model>
<path>Aircraft/c310/Models/cessna310r.ac</path>
</model>
<!-- you need to download this model from the site listed above -->
<model>
<path>Aircraft/c310/Models/cessna310r.ac</path>
</model>
</sim>
</PropertyList>

View file

@ -12,26 +12,24 @@ October 23 2001 John Check, fgpanels@rockfish.net
<PropertyList>
<!-- these are the three main components -->
<sim>
<flight-model>yasim</flight-model>
<aero>c310</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c310/c310-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c310/c310-mini-panel.xml</path>
</panel_2>
<flight-model>yasim</flight-model>
<aero>c310</aero>
<sound>true</sound>
<!-- you need to download this from the above website -->
<model>
<path>Aircraft/c310/Models/cessna310r.ac</path>
</model>
<panel>
<path>Aircraft/c310/c310-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c310/c310-mini-panel.xml</path>
</panel_2>
<!-- you need to download this from the above website -->
<model>
<path>Aircraft/c310/Models/cessna310r.ac</path>
</model>
</sim>
</PropertyList>

View file

@ -11,25 +11,23 @@ October 23 2001 John Check, fgpanels@rockfish.net
-->
<PropertyList>
<sim>
<flight-model>jsb</flight-model>
<aero>shuttle</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<flight-model>jsb</flight-model>
<aero>shuttle</aero>
<sound>true</sound>
<panel>
<path>Aircraft/c172/Panels/c172-vfr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c172/Panels/c172-trans-mini-panel.xml</path>
</panel_2>
<model>
<path><!-- you need to set this --></path>
</model>
<model>
<path><!-- you need to set this --></path>
</model>
</sim>
</PropertyList>