EvilEngine/PLAT: Difference between revisions

no edit summary
Battlepedia>Seil
No edit summary
 
(20 intermediate revisions by 6 users not shown)
Line 1:
<onlyinclude>
{{AssetInfobox
{{#vardefine:typeid|PLAT}}<nowiki/>
|subtitle=Platform
{{#vardefine:name|Platform}}<nowiki/>
|type=[[Placeable]]
{{#vardefine:type|[[Entity]]}}<nowiki/>
|objectid=0x06
{{#vardefine:basetype|0x06}}<nowiki/>
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer}}
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zPlatform.h zPlatform.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}
 
This asset usually defines an entry for a moving object.
 
==Format: Night of 100 Frights==
PLAT are [[PlaceableEvilEngine/Assets#Entity AssetAssets|placeableentity assets]], so they start with their 0x540x50 byte header, then are followed by:
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x50 || byte || '''type''' || This is always the same as the [[#Types (0x09)|Type at 0x09]] for every type except Platform, which can be one of the following subtypes:
* 0 - Extend/Retract
* 1 - Orbit
* 2 - Spline
* 3 - Move Point
|-
| 0x51 || byte || '''pad''' || ''null'' (Padding)
|-
| 0x52 || ushort || '''flags''' ||
|-
! colspan="4" | Extend/Retract only
|-
| 0x54 || int || '''nodata''' || ''null''
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Orbit only
|-
| 0x54 || int || '''nodata''' || ''null''
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Spline only
|-
| 0x54 || int || '''nodata''' || ''null''
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Move Point only
|-
| 0x54 || int || '''nodata''' || ''null''
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Mechanism only
|-
| 0x54 || int || '''nodata''' || ''null''
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Pendulum only
|-
| 0x54 || int || '''nodata''' || ''null''
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Conveyor Belt only
|-
| 0x54 || float || '''speed''' ||
|-
| 0x58 || byte[0x20] || - || ''null'' (Padding)
|-
! colspan="4" | Falling Platform only
|-
| 0x54 || float || '''speed''' ||
|-
| 0x58 || [[AssetID]] || '''bustModelID''' ||
|-
| 0x5C || byte[0x1C] || - || ''null'' (Padding)
|-
! colspan="4" | FR only
|-
| 0x54 || float || '''fspeed''' ||
|-
| 0x58 || float || '''rspeed''' ||
|-
| 0x5C || float || '''ret_delay''' ||
|-
| 0x60 || float || '''post_ret_delay''' ||
|-
| 0x64 || byte[0x14] || - || ''null'' (Padding)
|-
! colspan="4" | Breakaway Platform only
|-
| 0x54 || float || '''ba_delay''' ||
|-
| 0x58 || [[AssetID]] || '''bustModelID''' ||
|-
| 0x5C || float || '''reset_delay''' ||
|-
| 0x60 || byte[0x18] || - || ''null'' (Padding)
|-
! colspan="4" | Springboard only
|-
| 0x54 || float[3] || '''jmph''' ||
|-
| 0x60 || [[AssetID]][3] || '''animID''' ||
|-
| 0x6C || [[Vector3]] || '''jmpdir''' ||
|-
! colspan="4" | Teeter-Totter only
|-
| 0x54 || float || '''itilt''' ||
|-
| 0x58 || float || '''maxtilt''' ||
|-
| 0x5C || float || '''invmass''' ||
|-
| 0x60 || byte[0x18] || - || ''null'' (Padding)
|-
! colspan="4" |
|-
| 0x78 || [[Motion]] || - ||
|-
! colspan="4" | Events
|-
| 0xA8 || Events[numberOfEvents] || [[EvilEngine/Events|'''Events''']] ||
|}
 
 
==Format: Battle For Bikini Bottom==
PLAT are [[EvilEngine/Assets#Entity Assets|entity assets]], so they start with their 0x54 byte header, then are followed by:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x54 || byte || '''Subtypetype''' -|| This is always the same as the [[#Types (0x09)|Type at 0x09]] for every type except Platform, which can be one of the following subtypes:
* 0 - Extend/Retract
* 1 - Orbit
* 2 - Spline
* 3 - Move Point
* 13 - Fully Manipulable
|-
| 0x55 || byte || Unknown'''pad''' -|| Padding (always 0)
|-
| 0x56 || ushort || '''flags''' ||
*1 - Shake - Shakes when player mounts/dismounts
*4 - Solid
|-
! colspan="4" | Extend/Retract only
|-
| 0x58 || int || '''nodata''' || ''null''
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Orbit only
|-
| 0x58 || int || '''nodata''' || ''null''
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Spline only
|-
| 0x58 || int || '''nodata''' || ''null''
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Move Point only
|-
| 0x58 || int || '''nodata''' ||
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Mechanism only
|-
| 0x58 || int || '''nodata''' || ''null''
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Pendulum only
|-
| 0x58 || int || '''nodata''' || ''null''
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Conveyor Belt only
|-
| 0x58 || float || '''speed''' || The player slides along the platform's X axis at this speed (in units per second) when standing on top of it
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Falling Platform only
|-
| 0x58 || float || '''speed''' ||
|-
| 0x5C || [[AssetID]] || '''bustModelID''' || [[EvilEngine/MODL|Model]] ID
|-
| 0x60 || byte[0x30] || - || ''null'' (Padding)
|-
! colspan="4" | FR only
|-
| 0x58 || float || '''fspeed''' ||
|-
| 0x5C || float || '''rspeed''' ||
|-
| 0x60 || float || '''ret_delay''' ||
|-
| 0x64 || float || '''post_ret_delay''' ||
|-
| 0x68 || byte[0x28] || - || ''null'' (Padding)
|-
! colspan="4" | Breakaway Platform only
|-
| 0x58 || float || '''ba_delay''' || Time in seconds to fall down after player stands on it
|-
| 0x5C || [[AssetID]] || '''bustModelID''' || [[EvilEngine/MODL|Model]] ID - Always 0 or 0xCE7F8131 (hash of "--Choose One--")
|-
| 0x60 || float || '''reset_delay''' || Time in seconds after falling down to reset back to normal position
|-
| 0x64 || uint || '''breakflags''' ||
* 1 - Allow Sneak - Won't break if player is sneaking
|-
| 0x68 || byte[0x28] || - || ''null'' (Padding)
|-
! colspan="4" | Springboard only
|-
| 0x58 || float[3] || '''jmph''' || Jump height array, unknown why it's an array. The game seems to pick the highest of the 3 heights in this array
|-
| 0x64 || float || '''jmpbounce''' || Bounce height when using the Bubble Bounce (SpongeBob only)
|-
| 0x68 || [[AssetID]][3] || '''animID''' || Bounce animations?
|-
| 0x74 || [[Vector3]] || '''jmpdir''' || Bounce direction (unit vector)
|-
| 0x80 || uint || '''springflags''' ||
*1 - Lock view (look down)
*2 - ?
*4 - Lock movement (doesn't let you move)
|-
| 0x84 || byte[0xC] || - || ''null'' (Padding)
|-
! colspan="4" | Teeter-Totter only
|-
| 0x58 || float || '''itilt''' || Initial tilt, in radians
|-
| 0x5C || float || '''maxtilt''' || In radians
|-
| 0x60 || float || '''invmass''' || Determines tilt speed
|-
| 0x64 || byte[0x2C] || - || ''null'' (Padding)
|-
! colspan="4" | Paddle only
|-
| 0x58 || int || '''startOrient''' || Array index of Orients to start at (zero-indexed). Range is 0 ... Orient Count - 1.
|-
| 0x5C || int || '''countOrient''' || Number of rotations the paddle can be in (up to 6).
|-
| 0x60 || float || '''orientLoop''' || Max rotation? (In degrees)
|-
| 0x64 || float[6] || '''orient''' || Array of yaw rotations (in degrees) for the paddle (up to 6).
|-
| 0x7C || uint || '''paddleFlags''' ||
|-
| 0x80 || float || '''rotateSpeed''' ||
|-
| 0x84 || float || '''accelTime''' ||
|-
| 0x88 || float || '''decelTime''' ||
|-
| 0x8C || float || '''hubRadius''' || collision radius?
|-
! colspan="4" | Fully Manipulable only
|-
| 0x58 || int || '''nothingyet''' || ''null''
|-
| 0x5C || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" |
|-
| 0x90 || [[Motion]] || - ||
|-
! colspan="4" | Events
|-
| 0xC0 || Event[numberOfEvents] || [[EvilEngine/Events|'''Events''']] ||
|}
 
==Format: The Spongebob Squarepants Movie==
PLAT are [[EvilEngine/Assets#Entity Assets|entity assets]], so they start with their 0x50 byte header, then are followed by:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x50 || byte || '''type''' || This is always the same as the [[#Types (0x09)|Type at 0x09]] for every type except Platform, which can be one of the following subtypes:
* 0 - Extend/Retract
* 1 - Orbit
* 2 - Spline
* 3 - Move Point
* 13 - Fully Manipulable
|-
| 0x51 || byte || '''pad''' || ''null'' (Padding)
|-
| 0x52 || short || '''flags''' || Collision type
*0, 1, 2, 3, 8, 9 - Nonsolid
*4, 6 - Normal collision
*5, 7 - Bouncy collision
|-
! colspan="4" | Extend/Retract only
|-
| 0x54 || int || '''nodata''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Orbit only
|-
| 0x54 || int || '''nodata''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Spline only
|-
| 0x54 || int || '''nodata''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Move Point only
|-
| 0x54 || int || '''nodata''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Mechanism only
|-
| 0x54 || int || '''nodata''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Pendulum only
|-
| 0x54 || int || '''nodata''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Conveyor Belt only
|-
| 0x54 || float || '''speed''' ||
|-
| 0x58 || byte[0x34] || - || ''null'' (Padding)
|-
! colspan="4" | Falling Platform only
|-
| 0x54 || float || '''speed''' ||
|-
| 0x58 || [[AssetID]] || '''bustModelID''' ||
|-
| 0x5C || byte[0x30] || - || ''null'' (Padding)
|-
! colspan="4" | FR only
|-
| 0x54 || float || '''fspeed''' ||
|-
| 0x58 || float || '''rspeed''' ||
|-
| 0x5C || float || '''ret_delay''' ||
|-
| 0x60 || float || '''post_ret_delay''' ||
|-
| 0x64 || byte[0x28] || - || ''null'' (Padding)
|-
! colspan="4" | Breakaway Platform only
|-
| 0x54 || float || '''warningTime''' || Time in seconds to fall down after player stands on it
|-
| 0x58 || float || '''collapseIdleTime''' || Time in seconds after falling down to reset back to normal position
|-
| 0x5C || uint || '''breakflags''' ||
|-
| 0x60 || float || '''collisionOffTime''' ||
|-
| 0x64 || byte[0x28] || - || ''null'' (Padding)
|-
! colspan="4" | Springboard only
|-
| 0x54 || float[3] || '''jmph''' || Jump height array, unknown why it's an array. The game seems to pick the highest of the 3 heights in this array
| 0x56 || short || '''Collision type''' - 0, 1, 4, or 5
|-
| 0x60 || float || '''jmpbounce''' || Bounce height when using the Bubble Bounce (SpongeBob only)
| 0x58 || float/int ||
* Platform - '''Unknown''' - always 0
* Mechanism - '''Unknown''' - always 0
* Conveyer Belt - '''Speed''' (float)
* Breakaway Platform - '''Break Delay''' (float) - Time in seconds to fall down after player stands on it
* Springboard - '''Bounce Height''' (float)
* Teeter-Totter - '''Unknown''' (float) - in radians
* Paddle - '''Turn Offset''' (int) - How many turns in each direction the paddle can do from the starting offset. Range: 0 to 4 (2 is in the middle)
** 0 = 4 counter-clockwise, 0 clockwise
** 1 = 3 counter-clockwise, 1 clockwise
** 2 = 2 counter-clockwise, 2 clockwise
** 3 = 1 counter-clockwise, 3 clockwise
** 4 = 0 counter-clockwise, 4 clockwise
|-
| 0x64 || [[AssetID]][3] || '''animID''' || Bounce animations?
| 0x5C || float || Teeter Rotation Angle
|-
| 0x70 || [[Vector3]] || '''jmpdir''' || Bounce direction (unit vector)
| 0x60 || float || Teeter Rotation Speed
|-
| 0x640x7C || floatuint || Unknown'''springflags''' ||
|-
| 0x680x80 || byte[[Asset ID]0xC] || [[ANIM]]- || ''null'' (Padding)
|-
! colspan="4" | Teeter-Totter only
| 0x6C || [[Asset ID]] || [[ANIM]]
|-
| 0x700x54 || float || Unknown'''itilt''' || Initial tilt, in radians
|-
| 0x740x58 || float || Launch'''maxtilt''' Direction|| In Xradians
|-
| 0x780x5C || float || Launch'''invmass''' Direction|| Determines tilt Yspeed
|-
| 0x7C0x60 || floatbyte[0x28] || Launch- Direction|| ''null'' Z(Padding)
|-
! colspan="4" | Paddle only
| 0x80 || int || Movement lock mode
|-
| 0x54 || int || '''startOrient''' || Array index of Orients to start at (zero-indexed). Range is 0 ... Orient Count - 1.
| 0x84 || float || Unknown
|-
| 0x58 || int || '''countOrient''' || Number of rotations the paddle can be in (up to 6).
| 0x88 || float || Unknown
|-
| 0x8C0x5C || float || Unknown'''orientLoop''' || Max rotation? (In degrees)
|-
| 0x60 || float[6] || '''orient''' || Array of yaw rotations (in degrees) for the paddle (up to 6).
| 0x90 || byte[8] || Unknown
|-
| 0x78 || uint || '''paddleFlags''' ||
| 0x98 || float || Movement Translation Distance
|-
| 0x9C0x7C || float || Movement'''rotateSpeed''' Translation Time||
|-
| 0xA00x80 || float || Movement'''accelTime''' Translation Unknown||
|-
| 0xA40x84 || float || Movement'''decelTime''' Translation Unknown||
|-
| 0xA80x88 || float || Movement'''hubRadius''' Rotation|| collision Degreesradius?
|-
! colspan="4" | Fully Manipulable only
| 0xAC || float || Movement Rotation Time
|-
| 0xB00x54 || floatint || Movement'''nothingyet''' Rotation|| Unknown''null''
|-
| 0xB40x58 || floatbyte[0x34] || Movement- Rotation|| ''null'' Unknown(Padding)
|-
! colspan="4" |
| 0xB8 || float || Movement End Wait Time
|-
| 0xBC0x8C || float[[Motion]] || Movement- Start Wait Time||
|-
! colspan="34" | Events
|-
| 0xC00xC8 || Event[numberOfEvents] || [[EvilEngine/Events|'''[[Events]]''']] ||
|}
 
===Types (0x09)===
* 0 - Platform
* 4 - Mechanism
* 5 - Pendulum
* 6 - Conveyor Belt
* 7 - Falling Platform
* 8 - FR? (Forward/Return?)
* 9 - Breakaway Platform
* 10 - Springboard
* 11 - Teeter-Totter
* 12 - Paddle '''(Not present in Scooby)'''
 
{{Assets}}
=== Events ===
{{AutoGameNavs}}
 
[[Category:Asset]]
2,079

edits