XML:Mtrl: Difference between revisions

From OniGalore
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
* '''Mtrl*.oni''' files are global. (They can be found in edition/GameDataFolder/level0_...)
* '''Mtrl*.oni''' files are global. (They can be found in edition/GameDataFolder/level0_...)
* They are used by [[OBD_talk:BINA/ONIE|ONIE]], [[OBD_talk:BINA/TMBD|TMBD]] and [[OBD_talk:ONCC#CBPM|CBPM]].
* They are used by [[OBD_talk:BINA/ONIE|ONIE]], [[OBD_talk:BINA/TMBD|TMBD]] and [[OBD_talk:ONCC#CBPM|CBPM]].
* Material is only specified by the file name, for example "Mtrl'''Explosive'''.oni"
* Material is only specified by the file name, for example "Mtrl'''Explosive'''.oni" (That was an experimental material of [[User:Loser|Andrashi]].)
* Every material has a parent material to organize effects in ONIE.
* Every material has a parent material to organize effects in ONIE.




'''XML structure'''
'''XML structure'''
(e.g. file name "MtrlExplosive.xml")
  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
  <Oni Version="0.9.37.0">
  <Oni Version="0.9.37.0">

Revision as of 11:56, 7 August 2011

Mtrl: materials

Template:XMLModdingHints

general information

  • Mtrl*.oni files are global. (They can be found in edition/GameDataFolder/level0_...)
  • They are used by ONIE, TMBD and CBPM.
  • Material is only specified by the file name, for example "MtrlExplosive.oni" (That was an experimental material of Andrashi.)
  • Every material has a parent material to organize effects in ONIE.


XML structure (e.g. file name "MtrlExplosive.xml")

<?xml version="1.0" encoding="utf-8"?>
<Oni Version="0.9.37.0">
    <Instance id="0" type="Mtrl">
        <ParentMaterial>MtrlGlass</ParentMaterial>
    </Instance>
</Oni>