Difference between revisions of "Sims 3:0x0358B08A"

From SimsWiki
Jump to: navigation, search
m (Bring in line with general formatting style (hopefully without breaking it))
Line 7: Line 7:
 
<br clear="all">
 
<br clear="all">
  
== Overview ==
+
==Overview==
(Also applies to Clothing Parts ([[Sims 3:0x062C8204 |0x062C8204]]))
+
(Also applies to Clothing Parts ([[Sims 3:0x062C8204|0x062C8204]]))
  
 
I've not worked out the entry format exactly, but it's more a matter of checking to make sure data style doesn't change across files. I need independent confirmation that this works please!
 
I've not worked out the entry format exactly, but it's more a matter of checking to make sure data style doesn't change across files. I need independent confirmation that this works please!
  
<pre>
+
-Karybdis
DWORD - Version
+
DWORD - Offset of the TGI index from here (File+8)
+
DWORD - Size of KeyTable block (+12 from first 12 bytes here)
+
BYTE - Length of the Part Name in two byte pieces
+
NAME - Part Name (*2 bytes per character, null byte first)
+
DWORD
+
  
-The 067caa11 file (Blend Geometry)
+
==Format==
T,G,I64
+
DWORD - Version
 
+
DWORD - GeomEntry/BoneEntry count
+
// [[Sims 3:Key table|Key table]]:
-Repeat Entries
+
DWORD TGI_offset // from after this DWORD
</pre>
+
DWORD TGI_size // 4 + tgiCount * 16
--Insert KeyTable here [[Sims_3:Catalog_Resource#TGI_Block_List|KeyTable]]
+
 
+
7STRING Part name // UnicodeBE
 
+
 
+
DWORD
Entries
+
 
+
// The Blend Geometry ([[Sims_3:0x067CAA11|0x067CAA11]]) file:
<pre>
+
DWORD bgType
DWORD FacialRegion / Region flags (For Clothing)
+
DWORD bgGroup
DWORD Bool Can Have both GeomEntry and BoneEntry? (Presumes at least a GeomEntry)
+
QWORD bgInstance
DWORD Bool Has GeomEntry? (If Canhave is 0, use this. Always 1 when present though)
+
4 BYTES AgeGender flags
+
DWORD Entry count
FLOAT Amount
+
--Repeat Entry count times:
DWORD GeomEntry Index (0 based) (Not used if DWORD 2 is 1)
+
DWORD [[#Facial Region Flags|Facial Region Flags]] // (For Clothing) (?)
DWORD Bool HasBoneEntry? (If DWORD 2 is 1 (IE can have bone entry) this long exists)
+
DWORD mayHaveBoneEntry // True if not zero; presumes at least a GeomEntry
4 BYTES AgeGender2 flags (Bone)
+
FLOAT Amount2 (Bone)
+
DWORD useGeomEntry // True if not zero; if !mayHaveBoneEntry, use this. Always true when present though
DWORD BoneIndex (1 Based) (If this is used, GeomEntry Index not used)
+
DWORD [[#Age / Gender Flags|Age / Gender Flags]] // (Geom)
 
+
FLOAT Amount // (Geom)
 
+
DWORD GeomEntry Index // (0 based) (Not used if mayHaveBoneEntry is true)
Enum FacialRegion
+
        Body = 0x400,
+
--If mayHaveBoneEntry is true:
        Brow = 0x100,
+
DWORD useBoneEntry // True if not zero
        Ears = 0x10,
+
''--So I'm wondering if these are present regardless of mayHaveBoneEntry:...''
        Eyelashes = 0x800,
+
DWORD [[#Age / Gender Flags|Age / Gender Flags]] // (Bone)
        Eyes = 1,
+
FLOAT Amount2 // (Bone)
        Face = 0x40,
+
DWORD BoneIndex // (1 Based) (If this is used, GeomEntry Index not used)
        Head = 0x80,
+
        Jaw = 0x200,
+
--Insert [[Sims 3:Key table|resource references]] here
        Mouth = 4,
+
        Nose = 2,
+
        TranslateEyes = 0x20,
+
        TranslateMouth = 8
+
 
+
</pre>
+
-Karybdis
+
  
 +
===Facial Region Flags===
 +
{| class="wikitable" border="1"
 +
! Bit !! Value !! Part
 +
|-
 +
| 0 || 0x001 || Eyes
 +
|-
 +
| 1 || 0x002 || Nose
 +
|-
 +
| 2 || 0x004 || Mouth
 +
|-
 +
| 3 || 0x008 || TranslateMouth
 +
|-
 +
| 4 || 0x010 || Ears
 +
|-
 +
| 5 || 0x020 || TranslateEyes
 +
|-
 +
| 6 || 0x040 || Face
 +
|-
 +
| 7 || 0x080 || Head
 +
|-
 +
| 8 || 0x100 || Brow
 +
|-
 +
| 9 || 0x200 || Jaw
 +
|-
 +
| 10 || 0x400 || Body
 +
|-
 +
| 11 || 0x800 || Eyelashes
 +
|}
 +
===Age / Gender Flags===
 +
TBC or someone update with a link to the page they're on, please.
 
{{TS3AdvancedModdingHeader}}
 
{{TS3AdvancedModdingHeader}}

Revision as of 21:44, 29 June 2010

Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

Face Part - FACE
TypeID:0x0358B08A
Game Version:The Sims 3



Contents

Overview

(Also applies to Clothing Parts (0x062C8204))

I've not worked out the entry format exactly, but it's more a matter of checking to make sure data style doesn't change across files. I need independent confirmation that this works please!

-Karybdis

Format

DWORD - Version

// Key table:
DWORD TGI_offset	// from after this DWORD
DWORD TGI_size		// 4 + tgiCount * 16

7STRING Part name	// UnicodeBE

DWORD

// The Blend Geometry (0x067CAA11) file:
DWORD bgType
DWORD bgGroup
QWORD bgInstance

DWORD Entry count
--Repeat Entry count times:
	DWORD Facial Region Flags	// (For Clothing) (?)
	DWORD mayHaveBoneEntry		// True if not zero; presumes at least a GeomEntry

	DWORD useGeomEntry		// True if not zero; if !mayHaveBoneEntry, use this. Always true when present though
	DWORD Age / Gender Flags	// (Geom)
	FLOAT Amount			// (Geom)
	DWORD GeomEntry Index		// (0 based) (Not used if mayHaveBoneEntry is true)

	--If mayHaveBoneEntry is true:
		DWORD useBoneEntry	// True if not zero
--So I'm wondering if these are present regardless of mayHaveBoneEntry:...
	DWORD Age / Gender Flags	// (Bone)
	FLOAT Amount2			// (Bone)
	DWORD BoneIndex			// (1 Based) (If this is used, GeomEntry Index not used)

--Insert resource references here

Facial Region Flags

Bit Value Part
0 0x001 Eyes
1 0x002 Nose
2 0x004 Mouth
3 0x008 TranslateMouth
4 0x010 Ears
5 0x020 TranslateEyes
6 0x040 Face
7 0x080 Head
8 0x100 Brow
9 0x200 Jaw
10 0x400 Body
11 0x800 Eyelashes

Age / Gender Flags

TBC or someone update with a link to the page they're on, please.

Modding Reference by Category

Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference 

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox