Difference between revisions of "Sims 3:0x0358B08A"

From SimsWiki
Jump to: navigation, search
(Overview)
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{TS3AdvancedModdingHeader}}
 
{{TS3AdvancedModdingHeader}}
 
{{TS3Resource
 
{{TS3Resource
|name=Face Part
+
|name=Face Part - FACE
 
|typeid= 0x0358B08A
 
|typeid= 0x0358B08A
 
|expansion=The Sims 3
 
|expansion=The Sims 3
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]],[[Sims 3:0x0A037DDA|0x0A037DDA]]))
  
 
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)
+
Updated and verified as part of s3pi build process.  -- PLJ
T,G,I64
+
  
DWORD - GeomEntry/BoneEntry count
+
Version 7 info (store packages only??) - cmar
-Repeat Entries
+
</pre>
+
--Insert KeyTable here [[Sims_3:Catalog_Resource#TGI_Block_List|KeyTable]]
+
  
 +
Version 10 - Sims Medieval, seems to otherwise be identical to Version 7 structure. - cmar
  
 +
Revised to include new info from breast slider bblends. - cmar
  
Entries
+
==Format==
 
+
DWORD - Version
<pre>
+
DWORD FacialRegion / Region flags (For Clothing)
+
// [[Sims 3:Key table|Key table]]:
DWORD Bool Can Have both GeomEntry and BoneEntry? (Presumes at least a GeomEntry)
+
DWORD TGI_offset // from after this DWORD
DWORD Bool Has GeomEntry? (If Canhave is 0, use this. Always 1 when present though)
+
DWORD TGI_size // Version 7 and Version 10: (4 + TGIcount * 16), Version 8: (4 + tgiCount * 16) '''PLUS EIGHT''' ''(for no readily apparent reason)''
4 BYTES AgeGender flags
+
FLOAT Amount
+
7STRING Part name // UnicodeBE
DWORD GeomEntry Index (0 based) (Not used if DWORD 2 is 1)
+
DWORD Bool HasBoneEntry? (If DWORD 2 is 1 (IE can have bone entry) this long exists)
+
DWORD                 // Always 2 ?
4 BYTES AgeGender2 flags (Bone)
+
FLOAT Amount2 (Bone)
+
--If Version == 8, the Blend Geometry ([[Sims_3:0x067CAA11|0x067CAA11]]) Resource Key:
DWORD BoneIndex (1 Based) (If this is used, GeomEntry Index not used)
+
DWORD bgType
 
+
DWORD bgGroup
 
+
QWORD bgInstance
Enum FacialRegion
+
        Body = 0x400,
+
DWORD Entry count
        Brow = 0x100,
+
--Repeat Entry count times:
        Ears = 0x10,
+
DWORD [[#Facial Region Flags|Facial Region Flags]] // (For Clothing) (?)
        Eyelashes = 0x800,
+
DWORD GEOM count
        Eyes = 1,
+
--repeat GEOM count times:
        Face = 0x40,
+
DWORD GEOM [[Sims 3:CAS Part Flags#Age, Species, Gender and Handedness|Age, Species, Gender and Handedness]]
        Head = 0x80,
+
FLOAT GEOM Amount
        Jaw = 0x200,
+
DWORD GEOM VPXY Index in TGI
        Mouth = 4,
+
DWORD Bone count
        Nose = 2,
+
--repeat Bone count times:
        TranslateEyes = 0x20,
+
DWORD Bone [[Sims 3:CAS Part Flags#Age, Species, Gender and Handedness|Age, Species, Gender and Handedness]]
        TranslateMouth = 8
+
FLOAT Bone Amount
 
+
DWORD Bone VPXY Index in TGI
</pre>
+
-Karybdis
+
 +
--Insert [[Sims 3:Key table|resource references]] here  // Version 7 and Version 10 - points to VPXY
  
 +
===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
 +
|}
 
{{TS3AdvancedModdingHeader}}
 
{{TS3AdvancedModdingHeader}}

Latest revision as of 18:57, 16 December 2012

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



[edit] Overview

(Also applies to Clothing Parts (0x062C8204,0x0A037DDA))

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

Updated and verified as part of s3pi build process. -- PLJ

Version 7 info (store packages only??) - cmar

Version 10 - Sims Medieval, seems to otherwise be identical to Version 7 structure. - cmar

Revised to include new info from breast slider bblends. - cmar

[edit] Format

DWORD - Version

// Key table:
DWORD TGI_offset	// from after this DWORD
DWORD TGI_size		// Version 7 and Version 10: (4 + TGIcount * 16), Version 8: (4 + tgiCount * 16) PLUS EIGHT (for no readily apparent reason)

7STRING Part name	// UnicodeBE

DWORD                  // Always 2 ?

--If Version == 8, the Blend Geometry (0x067CAA11) Resource Key:
	DWORD bgType
	DWORD bgGroup
	QWORD bgInstance

DWORD Entry count
--Repeat Entry count times:
	DWORD Facial Region Flags	// (For Clothing) (?)
	DWORD GEOM count
	--repeat GEOM count times:
		DWORD GEOM Age, Species, Gender and Handedness
		FLOAT GEOM Amount
		DWORD GEOM VPXY Index in TGI
	DWORD Bone count
	--repeat Bone count times:
		DWORD Bone Age, Species, Gender and Handedness
		FLOAT Bone Amount
		DWORD Bone VPXY Index in TGI


--Insert resource references here  // Version 7 and Version 10 - points to VPXY 

[edit] 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
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