Difference between revisions of "Sims 4:0x01D0E75D"
From SimsWiki
ChaosMageX (Talk | contribs) (Created MATD format specification page for TS4, which was mostly copied from the same format for TS3) |
ChaosMageX (Talk | contribs) m (Fixing links) |
||
Line 32: | Line 32: | ||
DWORD param name hash // Valid values depend on the [[Sims 4:Shaders|Shader]] used | DWORD param name hash // Valid values depend on the [[Sims 4:Shaders|Shader]] used | ||
// see [[Sims 4:Shaders\Params|ShaderParams]] for another list | // see [[Sims 4:Shaders\Params|ShaderParams]] for another list | ||
− | DWORD // [[ | + | DWORD // [[Sims_4:0x01D0E75D#Param DataTypes|Data type code]] |
DWORD data size (in DWORDS) | DWORD data size (in DWORDS) | ||
DWORD data offset // From 'MTRL' or 'MTNF' | DWORD data offset // From 'MTRL' or 'MTNF' | ||
Line 38: | Line 38: | ||
--count repeats of | --count repeats of | ||
--data count repeats of | --data count repeats of | ||
− | --insert data // see [[ | + | --insert data // see [[Sims_4:0x01D0E75D#Param DataTypes|Param Datatypes]] for possible typecode/size combos |
--insert padding to DWORD boundry | --insert padding to DWORD boundry | ||
Revision as of 05:29, 10 July 2014
Modding Reference by Category | |
---|---|
Sims 4: DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS4 Programmer's Reference |
Material Definition - MATD | ||
---|---|---|
TypeID: | 0x01D0E75D | |
Game Version: | The Sims 4 |
Overview
This is a Sims 4:RCOL chunk.
DWORD 'MATD' DWORD version DWORD // Material name hash or 0 DWORD // Shader name hash or 0 DWORD length // Length from 'MTRL' or 'MTNF'; 16+(16*count)+(4*parmcount) --if version < 0x103 DWORD 'MTRL' // Used instead of MTNF if the internal list of resource keys is null. DWORD 0 WORD WORD --else if version >= 0x103 DWORD IsVideoSurface // boolean DWORD IsPaintingSurface // DWORD 'MTNF' or 'MTRL' // Used if the internal list of resource keys is non-null. // Note that it may still just be of zero length. // TODO: Is 'MTNF' even used anymore? Will using it case problems in TS4? DWORD 0 DWORD datasize // Size of the data block (total parms*4) DWORD count --count repeats of DWORD param name hash // Valid values depend on the Shader used // see ShaderParams for another list DWORD // Data type code DWORD data size (in DWORDS) DWORD data offset // From 'MTRL' or 'MTNF' --count repeats of --data count repeats of --insert data // see Param Datatypes for possible typecode/size combos --insert padding to DWORD boundry
Param DataTypes
|
|
Notes
Modding Reference by Category | |
---|---|
Sims 4: DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS4 Programmer's Reference |