Difference between revisions of "Sims 3:0x02019972"

From SimsWiki
Jump to: navigation, search
m (Format)
Line 1: Line 1:
[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:PackedFileTypes]]
+
{{TS3ModdingHeader}}
<br/>[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:RCOL]]
+
 
<hr/>
+
 
==Description==
 
==Description==
 
This is a [[Sims 3:RCOL]] chunk.
 
This is a [[Sims 3:RCOL]] chunk.
Line 26: Line 25:
 
Where the MTST is a [[Sims_3:0x01661233|MODL]] block, ''index'' is ''or''-d with 0x10000000 and refers to the MODL resource RCOL block number.
 
Where the MTST is a [[Sims_3:0x01661233|MODL]] block, ''index'' is ''or''-d with 0x10000000 and refers to the MODL resource RCOL block number.
 
Where it is a MTST resource, ''index'' is ''or''-d with 0x30000000 (not sure what it indexes into, if anything).
 
Where it is a MTST resource, ''index'' is ''or''-d with 0x30000000 (not sure what it indexes into, if anything).
<hr/>
+
 
[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:PackedFileTypes]]
+
{{TS3ModdingHeader}}
<br/>[[Tutorials:TS3 Advanced Coding Tutorials]] -> [[Sims 3:RCOL]]
+

Revision as of 20:42, 4 May 2010

Tutorials by Category

CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference 

Description

This is a Sims 3:RCOL chunk.

The purpose of the MTST is to allow multiple material definitions to be swapped by the game through the function:

ScriptCore.World.ObjectSetMaterial(ObjectGuid objId, string materialSetName, float transitionTime, bool bTransitionToOverlay);

For most objects, this function is often accessed through the function:

Sims3.Gameplay.Abstracts.GameObject.SetMaterial(string materialSetName);

The string argument is FNV32 hashed and matched with the hash name to locate and swap out the object's material.

Format

DWORD 'MTST'
DWORD Version
DWORD Initial MATD index
DWORD FNV32 of MATD Name
DWORD Count
--Count repeats of
	DWORD MATD index
	DWORD FNV32 of MATD Name

Based on all MTST blocks so far seen, 'Count' is >= 1 and there is an entry named "Default", i.e.

DWORD MATD index	// == Initial MATD index
DWORD 0x2EA8FB98	// FNV32 of "Default"

Where the MTST is a MODL block, index is or-d with 0x10000000 and refers to the MODL resource RCOL block number. Where it is a MTST resource, index is or-d with 0x30000000 (not sure what it indexes into, if anything).

Tutorials by Category

CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference 

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox