XML:Mtrl: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (copy-edit)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{XML_File_Header | type=Mtrl | prev=M3GM | next=OBAN | name=Material}}
{{XML_File_Header | prev=M3GM | type=Mtrl | next=OBAN | name=Material}}


==General information==
==General information==
Line 20: Line 20:


==Vanilla material tree==
==Vanilla material tree==
Default
{{Tree list}}
  |
*Default
  +-- Character
**Character
  |    |
***Armor
  |    +-- Armor
***Cloth
  |    +-- Cloth
***Flesh
  |    +-- Flesh
***Shield
  |    +-- Shield
****Super_Shield
  |          |
**Glass
  |          +-- Super_Shield
***Clear_Glass
  | 
***Small_Glass
  +-- Glass
***Tinted_Glass
  |    |
***Unbreak_Glass
  |    +-- Clear_Glass
** Liquid
  |    +-- Small_Glass
**Mesh
  |    +-- Tinted_Glass
**Solid
  |    +-- Unbreak_Glass
***Carpet
  |
***Hard
  +-- Liquid
****Metal
  +-- Mesh
*****Heavy_Metal
  +-- Solid
*****Light_Metal
        |
*****Resonant_Metal  
        +-- Carpet
****Stone
        +-- Hard
*****Asphalt
        |    |
*****Concrete  
        |    +-- Metal
****Stucco
        |    |    |
***Loose_Ground
        |    |    +-- Heavy_Metal
****Dirt
        |    |    +-- Light_Metal
****Snow
        |    |    +-- Resonant_Metal  
***Plastic
        |    |
***Soft
        |    +-- Stone
{{Tree list/end}}
        |    |    |
        |    |    +-- Asphalt
        |    |    +-- Concrete  
        |    |
        |    +-- Stucco
        |
        +-- Loose_Ground
        |    |
        |    +-- Dirt
        |    +-- Snow
        |
        +-- Plastic
        +-- Soft
 
{{XML}}
{{XML}}

Latest revision as of 20:31, 6 December 2023

Mtrl : Material
XML modding tips
  • See HERE to start learning about XML modding.
  • See HERE if you are searching for information on how to handle object coordinates.
  • See HERE for some typical modding errors and their causes.
XML.png
XML

M3GM << Other file types >> OBAN

switch to OBD page

General information

  • The XML on this page is compatible with OniSplit v0.9.61.0.
  • Mtrl*.oni files are global. (They can be found in AE/AEInstaller/vanilla/level0_Final.dat.)
  • They are used by ONIE, TMBD and CBPM.
  • Materials are specified solely by the file name, for example "MtrlArmor.oni"
  • Every material has a parent material (except for "Default"), in order to organize the effects in ONIE.
For example: An effect is looked up from ONIE if a character get hit by a bullet.
Let's imagine the hit body part has Armor as its material. If there's no effect defined for Armor, the engine looks for the parent material, here Character. And if Character doesn't match, the effect from Default is chosen.

XML structure

(e.g. file name "MtrlArmor.xml")

<?xml version="1.0" encoding="utf-8"?>
<Oni>
   <Mtrl id="0">
       <ParentMaterial>MtrlCharacter</ParentMaterial>
   </Mtrl>
</Oni>

Vanilla material tree

  • Default
    • Character
      • Armor
      • Cloth
      • Flesh
      • Shield
        • Super_Shield
    • Glass
      • Clear_Glass
      • Small_Glass
      • Tinted_Glass
      • Unbreak_Glass
    • Liquid
    • Mesh
    • Solid
      • Carpet
      • Hard
        • Metal
          • Heavy_Metal
          • Light_Metal
          • Resonant_Metal
        • Stone
          • Asphalt
          • Concrete
        • Stucco
      • Loose_Ground
        • Dirt
        • Snow
      • Plastic
      • Soft