8,802
edits
mNo edit summary |
m (little cleanup) |
||
Line 5: | Line 5: | ||
The examples are based on the [[Sikorsky S76C]]. | The examples are based on the [[Sikorsky S76C]]. | ||
== | ==Files== | ||
There are a few files we need to make (or edit), namely: | There are a few files we need to make (or edit), namely: | ||
* <tt>s76c-set.xml</tt> | * <tt>s76c-set.xml</tt> | ||
Line 12: | Line 12: | ||
We also have to make a new directory to store our liveries in. Let's make it <tt>Aircraft/Sikorsky-76C/Models/Liveries</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>. | ||
===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 <tt>Models/Liveries directory</tt>. | 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 <tt>Models/Liveries directory</tt>. | ||
Line 30: | Line 29: | ||
</PropertyList> | </PropertyList> | ||
===s76c.xml=== | |||
The first part is related to the nasal script. <tt>("Aircraft/Sikorsky-76C/Models/Liveries", 10)</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. | The first part is related to the nasal script. <tt>("Aircraft/Sikorsky-76C/Models/Liveries", 10)</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. | ||
Line 63: | Line 62: | ||
</animation> | </animation> | ||
===S76C.nas=== | |||
The only thing you might change in the nasal file is the directory of the liveries. | The only thing you might change in the nasal file is the directory of the liveries. | ||
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"); | ||
===s76c-set.xml=== | |||
<model> | <model> | ||
<path>Aircraft/Sikorsky-76C/Models/s76c.xml</path> | <path>Aircraft/Sikorsky-76C/Models/s76c.xml</path> |