Difference between revisions of "Sims 4:0xD382BF57"
From SimsWiki
ChaosMageX (Talk | contribs) (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= | + | |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 | + | DWORD Tag // 'FTPT' |
| − | DWORD | + | 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 | |
| − | + | ||
| − | + | ||
| − | + | ==PolygonHeightOverride structure== | |
| − | + | DWORD NameHash | |
| − | + | FLOAT Height | |
| − | + | ||
| − | + | ==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" | | + | ! colspan="3" | FootprintPolyFlags |
|- | |- | ||
! Flag | ! Flag | ||
| Line 73: | Line 77: | ||
|0x00000004|| IsEnabled | |0x00000004|| IsEnabled | ||
|- | |- | ||
| − | |0x00000008|| | + | |0x00000008|| Discouraged |
|- | |- | ||
| − | |0x00000010|| | + | |0x00000010|| LandingStrip |
| + | |- | ||
| + | |0x00000020|| NoRaycast | ||
| + | |- | ||
| + | |0x00000040|| PlacementSlotted | ||
| + | |- | ||
| + | |0x00000080|| Encouraged | ||
| + | |- | ||
| + | |0x00000100|| TerrainCutout | ||
|} | |} | ||
| | | | ||
| Line 82: | Line 94: | ||
| | | | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
| − | ! colspan="3" | | + | ! 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|| | + | |0x00000010|| FencePost |
|- | |- | ||
|0x00000020|| AnySurface | |0x00000020|| AnySurface | ||
Latest revision as of 20: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
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||