Difference between revisions of "Sims 3:0x034AEECB"

From SimsWiki
Jump to: navigation, search
m (Format)
m (Format)
 
Line 15: Line 15:
 
These use a similar format to [[Sims 3:0x025ED6F4|0x025ED6F4]].
 
These use a similar format to [[Sims 3:0x025ED6F4|0x025ED6F4]].
 
==Format==
 
==Format==
  DWORD version
+
  DWORD version // 0x12 is current?
  DWORD offset // to resource reference table from end of header (ie offset + 8)
+
  DWORD offset // to resource reference table from end of header (ie offset + 8)
 
   
 
   
 
  //Presets
 
  //Presets
Line 22: Line 22:
 
  --repeat(presetCount)
 
  --repeat(presetCount)
 
  DWORD length
 
  DWORD length
  char16[length] // Embedded XML Preset (Unicode (LE))
+
  char16[length] // Embedded XML Preset (Unicode (LE))
 
  DWORD
 
  DWORD
 
   
 
   
  7STRING // UnicodeBE
+
  7STRING // UnicodeBE
 
   
 
   
  FLOAT sortPriority // CAS sorts on this value, from largest to smallest
+
  FLOAT sortPriority // CAS sorts on this value, from largest to smallest
 
  BYTE
 
  BYTE
 
  DWORD clothingType (see [[#Clothing Types|below]])
 
  DWORD clothingType (see [[#Clothing Types|below]])
Line 43: Line 43:
 
  DWORD
 
  DWORD
 
   
 
   
  BYTE hasVPXY
+
  BYTE vpxyCount
  --if ''hasVPXY'' not zero:
+
  --repeat vpxyCount
 
  BYTE index // of [[Sims 3:0x736884F1|0x736884F1 - VPXY]] reference
 
  BYTE index // of [[Sims 3:0x736884F1|0x736884F1 - VPXY]] reference
 
   
 
   
Line 59: Line 59:
 
  DWORD [[#CAS_Geom_Flags|CastShadow]]
 
  DWORD [[#CAS_Geom_Flags|CastShadow]]
 
   
 
   
  BYTE hasDiffuse
+
  BYTE diffuseCount
  --if ''hasDiffuse'' not zero:
+
  --repeat diffuseCount
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (diffuse)]] reference
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (diffuse)]] reference
  BYTE hasSpecular
+
  BYTE specularCount
  --if ''hasSpecular'' not zero:
+
  --repeat specularCount
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (specular)]] reference
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (specular)]] reference
+
  BYTE diffuse2Count
  BYTE count3
+
  --repeat(diffuse2Count)
  --repeat(count3)
+
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (diffuse)]] reference
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (diffuse)]] reference
  BYTE count4
+
  BYTE specular2Count
  --repeat(count4)
+
  --repeat(specular2Count)
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (specular)]] reference
 
  BYTE index // of [[Sims 3:0x033A1435|0x033A1435 - TXTC (specular)]] reference
  BYTE count5
+
  BYTE boneDeltaCount
  --repeat(count5)
+
  --repeat(boneDeltaCount)
 
  BYTE index // of [[Sims 3:0x0355E0A6|0x0355E0A6 - Bone Deltas]] reference
 
  BYTE index // of [[Sims 3:0x0355E0A6|0x0355E0A6 - Bone Deltas]] reference
 
   
 
   
  7STRING // UnicodeBE
+
  7STRING // UnicodeBE shoe material
 
   
 
   
 
  // Resource reference table in I<sub>64</sub>GT format (not TGI<sub>64</sub>)
 
  // Resource reference table in I<sub>64</sub>GT format (not TGI<sub>64</sub>)

Latest revision as of 16:49, 6 July 2013

Modding Reference by Category

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

CAS Part Data - CASP
TypeID:0x034AEECB
Game Version:The Sims 3




Contents

[edit] Overview

CAS Part Data: clothes, hair, accessories

(Original information by Karybdis, Additions and Clarifications by Delphy, Additions by LBeefus)

These use a similar format to 0x025ED6F4.

[edit] Format

DWORD version	// 0x12 is current?
DWORD offset	// to resource reference table from end of header (ie offset + 8)

//Presets
DWORD presetCount
--repeat(presetCount)
	DWORD length
	char16[length]	// Embedded XML Preset (Unicode (LE))
	DWORD

7STRING		// UnicodeBE

