67
edits
Paul Richter (talk | contribs) m (→...-set.xml: sp) |
Paul Richter (talk | contribs) (make all the examples consistent) |
||
| Line 37: | Line 37: | ||
=== Models/....xml === | === Models/....xml === | ||
The first part is related to the nasal script. <tt>("Aircraft/ | The first part is related to the nasal script. <tt>("Aircraft/747/Models/Liveries");</tt> points FlightGear to the directory where we store our liveries. This is a different directory for every plane, but there should be only one folder for one plane, containing all the liveries for that plane. Add the following code to your models .xml file: | ||
<nasal> | <nasal> | ||
<load> | <load> | ||
var livery_update = aircraft.livery_update.new("Aircraft/ | var livery_update = aircraft.livery_update.new("Aircraft/747/Models/Liveries"); | ||
</load><nowiki> | </load><nowiki> | ||
</nowiki> | </nowiki> | ||
| Line 115: | Line 115: | ||
<model> | <model> | ||
<livery> | <livery> | ||
<name type="string"> | <name type="string">KLM Royal Dutch Airlines</name> | ||
<texture-fuselage> | <texture-fuselage>KLM-Livery-fuselage.png</texture-fuselage> | ||
<texture-wings> | <texture-wings>KLM-Livery-wings.png</texture-wings> | ||
</livery> | </livery> | ||
</model> | </model> | ||
| Line 130: | Line 130: | ||
<property-base>sim/model/livery</property-base> | <property-base>sim/model/livery</property-base> | ||
<texture-prop>texture-fuselage</texture-prop> | <texture-prop>texture-fuselage</texture-prop> | ||
<texture> | <texture>KLM-Livery-fuselage.png</texture> | ||
</animation> | </animation> | ||
| Line 139: | Line 139: | ||
<property-base>sim/model/livery</property-base> | <property-base>sim/model/livery</property-base> | ||
<texture-prop>texture-wings</texture-prop> | <texture-prop>texture-wings</texture-prop> | ||
<texture> | <texture>KLM-Livery-wings.png</texture> | ||
</animation> | </animation> | ||
edits