OBD:Mtrl: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (updated)
m (changed family)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{OBD_File_Header | type=Mtrl | prev=M3GM | next=OBAN | name=Material | family=General | align=center}}
{{OBD_File_Header | type=Mtrl | prev=M3GM | next=OBAN | name=Material | family=General | align=center}}


All local Mtrl files are [[OBD:File_types/Empty|0 byte files]], so the global ones are looked up by name.


Level 0 contains 30 materials (see below for the tree).
[[image:mtrl_all.gif]]
:
 
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/mtrl_all.gif
 
:
{{Table}}
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{{OBDth}}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr|0x00|res_id  |FF0000|01 E5 0F 00|4069   |04069-Armor.Mtrl}}
| WIDTH=15% | <B>Hex</B>
{{OBDtr|0x04|lev_id  |FFFF00|01 00 00 00|0     |level 0}}
| WIDTH=15% | <B>Translation</B>
{{OBDtr|0x08|int16  |FFC8C8|FF FF     |-1    |ignored, overwritten at runtime}}
| WIDTH=70% | <B>Meaning</B>
{{OBDtr|0x0A|char[6] |FFFFC8|AD DE     |dead   |unused}}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr|0x10|res_id  |C8FFC8|01 E6 0F 00|4070   |link to 04070-Character.Mtrl (parent material) }}
| BGCOLOR="#FF0000" | 01 E5 0F 00
{{OBDtr|0x14|char[12]|C8FFFF|AD DE     |dead   |unused}}
| 4069
| ALIGN=LEFT | 04069-Armor.Mtrl
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFF00" | 01 00 00 00
| 0
| ALIGN=LEFT | level 0
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | FF FF
| unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | AD DE
| dead
| ALIGN=LEFT | not used
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 01 E6 0F 00
| 4070
| ALIGN=LEFT | link to 04070-Character.Mtrl
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | AD DE
| dead
| ALIGN=LEFT | not used
|}
|}




;Mtrl usage
;Mtrl usage
:The materials are looked up from the [[ONIE]] and [[TMBD]] [[BINA]] as well as from [[CBPM]] and maybe a few other places ^^
:The materials are looked up from [[OBD:BINA/ONIE|Impact_Effects.BINA]] and [[OBD:BINA/TMBD|Texture_Materials.BINA]] as well as from [[OBD:CBPM|CBPM]] and maybe a few other places ^^


;Mtrl tree
;Mtrl tree
Line 72: Line 49:
**#*Snow [0]
**#*Snow [0]
**#Plastic [0]
**#Plastic [0]
**#Soft [0]




----
{{OBD_File_Footer | type=Mtrl | prev=M3GM | next=OBAN | name=Material | family=General | align=center}}
{{OBD_File_Footer | type=Mtrl | prev=M3GM | next=OBAN | name=Material | family=General | align=center}}
{{OBD}}

Latest revision as of 01:58, 8 December 2023

ONI BINARY DATA
M3GM << Other file types >> OBAN
Mtrl : Material
switch to XML:Mtrl page
Overview @ Oni Stuff
OBD.png


Mtrl all.gif


Offset Type Raw Hex Value Description
0x00 res_id 01 E5 0F 00 4069 04069-Armor.Mtrl
0x04 lev_id 01 00 00 00 0 level 0
0x08 int16 FF FF -1 ignored, overwritten at runtime
0x0A char[6] AD DE dead unused
0x10 res_id 01 E6 0F 00 4070 link to 04070-Character.Mtrl (parent material)
0x14 char[12] AD DE dead unused


Mtrl usage
The materials are looked up from Impact_Effects.BINA and Texture_Materials.BINA as well as from CBPM and maybe a few other places ^^
Mtrl tree
  • Default [5]
    • Character [4]
      1. Armor [0]
      2. Cloth [0]
      3. Flesh [0]
      4. Shield [1]
        • Super_Shield [0]
    • Glass [4]
      1. Clear_Glass [0]
      2. Small_Glass [0]
      3. Tinted_Glass [0]
      4. Unbreak_Glass [0]
    • Liquid [0]
    • Mesh [0]
    • Solid [4]
      1. Carpet [0]
      2. Hard [3]
        • Metal [3]
          • Heavy_Metal
          • Light_Metal
          • Resonant_Metal
        • Stone [2]
          • Asphalt
          • Concrete
        • Stucco [0]
      3. Loose_Ground [2]
        • Dirt [0]
        • Snow [0]
      4. Plastic [0]
      5. Soft [0]


ONI BINARY DATA
M3GM << Other file types >> OBAN
Mtrl : Material
General file