Livery over MP: Difference between revisions

Jump to navigation Jump to search
extension (+ multiple texture files)
mNo edit summary
(extension (+ multiple texture files))
Line 70: Line 70:


===dr400-set.xml===
===dr400-set.xml===
The follow part is really important. If this is not included, the livery changes will not be visible over MP!
  <model>
  <model>
   <path>Aircraft/DR400/models/dr400.xml</path>
   <path>Aircraft/DR400/models/dr400.xml</path>
Line 76: Line 78:
   </livery>
   </livery>
  </model>
  </model>
If you want the default livery be something else than the first in the list, replace the file type part with the following, containing the Models/Liveries/....xml file name of the approperiate livery.
<file type="string">ANA</file>


To make a nice button in the [[menubar]] we need to add the following code, just above the <tt></sim></tt> tag.
To make a nice button in the [[menubar]] we need to add the following code, just above the <tt></sim></tt> tag.
Line 94: Line 100:
   </default>
   </default>
  </menubar>
  </menubar>
==Multiple texture files per livery==
Some models use multiple textures file (eg. seperate files for wings and fuselage). Every texture needs it own property. You can add as many textures as you like.
The given examples are based on the [[Boeing 787]].
===Models/Liveries===
Instead of just one texture we have to deal with multiple ones now.
<?xml version="1.0"?><nowiki>
</nowiki>
<PropertyList>
  <sim>
  <model>
    <livery>
    <name type="string">All Nippon Airways</name>
    <texture>ANA-Livery.rgb</texture>
    </livery>
    <lights>
    <texture>ANA-Lights.rgb</texture>
    </lights>
  </model>
  </sim>
</PropertyList>
Remember the names (<livery> and <lights>), as you will need them in the model file in the next step.
===Models/787.xml===
    <animation>
        <type>material</type>
        <object-name>wipers</object-name>
        <property-base>sim/model/livery</property-base>
        <texture-prop>texture</texture-prop>
        <texture>ANA-Livery.rgb</texture>
    </animation>
    <animation>
        <type>material</type>
        <object-name>lightedfin_0</object-name>
        <property-base>sim/model/lights</property-base>
        <texture-prop>texture</texture-prop>
        <texture>ANA-Lights.rgb</texture>
    </animation>


==Testing==
==Testing==

Navigation menu