Livery over MP: Difference between revisions

Jump to navigation Jump to search
make all the examples consistent
(make all the examples consistent)
Line 37: Line 37:


=== Models/....xml ===
=== Models/....xml ===
The first part is related to the nasal script. <tt>("Aircraft/DR400/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:
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/DR400/Models/Liveries");
   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">All Nippon Airways</name>
     <name type="string">KLM Royal Dutch Airlines</name>
     <texture-fuselage>ANA-Livery-fuselage.png</texture-fuselage>
     <texture-fuselage>KLM-Livery-fuselage.png</texture-fuselage>
     <texture-wings>ANA-Livery-wings.png</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>ANA-Livery-fuselage.png</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>ANA-Livery-wings.png</texture>
         <texture>KLM-Livery-wings.png</texture>
     </animation>
     </animation>


67

edits

Navigation menu