Sims 3:0x02DC343F

From SimsWiki
Revision as of 00:39, 22 August 2009 by Tiger (Talk | contribs)

Jump to: navigation, search

Sims 3:Main Page -> Sims 3:PackedFileTypes


Contents

Object Key (OBJK)

Identifies what kind of object this is and what its behaviour is.

Format

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

// Components - see below 
BYTE count1
--repeat count1 times
   DWORD Component ID

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

BYTE

--insert TGI Block List

Components

The IDs are derived from an FNV32 hash of the Component name. Each component defines an aspect of the object, as far as what data is used.

ID Component Comments
0x1A8fEB14 Physics
0x22706EFA Sim
0x23177498 Script
0x2954E734 Model
0x2EF1E401 Slot
0x3AE9A8E7 Sacs
0x461922C8 Location
0x50B3D17C VisualState
0x54CB7EBB Transform
0x61BD317C Steering
0x6693C8B3 LotObject
0x80D91E9E Effect
0xC602CD31 Tree
0xC807312A Footprint
0xDA6C50FD Lighting
0xEE17C6AD Animation

Key Entries

String entries in the second repetition relate to "ResourceComponentTypes":

Key Data type Comment
allowObjectHiding UInt32 0 = no, 1 = yes, default yes

(Only required for use in the negative)

footprintKey ResourceKey Only used if modelKey is not a VPXY
modelKey AssetResourceName

ResourceKey

If the reference is a VPXY

If the reference is something else (SPT data)

scriptClass String Class name to instantiate to simulate this object
simOutfitKey ResourceKey Required when the Sim component is included

Points to a sim outfit (XML or binary)

steeringInstance String Required if Steering component included

Can be Car, Bicycle or Sim

ComponentDataType

type represents to a "ComponentDataType", which is defined as the following basic data type:

type ComponentDataTypes data
00 String DWORD(length) STRING[length]
01 ResourceKey DWORD index to TGI64 at end
02 AssetResourceName DWORD index to TGI64 at end
03 SteeringInstance DWORD(length) STRING[length]
04 UInt32 DWORD

(analysis by atavera, I think)


Sims 3:Main Page -> Sims 3:PackedFileTypes

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox