Difference between revisions of "Sims 3:0x02DC343F"

From SimsWiki
Jump to: navigation, search
Line 1: Line 1:
OBJK (Object Key)
+
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
 
+
<hr/>
<pre>
+
==Object Key (OBJK)==
 
+
...overview...
Code:
+
==Format==
  DWORD version
+
DWORD version // 7
  DWORD TGI offset
+
DWORD TGI_offset // see [[Sims 3:Key table]]
  DWORD TGI size
+
DWORD TGI_size   // see [[Sims 3:Key table]]
   BYTE count1
+
  --repeat count1 times
+
// Hash table - [[#Hash table|see below ]]
 +
BYTE count1
 +
--repeat count1 times
 
     DWORD hash
 
     DWORD hash
 
+
  //key entries
+
// Key entries - [[#Key entries|see below]]
  BYTE count2
+
BYTE count2
  --repeat count2 times
+
--repeat count2 times
      DWORD length
+
    DWORD length
      STRING[length]
+
    STRING[length]
      BYTE control code for data
+
    BYTE type // [[#Key entries|see below]]
      {Data}
+
    {Data}
  BYTE
+
  DWORD count3
+
BYTE
  --repeat count3 times
+
      TGI64 
+
--insert [[Sims 3:Key table|TGI Block List]]
 
+
===Hash Table===
 +
The IDs for the first repetition
 +
{| border="1"
 +
|+
 +
!Hash!!Constant
 +
|+
 +
|0xee17c6ad||kAnimationComponent
 +
|+
 +
|0x80d91e9e||kEffectComponent
 +
|+
 +
|0xc807312a||kFootprintComponent
 +
|+
 +
|0xda6c50fd||kLightingComponent
 +
|+
 +
|0x461922c8||kLocationComponent
 +
|+
 +
|0x6693c8b3||kLotObjectComponent
 +
|+
 +
|0x2954e734||kModelComponent
 +
|+
 +
|0x1a8feb14||kPhysicsComponent
 +
|+
 +
|0x3ae9a8e7||kSacsComponent
 +
|+
 +
|0x23177498||kScriptComponent
 +
|+
 +
|0x22706efa||kSimComponent
 +
|+
 +
|0x2ef1e401||kSlotComponent
 +
|+
 +
|0x61bd317c||kSteeringComponent
 +
|+
 +
|0x54cb7ebb||kTransformComponent
 +
|+
 +
|0xc602cd31||kTreeComponent
 +
|+
 +
|0x50b3d17c||kVisualStateComponent
 +
|}
 +
===Key Entries===
 
String entries in the second repetition I've seen are:
 
String entries in the second repetition I've seen are:
scriptClass
+
{| border="1"
footprintKey
+
|+
modelKey
+
|scriptClass
steeringInstance
+
|footprintKey
simOutfitKey
+
|modelKey
 +
|steeringInstance
 +
|simOutfitKey
 +
|}
  
the control codes I've seen are:
+
The ''type'' and ''{data}'' known combinations are:
(00): DWORD(length) STRING[length]
+
{| border="1"
(01): DWORD index to TGI64 at end
+
|+
(02): DWORD index to TGI64 at end
+
|00||DWORD(length) STRING[length]
(03): DWORD(length) STRING[length]
+
|+
 +
|01||DWORD index to TGI64 at end
 +
|+
 +
|02||DWORD index to TGI64 at end
 +
|+
 +
|03||DWORD(length) STRING[length]
 +
|+
 +
|}
  
  
 
------------------------------
 
------------------------------
the IDs for the first repetition
 
 
    kAnimationComponent = 0xee17c6ad,
 
    kEffectComponent = 0x80d91e9e,
 
    kFootprintComponent = 0xc807312a,
 
    kLightingComponent = 0xda6c50fd,
 
    kLocationComponent = 0x461922c8,
 
    kLotObjectComponent = 0x6693c8b3,
 
    kModelComponent = 0x2954e734,
 
    kPhysicsComponent = 0x1a8feb14,
 
    kSacsComponent = 0x3ae9a8e7,
 
    kScriptComponent = 0x23177498,
 
    kSimComponent = 0x22706efa,
 
    kSlotComponent = 0x2ef1e401,
 
    kSteeringComponent = 0x61bd317c,
 
    kTransformComponent = 0x54cb7ebb,
 
    kTreeComponent = 0xc602cd31,
 
    kVisualStateComponent = 0x50b3d17c
 
 
</pre>
 
 
 
(analysis by atavera, I think)
 
(analysis by atavera, I think)
 +
<hr/>
 +
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]

Revision as of 13:36, 13 June 2009

Sims 3:Main Page -> Sims 3:PackedFileTypes


Contents

Object Key (OBJK)

...overview...

Format

DWORD version // 7
DWORD TGI_offset // see Sims 3:Key table
DWORD TGI_size   // see Sims 3:Key table

// Hash table - see below 
BYTE count1
--repeat count1 times
   DWORD hash

// Key entries - see below
BYTE count2
--repeat count2 times
   DWORD length
   STRING[length]
   BYTE type // see below
   {Data}

BYTE

--insert TGI Block List

Hash Table

The IDs for the first repetition

Hash Constant
0xee17c6ad kAnimationComponent
0x80d91e9e kEffectComponent
0xc807312a kFootprintComponent
0xda6c50fd kLightingComponent
0x461922c8 kLocationComponent
0x6693c8b3 kLotObjectComponent
0x2954e734 kModelComponent
0x1a8feb14 kPhysicsComponent
0x3ae9a8e7 kSacsComponent
0x23177498 kScriptComponent
0x22706efa kSimComponent
0x2ef1e401 kSlotComponent
0x61bd317c kSteeringComponent
0x54cb7ebb kTransformComponent
0xc602cd31 kTreeComponent
0x50b3d17c kVisualStateComponent

Key Entries

String entries in the second repetition I've seen are:

scriptClass footprintKey modelKey steeringInstance simOutfitKey

The type and {data} known combinations are:

00 DWORD(length) STRING[length]
01 DWORD index to TGI64 at end
02 DWORD index to TGI64 at end
03 DWORD(length) STRING[length]



(analysis by atavera, I think)


Sims 3:Main Page -> Sims 3:PackedFileTypes

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox