Difference between revisions of "Sims 4:0xD382BF57"

From SimsWiki
Jump to: navigation, search
(Copy/Paste FTPT format for TS4 from TS3, as it appears unchanged since TS3 at this time)
 
(Update with info from binary template)
 
Line 2: Line 2:
 
{{TS4Resource
 
{{TS4Resource
 
|name=Model Footprint - FTPT
 
|name=Model Footprint - FTPT
|typeid= 0x015A1849
+
|typeid= 0xD382BF57
 
|expansion=The Sims 4
 
|expansion=The Sims 4
 
}}
 
}}
Line 9: Line 9:
 
==Overview==
 
==Overview==
 
This is an [[Sims 4:RCOL|RCOL]] chunk.
 
This is an [[Sims 4:RCOL|RCOL]] chunk.
 +
 +
Complete format provided by SimGuruModSquad on the EA official forums
  
 
==Format==
 
==Format==
  DWORD - FTPT
+
  DWORD Tag                      // 'FTPT'
  DWORD - Version
+
  DWORD Version                 // 0x000C / 12
+
  TGI  TemplateKey:            // Key of template used, in ITG (LONG Instance, DWORD type, DWORD group) format
BYTE - EntryCount
+
    LONG Instance
-Entries // Footprint/shape related areas
+
    DWORD Type
DWORD Name (Hash 32)
+
    DWORD Group
BYTE // Priority
+
DWORD FootprintTypeFlags
+
   
+
BYTE - points2
+
-point2 entries // Closed polygon
+
FLOAT X
+
FLOAT Y
+
+
DWORD // AllowIntersectionFlags
+
DWORD // SurfaceTypeFlags
+
DWORD // SurfaceAttributeFlags
+
BYTE  // Level Offset
+
if(Version >= 7) FLOAT //Elevation Offset
+
FLOAT X // Bounding box lower X
+
FLOAT Y // Bounding box lower Y
+
FLOAT X // Bounding box upper X
+
FLOAT Y // Bounding box upper Y
+
 
   
 
   
  BYTE - EntryCount2
+
  --- if TemplateKey Type not 0:        // if TemplateKey type is not zero, data from the template is used
-Entries2 // Slot related areas
+
    BYTE minHeightOverrideCount        // the minimum and maximum heights here will override the template
DWORD Name (Hash 32)
+
    PolygonHeightOverride minHeightOverrides[minHeightOverrideCount]  // see PolygonHeightOverride structure below
BYTE // Priority
+
    BYTE maxHeightOverrideCount
DWORD FootprintTypeFlags
+
    PolygonHeightOverride maxHeightOverrides[maxHeightOverrideCount]  // see PolygonHeightOverride structure below
 
   
 
   
BYTE - points2
+
--- if TemplateKey Type is 0:
-point2 entries // Closed polygon
+
    BYTE FootprintAreaCount
FLOAT X
+
    Area FootprintAreas[FootprintAreaCount] // see Area structure below
FLOAT Y
+
    BYTE SlotAreaCount
   
+
    Area SlotAreas[SlotAreaCount]          // see Area structure below
DWORD // AllowIntersectionFlags
+
    FLOAT MaximumHeight
DWORD // SurfaceTypeFlags  
+
    FLOAT MinimumHeight
DWORD // SurfaceAttributeFlags
+
 
BYTE  // Level Offset
+
 
if(Version >= 7) FLOAT //Elevation Offset
+
==PolygonHeightOverride structure==
FLOAT X // Bounding box lower X
+
DWORD NameHash
FLOAT Y // Bounding box lower Y
+
FLOAT Height
FLOAT X // Bounding box upper X
+
 
FLOAT Y // Bounding box upper Y
+
==Area structure==
 +
DWORD NameHash
 +
BYTE  Priority
 +
DWORD AreaTypeFlags  // FootprintPolyFlags - see below
 +
BYTE  PointsCount
 +
-- PointsCount times:  // list of polygon points
 +
    FLOAT X
 +
    FLOAT Z
 +
  DWORD IntersectionObjectType // IntersectionFlags - see below - type of object
 +
DWORD AllowIntersectionTypes // IntersectionFlags - objects for which intersection is ignored
 +
DWORD SurfaceTypeFlags      // SurfaceTypeFlags - see below
 +
DWORD SurfaceAttributeFlags  // SurfaceAttributeFlags - see below
 +
BYTE  LevelOffset            // Deprecated
 +
-- Bounding Box 3D:
 +
FLOAT min_x
 +
FLOAT min_z
 +
FLOAT max_x
 +
FLOAT max_z
 +
FLOAT min_y
 +
FLOAT max_y
  
 
==Flags==
 
==Flags==
Line 62: Line 66:
 
|
 
|
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
! colspan="3" | FootprintTypeFlags
+
! colspan="3" | FootprintPolyFlags
 
|-
 
|-
 
! Flag  
 
! Flag  
Line 73: Line 77:
 
|0x00000004|| IsEnabled
 
|0x00000004|| IsEnabled
 
|-
 
