EvilEngine/ENV: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
Battlepedia>Igorseabra4
(Created page with "==ENV (Environment)== ===Format=== int32 assetID int8 typeID // always 0x05 int8 numEvents int16 unknown int32 JSP_ID int32 CAM_ID int32[3] unknow...")
 
m (Seil moved page ENV to EvilEngine/ENV)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<onlyinclude>
==ENV (Environment)==
{{#vardefine:typeid|ENV}}<nowiki/>
{{#vardefine:name|Environment}}<nowiki/>
{{#vardefine:type|[[Base]]}}<nowiki/>
{{#vardefine:basetype|0x05}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Core/x/xEnv.h xEnv.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
</onlyinclude>
{{AutoAssetInfobox}}


===Format===
==Format==
Night of 100 Frights and Battle for Bikini Bottom
int32 assetID
{| class="wikitable"
int8 typeID // always 0x05
! Offset !! Type !! Variable !! Description
int8 numEvents
|-
int16 unknown
| 0x08 || [[AssetID]] ([[JSP]]) || '''bspAssetID''' ||
int32 JSP_ID
|-
int32 CAM_ID
| 0x0C || [[AssetID]] ([[CAM|Camera]]) || '''startCameraAssetID''' ||
int32[3] unknown
|-
int32 LKIT_ID // unknown
| 0x10 || int || '''climateFlags''' || 2 in Sand Mountain, 0 in other levels
int32 LKIT_ID2 // used to light objects
|-
int32[4] unknown
| 0x14 || float || '''climateStrengthMin''' || only used in Sand Mountain, 0 in other levels
int32 MAPR_ID
|-
int32[2] unknown
| 0x18 || float || '''climateStrengthMax''' || only used in Sand Mountain, 0 in other levels
int16 unknown
|-
int8[2] unknown
| 0x1C || [[AssetID]] ([[LKIT|LightKit]]) || '''bspLightKit''' ||
event[numEvents] events
|-
| 0x20 || [[AssetID]] ([[LKIT|LightKit]]) || '''objectLightKit''' ||
|-
| 0x24 || int || '''padF1''' || padding
|-
| 0x28 || [[AssetID]] || '''bspCollisionAssetID''' ||
|-
| 0x2C || [[AssetID]] || '''bspFXAssetID''' ||
|-
| 0x30 || [[AssetID]] || '''bspCameraAssetID''' ||
|-
| 0x34 || [[AssetID]] ([[MAPR|Material Map]]) || '''bspMapperID''' ||
|-
| 0x38 || [[AssetID]] || '''bspMapperCollisionID''' ||
|-
| 0x3C || [[AssetID]] || '''bspMapperFXID''' ||
|-
| 0x40 || float (little endian) || '''loldHeight''' || always 10. '''Not present in Scooby'''
|-
! colspan="4" | Events
|-
| 0x44 || Event[numberOfEvents] || '''[[Events]]''' ||
|}


==Format==
The Spongebob SquarePants Movie and The Incredibles
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x08 || [[AssetID]] ([[JSP]]) || '''bspAssetID''' ||
|-
| 0x0C || [[AssetID]] ([[CAM|Camera]]) || '''startCameraAssetID''' ||
|-
| 0x10 || int || '''climateFlags''' ||
|-
| 0x14 || float || '''climateStrengthMin''' ||
|-
| 0x18 || float || '''climateStrengthMax''' ||
|-
| 0x1C || [[AssetID]] ([[LKIT|LightKit]]) || '''bspLightKit''' ||
|-
| 0x20 || [[AssetID]] ([[LKIT|LightKit]]) || '''objectLightKit''' ||
|-
| 0x24 || int || '''flags''' ||
|-
| 0x28 || [[AssetID]] || '''bspCollisionAssetID''' ||
|-
| 0x2C || [[AssetID]] || '''bspFXAssetID''' ||
|-
| 0x30 || [[AssetID]] || '''bspCameraAssetID''' ||
|-
| 0x34 || [[AssetID]] ([[MAPR|Material Map]]) || '''bspMapperID''' ||
|-
| 0x38 || [[AssetID]] || '''bspMapperCollisionID''' ||
|-
| 0x3C || [[AssetID]] || '''bspMapperFXID''' ||
|-
| 0x40 || float (little endian) || '''loldHeight''' || always 10.
|-
| 0x44 || [[Vector3]] || '''minBounds''' ||
|-
| 0x50 || [[Vector3]] || '''maxBounds''' ||
|-
! colspan="4" | Events
|-
| 0x5C || Event[numberOfEvents] || '''[[Events]]''' ||
|}

{{Assets}}
{{AutoGameNavs}}

[[Category:Asset]]

Latest revision as of 22:40, 15 September 2022

ENV
Environment
TypeBase
Base Type0x05
Games usedNight of 100 Frights

Battle for Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

Ratatouille Prototype
Source codexEnv.h

Format

Night of 100 Frights and Battle for Bikini Bottom

Offset Type Variable Description
0x08 AssetID (JSP) bspAssetID
0x0C AssetID (Camera) startCameraAssetID
0x10 int climateFlags 2 in Sand Mountain, 0 in other levels
0x14 float climateStrengthMin only used in Sand Mountain, 0 in other levels
0x18 float climateStrengthMax only used in Sand Mountain, 0 in other levels
0x1C AssetID (LightKit) bspLightKit
0x20 AssetID (LightKit) objectLightKit
0x24 int padF1 padding
0x28 AssetID bspCollisionAssetID
0x2C AssetID bspFXAssetID
0x30 AssetID bspCameraAssetID
0x34 AssetID (Material Map) bspMapperID
0x38 AssetID bspMapperCollisionID
0x3C AssetID bspMapperFXID
0x40 float (little endian) loldHeight always 10. Not present in Scooby
Events
0x44 Event[numberOfEvents] Events


Format

The Spongebob SquarePants Movie and The Incredibles

Offset Type Variable Description
0x08 AssetID (JSP) bspAssetID
0x0C AssetID (Camera) startCameraAssetID
0x10 int climateFlags
0x14 float climateStrengthMin
0x18 float climateStrengthMax
0x1C AssetID (LightKit) bspLightKit
0x20 AssetID (LightKit) objectLightKit
0x24 int flags
0x28 AssetID bspCollisionAssetID
0x2C AssetID bspFXAssetID
0x30 AssetID bspCameraAssetID
0x34 AssetID (Material Map) bspMapperID
0x38 AssetID bspMapperCollisionID
0x3C AssetID bspMapperFXID
0x40 float (little endian) loldHeight always 10.
0x44 Vector3 minBounds
0x50 Vector3 maxBounds
Events
0x5C Event[numberOfEvents] Events