Difference between revisions of "Sims 3:0x319E4F1D"
(→Format) |
|||
Line 27: | Line 27: | ||
BYTE[4] [[Sims 3:0x319E4F1D#Unknown7|(unknown7)]] | BYTE[4] [[Sims 3:0x319E4F1D#Unknown7|(unknown7)]] | ||
DWORD index1 // of an OBJK ([[Sims 3:0x02DC343F|0x02DC343F]]) TGI | DWORD index1 // of an OBJK ([[Sims 3:0x02DC343F|0x02DC343F]]) TGI | ||
− | DWORD [[Sims 3:0x319E4F1D#Misc_Flags|( | + | DWORD [[Sims 3:0x319E4F1D#Misc_Flags|(ObjectTypeFlags)]] |
− | DWORD [[Sims 3:0x319E4F1D#Misc_Flags|( | + | DWORD [[Sims 3:0x319E4F1D#Misc_Flags|(WallPlacementFlags)]] |
− | DWORD [[Sims 3:0x319E4F1D#Misc_Flags|( | + | DWORD [[Sims 3:0x319E4F1D#Misc_Flags|(MovementFlags)]] |
− | DWORD | + | DWORD //NumWallCutoutTilesPerLevel |
− | DWORD | + | DWORD //NumLevels |
BYTE Count1 // wallmask entries | BYTE Count1 // wallmask entries | ||
--repetition(Count1) | --repetition(Count1) | ||
Line 90: | Line 90: | ||
| | | | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
− | ! colspan="3" | | + | ! colspan="3" | ObjectTypeFlags |
|- | |- | ||
! Flag | ! Flag | ||
! Description | ! Description | ||
|- | |- | ||
− | |0x00000002|| | + | |0x00000002|| AutomaticallyBuyAnotherAfterPlacing |
|- | |- | ||
− | | | + | |0x00000004|| HidesFloorOnPlacement |
|- | |- | ||
− | | | + | |0x00000008|| IsDoor |
|- | |- | ||
− | | | + | |0x00000010|| IsWindow |
|- | |- | ||
− | |0x00010000|| | + | |0x00000020|| IsGate |
+ | |- | ||
+ | |0x00000040|| HideWhenWallDown | ||
+ | |- | ||
+ | |0x00000080|| RabbitHole | ||
+ | |- | ||
+ | |0x00000100|| IsDiagonal | ||
+ | |- | ||
+ | |0x00000200|| ForceToFullGrid | ||
+ | |- | ||
+ | |0x00000400|| RequireFloorAboveIfOutside | ||
+ | |- | ||
+ | |0x00000800|| IsFireplace | ||
+ | |- | ||
+ | |0x00001000|| IsChimney | ||
+ | |- | ||
+ | |0x00002000|| IsFlora | ||
+ | |- | ||
+ | |0x00004000|| IsColumn | ||
+ | |- | ||
+ | |0x00008000|| TakeParentAlongWhenPicked | ||
+ | |- | ||
+ | |0x00010000|| LiveDraggingEnabled | ||
+ | |- | ||
+ | |0x00020000|| AllowOnSlope | ||
+ | |- | ||
+ | |0x00040000|| LargeObject | ||
+ | |- | ||
+ | |0x00080000|| FloatsOnWater | ||
+ | |- | ||
+ | |0x00100000|| IsGarageDoor | ||
+ | |- | ||
+ | |0x00200000|| IsMailbox | ||
+ | |- | ||
+ | |0x00400000|| IgnorePatternSound | ||
+ | |- | ||
+ | |0x00800000|| IsRoadBridge | ||
+ | |- | ||
+ | |0x01000000|| AllowWallObjectOnGround | ||
+ | |- | ||
+ | |0x02000000|| HasFloorCutout | ||
+ | |- | ||
+ | |0x04000000|| BuildableShell | ||
+ | |- | ||
+ | |0x05000000|| ElevationFromCeiling | ||
+ | |- | ||
+ | |0x10000000|| CanDepressTerrain | ||
+ | |- | ||
+ | |0x20000000|| IgnorePlatformElevation | ||
+ | |- | ||
+ | |0x40000000|| CantBePlacedOnPlatform | ||
+ | |- | ||
+ | |0x80000000|| IsShellDoor | ||
|} | |} | ||
| | | | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
− | ! colspan="3" | | + | ! colspan="3" | WallPlacementFlags |
|- | |- | ||
! Flag | ! Flag | ||
! Description | ! Description | ||
|- | |- | ||
− | | | + | |0x00000001|| WallAtMinXEdge |
|- | |- | ||
− | | | + | |0x00000002|| WallAtMinZEdge |
|- | |- | ||
− | | | + | |0x00000004|| WallAtMaxXEdge |
|- | |- | ||
− | | | + | |0x00000008|| WallAtMaxZEdge |
|- | |- | ||
− | |0x00010000|| | + | |0x00000010|| WallAt01To10Diag |
+ | |- | ||
+ | |0x00000020|| WallAt00To11Diag | ||
+ | |- | ||
+ | |0x00000040|| NoWallAtMinXEdge | ||
+ | |- | ||
+ | |0x00000080|| NoWallAtMinZEdge | ||
+ | |- | ||
+ | |0x00000100|| NoWallAtMaxXEdge | ||
+ | |- | ||
+ | |0x00000200|| NoWallAtMaxZEdge | ||
+ | |- | ||
+ | |0x00000400|| NoWallAt01To10Diag | ||
+ | |- | ||
+ | |0x00000800|| NoWallAt00To11Diag | ||
+ | |- | ||
+ | |0x00001000|| FlagsApplyToFences | ||
+ | |- | ||
+ | |0x00002000|| ProhibitsFenceArch | ||
+ | |- | ||
+ | |0x00004000|| OnWall | ||
+ | |- | ||
+ | |0x00008000|| IntersectsObjectsOffWall | ||
+ | |- | ||
+ | |0x00010000|| ApplyCutoutDiagonalShift | ||
+ | |- | ||
+ | |0x00020000|| CanBeMovedUpDownOnWall | ||
+ | |- | ||
+ | |0x00040000|| CannotBeMovedUpDownOnWall | ||
|} | |} | ||
− | |||
− | |||
− | |||
| | | | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
− | ! colspan="3" | | + | ! colspan="3" | MovementFlags |
|- | |- | ||
! Flag | ! Flag | ||
! Description | ! Description | ||
|- | |- | ||
− | | | + | |0x00000002|| StaysAfterEvict |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | + | |0x00000004|| HandToolCannotMoveIt | |
− | + | ||
|- | |- | ||
− | | | + | |0x00000008|| HandToolCannotDeleteIt |
|- | |- | ||
− | | | + | |0x00000010|| HandToolCannotDuplicateIt |
|- | |- | ||
− | | | + | |0x00000020|| HandToolCanDuplicateWhenHiddenInCatalog |
+ | |- | ||
+ | |0x00000040|| HandToolSkipRecursivePickupTests | ||
+ | |- | ||
+ | |0x00000080|| GhostsCannotFloatThrough | ||
+ | |} | ||
|} | |} | ||
Revision as of 17:39, 30 October 2010
Modding Reference by Category | |
---|---|
Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference |
Object Definition - OBJD | ||
---|---|---|
TypeID: | 0x319E4F1D | |
Game Version: | The Sims 3 |
Contents |
Overview
Defines the basic parameters of an object such as price, and buy/build mode sort flags, and links to additional resources.
Format
"indexn" fields are where the given position in the TGI Block List refers to the resource mentioned in the comment.
DWORD Version DWORD TGI_offset DWORD TGI_size --insert Material List section for Object --if Version >= 0x16 7BITSTR // some string --insert Common section DWORD BYTE DWORD FireType // 0=DoesNotBurn 1=Chars 2=AshPile // (however: see EP2 abandonedBoxCar IID 0x00989D3C and several others) BYTE IsStealable // boolean BYTE IsReposessable // boolean BYTE[4] (unknown7) DWORD index1 // of an OBJK (0x02DC343F) TGI DWORD (ObjectTypeFlags) DWORD (WallPlacementFlags) DWORD (MovementFlags) DWORD //NumWallCutoutTilesPerLevel DWORD //NumLevels BYTE Count1 // wallmask entries --repetition(Count1) FLOAT[4] DWORD DWORD // index to Wall mask DDS TGI BYTE // ScriptEnabled (boolean) DWORD index2 // to Diagonal OBJD TGI, if it exists, otherwise to a zero TGI entry DWORD hash // AmbienceType hashed DWORD RoomFlags DWORD FunctionCategoryFlags QWORD SubCategoryFlags QWORD SubRoomFlags DWORD BuildCategoryFlags DWORD index3 // to CutoutTexture DDS TGI if it exists, otherwise to a zero TGI entry --if Version >= 0x17 DWORD // index to floor cutout DDS TGI DWORD // FloorCutoutLevelOffset FLOAT // FloorCutoutBoundsLength --if Version >= 0x18 DWORD hash count --repetition(hash count) DWORD //BuildableShellDisplayState name hash --if Version >= 0x19 DWORD // index to LevelBelow OBJD TGI DWORD slotPlacementFlags 7BITSTR // SurfaceType 7BITSTR // SourceMaterial DWORD // Moodlet Given DWORD // Moodlet Score DWORD // 0x06 here prevents appearance in catalog --repeat(5) DWORD // topic DWORD // rating DWORD index4 // to a fall back OBJD TGI, otherwise to a zero TGI entry // used for when this object is loaded in too early an EP --insert TGI Block List
Unknown7
Unknown7 as mentioned in s3pe is a 4 sized bytes array that previously identified as 4 bytes zero. It seems in newer version, Unknown7 doesn't always contains zero, and lately found that Unknown7[3] (Unknown7 index no. 3) is used to flag an objects to be shown in World Editor catalog as comes in The Sims 3: Ambitions and newest The Sims 3 patch, as well as Create-a-World catalog. Unknown7 might be also a reserved byte-sized variables that could be used in future version of the game.
{PLJ} Sounds like this should be:
DWORD InWorldEditable // boolean
Showing Objects In World Editor and Create-a-World Catalog
Basically all objects can be made to appear in World Editor or Create-a-World catalog. To make an object appear on those catalogs, apply this value on your desired object OBJD data:
- Set Version in CommonBlock to 0x0000000E.
- Set Unknown7[3] to 0x01
- If you want the object to show up in the World Editor catalog, set BuildCategoryFlags to 0x00001000 (Tree), 0x00002000 (Rock), or 0x00008000 (Community/Misc. Objects).
In order to make your CAW recognize your custom content, You will need to create a CC Framework like the framework for The Sims 3 games inside your CAW program folder. As soon as the CAW load the flagged custom content, it will appears in CAW catalog.
Misc Flags
These field names refer to those shown in s3pe. Please feel free to come up with better names than "Unknownnn"...
|
|
|
Catalog Flags
Room Flags
|
|
|
Category Flags
|
|
|
Build Flags
Build Flags | ||
---|---|---|
Flag | Description | |
0x00000002 | Door | |
0x00000004 | Window | |
0x00000008 | Gate | |
0x00000010 | Column | |
0x00000020 | Rabbit Hole | |
0x00000040 | Fireplace | |
0x00000040 | Chimney | |
0x00000100 | Arch | |
0x00000200 | Flower | |
0x00000400 | Shrub | |
0x00000800 | Tree | |
0x00001000 | Rug | |
0x00002000 | Rock | |
0x00004000 | ||
0x00008000 | Community/Misc. Objects |
Slot Flags
|
There's a constant, "CheckFlags = 0xc3f38", masking off up to Decorative, which implies the other flags aren't really "slot placement"... Maybe. Today.
Moodlets
The Moodlet Given defines what icon to display and the Moodlet Score the number of + signs (maximum of three).
Topic/Rating
|
|
Modding Reference by Category | |
---|---|
Sims 3 :DBPF | File Types | RCOL(Scene) | Catalog Resource | String Table | Key Table | TS3 Programmer's Reference |