FLOAT sortPriority	// CAS sorts on this value, from largest to smallest
BYTE
DWORD clothingType (see below)
DWORD Type flags
DWORD Age, Species, Gender and Handedness
DWORD Clothing category

BYTE index // of 0x034AEECB - CAS Part Data (naked) reference 
BYTE index // of 0x034AEECB - CAS Part Data (parent) reference
BYTE index // of 0x062C8204 - Blend Info (fat) reference
BYTE index // of 0x062C8204 - Blend Info (fit) reference
BYTE index // of 0x062C8204 - Blend Info (thin) reference
BYTE index // of 0x062C8204 - Blend Info (special) reference

DWORD

BYTE vpxyCount
--repeat vpxyCount
	BYTE index // of 0x736884F1 - VPXY reference

BYTE count2 //LOD Info count
--repeat(count2)
	//CAS LOD Info
	BYTE Level
	DWORD DestTexture
	BYTE assetCount
	--repeat(assetCount)  
		//CAS LOD Asset
		DWORD Sorting
		DWORD SpecLevel
		DWORD CastShadow

BYTE diffuseCount
--repeat diffuseCount
	BYTE index // of 0x033A1435 - TXTC (diffuse) reference
BYTE specularCount
--repeat specularCount
	BYTE index // of 0x033A1435 - TXTC (specular) reference
BYTE diffuse2Count
--repeat(diffuse2Count)
	BYTE index // of 0x033A1435 - TXTC (diffuse) reference
BYTE specular2Count
--repeat(specular2Count)
	BYTE index // of 0x033A1435 - TXTC (specular) reference
BYTE boneDeltaCount
--repeat(boneDeltaCount)
	BYTE index // of 0x0355E0A6 - Bone Deltas reference

7STRING	// UnicodeBE shoe material

// Resource reference table in I64GT format (not TGI64)
BYTE count6
--repeat(count6)
	QWORD instance
	DWORD group
	DWORD type

[edit] Clothing Types

The Clothing Type is usually one of the following:

Clothing Type ID Description
0x00000000 None
0x00000001 Hair
0x00000002 Scalp
0x00000003 Face
0x00000004 Body
0x00000005 Top
0x00000006 Bottom
0x00000007 Shoes
0x00000008 FirstAccessory
0x00000009 Necklace
0x0000000A NoseRing
0x0000000B Earrings
0x0000000C Glasses (F)
0x0000000D Bracelets
0x0000000E Ring (Lt)
0x0000000F Ring (Rt)
0x00000010 Beard
0x00000011 Lipstick
0x00000012 Eyeshadow
0x00000013 Eyeliner
0x00000014 Blush
0x00000015 Makeup
0x00000016 Eyebrow
0x00000017 EyeColor
0x00000018 Glove
0x00000019 Socks
0x0000001A Mascara
0x0000001B Moles
0x0000001C Freckles
0x0000001D Weathering
0x0000001E EarringL
0x0000001F EarringR
0x00000020 ArmBand
0x00000021 Tattoo
0x00000022 TattooTemplate
0x00000023 Dental
0x00000024 LeftGarter
0x00000025 RightGarter
0x00000026 BirthMark
0x00000027 BodyHairChestUpper
0x00000028 BodyHairChestStomach
0x00000029 BodyHairBackLower
0x0000002A BodyHairBackUpper
0x0000002B BodyHairBackFull
0x0000002C BodyHairForearms
0x0000002D BodyHairLegsCalves
0x0000002E BodyHairLegsFeet
0x0000002F PetBody
0x00000030 PetTail
0x00000031 PetEars
0x00000032 PetMane
0x00000033 PetCollar/Bridle
0x00000034 PetSaddle
0x00000035 PeltLayer
0x00000036 BasePeltLayer
0x00000037 PetHooves
0x00000038 PetHorn
0x00000039 PetBlanket
0x0000003A PetBreastCollar
0x0000003B PetBeard
0x0000003C Last

[edit] CAS Geom Flags

Flag Description
0x00000001 Mergable
0x00000002 IncludeMorphs
0x00000004 IncludeTweaks
0x00000008 IncludeTangents
0x00000010 FourBoneSkinning
0x00000020 TwoBoneSkinning
0x00000040 TwoQuatSkinning
0x00000080 OneQuatSkinning
0x00000100 SpecLevel0
0x00000200 SpecLevel1
0x00000400 SpecLevel2
0x00000800 SpecLevel3
0x00001000 SpecLevel4
0x00002000 SpecLevel5
0x00004000 Sorted
0x00008000 ShadowCaster
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