|-
|0x00000008|| IsDiscouraged
+
|0x00000008|| Discouraged
 
|-
 
|-
|0x00000010|| ForShell
+
|0x00000010|| LandingStrip
 +
|-
 +
|0x00000020|| NoRaycast
 +
|-
 +
|0x00000040|| PlacementSlotted
 +
|-
 +
|0x00000080|| Encouraged
 +
|-
 +
|0x00000100|| TerrainCutout
 
|}
 
|}
 
|
 
|
Line 82: Line 94:
 
|
 
|
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
! colspan="3" | AllowIntersectionFlags
+
! colspan="3" | IntersectionFlags
 
|-
 
|-
 
! Flag  
 
! Flag  
 
! Description
 
! Description
 +
|-
 +
|0x00000000|| None
 
|-
 
|-
 
|0x00000002|| Walls
 
|0x00000002|| Walls
Line 100: Line 114:
 
|-
 
|-
 
|0x00000080|| ObjectsOfSameType
 
|0x00000080|| ObjectsOfSameType
 +
|-
 +
|0x00000100|| Columns
 +
|-
 +
|0x00000200|| ReservedSpace
 +
|-
 +
|0x00000400|| Foundations
 +
|-
 +
|0x00000800|| FenestrationNode
 +
|-
 +
|0x00001000|| Trim
 +
 
|}
 
|}
 
|
 
|
Line 116: Line 141:
 
|0x00000008|| Pond
 
|0x00000008|| Pond
 
|-
 
|-
|0x00000010|| Fence
+
|0x00000010|| FencePost
 
|-
 
|-
 
|0x00000020|| AnySurface
 
|0x00000020|| AnySurface

Latest revision as of 14:37, 29 August 2015

Modding Reference by Category

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

Model Footprint - FTPT
TypeID:0xD382BF57
Game Version:The Sims 4



Contents

[edit] Overview

This is an RCOL chunk.

Complete format provided by SimGuruModSquad on the EA official forums

[edit] Format

DWORD Tag                      // 'FTPT'
DWORD Version                  // 0x000C / 12
TGI   TemplateKey:             // Key of template used, in ITG (LONG Instance, DWORD type, DWORD group) format
   LONG Instance
   DWORD Type
   DWORD Group

--- if TemplateKey Type not 0:        // if TemplateKey type is not zero, data from the template is used
   BYTE minHeightOverrideCount        // the minimum and maximum heights here will override the template
   PolygonHeightOverride minHeightOverrides[minHeightOverrideCount]  // see PolygonHeightOverride structure below
   BYTE maxHeightOverrideCount
   PolygonHeightOverride maxHeightOverrides[maxHeightOverrideCount]  // see PolygonHeightOverride structure below

--- if TemplateKey Type is 0:
   BYTE FootprintAreaCount
   Area FootprintAreas[FootprintAreaCount] // see Area structure below
   BYTE SlotAreaCount
   Area SlotAreas[SlotAreaCount]           // see Area structure below
   FLOAT MaximumHeight
   FLOAT MinimumHeight


[edit] PolygonHeightOverride structure

DWORD NameHash
FLOAT Height

[edit] Area structure

DWORD NameHash
BYTE  Priority
DWORD AreaTypeFlags  // FootprintPolyFlags - see below
BYTE  PointsCount
-- PointsCount times:  // list of polygon points
   FLOAT X
   FLOAT Z
DWORD IntersectionObjectType // IntersectionFlags - see below - type of object
DWORD AllowIntersectionTypes // IntersectionFlags - objects for which intersection is ignored
DWORD SurfaceTypeFlags       // SurfaceTypeFlags - see below
DWORD SurfaceAttributeFlags  // SurfaceAttributeFlags - see below
BYTE  LevelOffset            // Deprecated
-- Bounding Box 3D:
FLOAT min_x
FLOAT min_z
FLOAT max_x
FLOAT max_z
FLOAT min_y
FLOAT max_y

[edit] Flags

FootprintPolyFlags
Flag Description
0x00000001 ForPlacement
0x00000002 ForPathing
0x00000004 IsEnabled
0x00000008 Discouraged
0x00000010 LandingStrip
0x00000020 NoRaycast
0x00000040 PlacementSlotted
0x00000080 Encouraged
0x00000100 TerrainCutout
IntersectionFlags
Flag Description
0x00000000 None
0x00000002 Walls
0x00000004 Objects
0x00000008 Sims
0x00000010 Roofs
0x00000020 Fences
0x00000040 ModularStairs
0x00000080 ObjectsOfSameType
0x00000100 Columns
0x00000200 ReservedSpace
0x00000400 Foundations
0x00000800 FenestrationNode
0x00001000 Trim
SurfaceTypeFlags
Flag Description
0x00000001 Terrain
0x00000002 Floor
0x00000004 Pool
0x00000008 Pond
0x00000010 FencePost
0x00000020 AnySurface
0x00000040 Air
0x00000080 Roof
SurfaceAttributeFlags
Flag Description
0x00000001 Inside
0x00000002 Outside
0x00000004 Slope


Modding Reference by Category

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

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox