Livery over MP: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(New page: On this page we describe how you make use of a script to get a livery selection dialog in FlightGear. To get new liveries into FlightGear CVS, you need to have them availabe with this ...)
 
mNo edit summary
Line 1: Line 1:
On this page we describe how you make use of a script to get a livery selection dialog in FlightGear. To get new liveries into [[FlightGear CVS]], you need to have them availabe with this script.
On this page we describe how you make use of a script to get a livery selection dialog in FlightGear. To get new liveries into [[FlightGear CVS]], you need to have them availabe with this script.


==Using the MP livery script==
==Before we start==
We have to make a directory to store our liveries in. Let's make it <tt>Aircraft/Sikorsky-76C/Models/Liveries</tt>.
There are a few files we need to make (or edit), namely:
* <tt>s76c-set.xml</tt>
* <tt>Models/s76c.xml</tt>
* <tt>Nasal/S76C.nas</tt>
We also have to make a new directory to store our liveries in. Let's make it <tt>Aircraft/Sikorsky-76C/Models/Liveries</tt>.


====Livery files====
===Files===
For every liverie we need to make a file. Let's say we got a Rescue livery, we than need to make a file called Rescue.xml into our Models/Liveries directory.
====Models/Liveries====
For every livery we need to make a file. Let's say we got a Rescue livery, we than need to make a file called Rescue.xml into our Models/Liveries directory.


  <?xml version="1.0"?><nowiki>
  <?xml version="1.0"?><nowiki>
Line 21: Line 26:
  </PropertyList>
  </PropertyList>


====Model .xml file====
====s76c.xml====
  <nasal>
  <nasal>
   <load>
   <load>
Line 50: Line 55:
  </animation>
  </animation>


====.nas file====
====S76C.nas====
  aircraft.livery.init("Aircraft/Sikorsky-76C/Models/Liveries", "sim/model/livery/name", "sim/model/livery/index");
  aircraft.livery.init("Aircraft/Sikorsky-76C/Models/Liveries", "sim/model/livery/name", "sim/model/livery/index");


====-set.xml file====
====s76c-set.xml====
  <model>
  <model>
   <path>Aircraft/Sikorsky-76C/Models/s76c.xml</path>
   <path>Aircraft/Sikorsky-76C/Models/s76c.xml</path>

Navigation menu