EvilEngine/CSN: Difference between revisions
Content added Content deleted
EnergyDrink (talk | contribs) No edit summary |
EnergyDrink (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
</onlyinclude> |
</onlyinclude> |
||
{{AutoAssetInfobox}} |
{{AutoAssetInfobox}} |
||
===Alignment=== |
|||
Header, Raw Data and TimeChunks are all aligned to 2048 bytes. |
|||
==Format== |
==Format== |
||
Line 46: | Line 49: | ||
| 0x04 || [[AssetID]] || '''AssetID''' || |
| 0x04 || [[AssetID]] || '''AssetID''' || |
||
|- |
|- |
||
| 0x08 || uint || '''ChunkSize''' || |
| 0x08 || uint || '''ChunkSize''' || Size of data, relative to end of this header |
||
|- |
|- |
||
| 0x0C || uint || '''FileOffset''' || Starting position of data, relative to end of this header |
| 0x0C || uint || '''FileOffset''' || Starting position of data, relative to end of this header |
||
Line 77: | Line 80: | ||
=====Camera===== |
=====Camera===== |
||
Camera is different in Night of 100 Frights. |
Camera is different in Night of 100 Frights. |
||
This is BFBB/TSSM only. |
This is BFBB/TSSM/Incredibles only. |
||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
Line 100: | Line 103: | ||
=====MorphTarget===== |
=====MorphTarget===== |
||
Only present in Night of 100 Frights. |
|||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
Revision as of 03:19, 2 August 2022
CSN | |
---|---|
Cutscene | |
Type | Binary |
Games used | Night of 100 Frights Battle for Bikini Bottom |
Alignment
Header, Raw Data and TimeChunks are all aligned to 2048 bytes.
Format
The asset data starts with a main header, which is also present in the CTOC asset.
Raw Data
This section contains all MODL and JDTM assets. Its size and offset are defined in the main header.
TimeChunk
Every timechunk has a 0x10 byte header:
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | float | StartTime | |
0x04 | float | EndTime | |
0x08 | uint | NumData | Number of entries |
0x0C | uint | ChunkIndex | TimeChunk index (starts with 0) |
The entries have the following structure:
xCutsceneData
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | uint | DataType |
|
0x04 | AssetID | AssetID | |
0x08 | uint | ChunkSize | Size of data, relative to end of this header |
0x0C | uint | FileOffset | Starting position of data, relative to end of this header |
Sound
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | xCutsceneData Header | ||
0x10 | SNDS (Scooby/BFBB) |
Animation
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | xCutsceneData Header | ||
0x10 | uint32 | RootIndex | |
0x14 | float[3] | Translate | Starting position |
0x20 | ANIM |
Camera
Camera is different in Night of 100 Frights. This is BFBB/TSSM/Incredibles only.
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | xCutsceneData Header | ||
0x10 | uint32 | Amount of cameras/frames | |
0x14 | FLY in big-endian |
JDTA
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | xCutsceneData Header | ||
0x10 | Unknown |
MorphTarget
Offset | Type | Variable | Description |
---|---|---|---|
0x00 | xCutsceneData Header | ||
0x10 | Unknown | ||
MPHT |