Difference between revisions of "MMAT"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
(cleanup)
Line 1: Line 1:
{{OldWikiEntry}} ===MMAT===
+
{{OldWikiEntry}}  
 
+
== MMAT ==
  
 
MMAT is model material information - commonly thought of as a skin. This document provides information about the skin, it is NOT the actual skin of the object! It is an XML-based file with the following structure...
 
MMAT is model material information - commonly thought of as a skin. This document provides information about the skin, it is NOT the actual skin of the object! It is an XML-based file with the following structure...
Line 6: Line 6:
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<cGZPropertySetString>
 
<cGZPropertySetString>
*FIELDS HERE*
+
''FIELDS HERE''
  
 
There are different types of fields that can be in a document. Each type is both represented as a different tag name, AND a 'type' attribute on the tag. Presumably the game only reads the 'type' attribute
 
There are different types of fields that can be in a document. Each type is both represented as a different tag name, AND a 'type' attribute on the tag. Presumably the game only reads the 'type' attribute
Line 16: Line 16:
 
The following fields are available for use in this format. These names are stored in the 'key' attribute of each tag, with the actual value between the start and end tags.
 
The following fields are available for use in this format. These names are stored in the 'key' attribute of each tag, with the actual value between the start and end tags.
  
*Booleans*
+
''Booleans''
defaultMaterial - Is this material the default material for the object? ie. is this the default skin
+
*defaultMaterial - Is this material the default material for the object? ie. is this the default skin
 +
 
 +
''Strings''
 +
*creator - The program or person that created the material?
 +
*family - Type of the material?
 +
*modelName - The filename of the object model, with each . replaced by a _ character
 +
*name - The filename of the material, with each . replaced by a _ character
 +
*subsetName - The group that this material belongs to - presumably all materials with the same group name are placed together in the chooser
 +
*type - The type of file this is? Has the value modelMaterial
  
*Strings*
+
''Unsigned Integers''
creator - The program or person that created the material?
+
*flags - Flags for the material. Only seen values of 0 so far
family - Type of the material?
+
*materialStateFlags - States of the material? Only seen values of 0 so far
modelName - The filename of the object model, with each . replaced by a _ character
+
*objectGUID - The unique ID number for the object this material is applied to
name - The filename of the material, with each . replaced by a _ character
+
subsetName - The group that this material belongs to - presumably all materials with the same group name are placed together in the chooser
+
type - The type of file this is? Has the value modelMaterial
+
  
*Unsigned Integers*
+
''Signed Integers''
flags - Flags for the material. Only seen values of 0 so far
+
*objectStateIndex - The current state of the object, or -1 if no states are defined for the object.
materialStateFlags - States of the material? Only seen values of 0 so far
+
objectGUID - The unique ID number for the object this material is applied to
+
  
*Signed Integers*
+
[[Category:Modding]]
objectStateIndex - The current state of the object, or -1 if no states are defined for the object. [[Category:Modding]]
+

Revision as of 13:18, 15 September 2006

This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/MMAT

MMAT

MMAT is model material information - commonly thought of as a skin. This document provides information about the skin, it is NOT the actual skin of the object! It is an XML-based file with the following structure...

<?xml version="1.0" encoding="UTF-8"?> <cGZPropertySetString> FIELDS HERE

There are different types of fields that can be in a document. Each type is both represented as a different tag name, AND a 'type' attribute on the tag. Presumably the game only reads the 'type' attribute

 <AnyBoolean key="" type="0xcba908e1"></AnyBoolean> - Boolean true/false
 <AnyString key="" type="0x0b8bea18"></AnyString> - Text string
 <AnyUint32 key="" type="0xeb61e4f7"></AnyUint32> - Unsigned Integer number - 4 bytes/32 bits
 <AnySint32 key="" type="0x0c264712"></AnySint32> - Signed Integer number - 4 bytes/32 bits

The following fields are available for use in this format. These names are stored in the 'key' attribute of each tag, with the actual value between the start and end tags.

Booleans

  • defaultMaterial - Is this material the default material for the object? ie. is this the default skin

Strings

  • creator - The program or person that created the material?
  • family - Type of the material?
  • modelName - The filename of the object model, with each . replaced by a _ character
  • name - The filename of the material, with each . replaced by a _ character
  • subsetName - The group that this material belongs to - presumably all materials with the same group name are placed together in the chooser
  • type - The type of file this is? Has the value modelMaterial

Unsigned Integers

  • flags - Flags for the material. Only seen values of 0 so far
  • materialStateFlags - States of the material? Only seen values of 0 so far
  • objectGUID - The unique ID number for the object this material is applied to

Signed Integers

  • objectStateIndex - The current state of the object, or -1 if no states are defined for the object.
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox