EvilEngine/CRDT

From Heavy Iron Modding
< EvilEngine(Redirected from CRDT)

CRDT
Credits
TypeBinary
Games usedBattle for Bikini Bottom

The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

Ratatouille Prototype
Source codexCM.h

Format[edit]

xCMHeader[edit]

Offset Type Variable Description
0x00 uint magic 0xBEEEEEEF
0x04 uint version
  • 256 - BFBB
  • 512 - TSSM - RatProto (Encrypted)
0x08 AssetID crdID
0x0C uint state
0x10 float total_time Duration in seconds. After this it loops
0x14 uint total_size Total size of CRDT asset

xCMcredits[edit]

Offset Type Variable Description
0x00 uint credits_size Size of credits entry
0x04 float len Duration of section in seconds
0x08 uint flags unknown - Alternates between 0 and 1
0x0C float in [sxy] x
0x10 y
0x14 float out [sxy] x
0x18 y
0x1C float scroll_rate
0x20 float lifetime
0x24 float fin [fade] start
0x28 end
0x2C float fout [fade] start
0x30 end
0x34 uint num_presets Number of preset entries
xCMpreset[edit]
Offset Type Variable Description
0x00 short num Preset index
0x02 short align
0x04 float delay
0x08 float innerspace
0x0C xCMtextbox[2] or xCMtexture[2]
xCMtexture[edit]

Unused in BFBB but still supported.

Offset Type Variable Description
0x00 AssetID assetID Texture AssetID
0x04 Color color
0x08 float x
0x0C float y
0x10 float w
0x14 float h
0x18 RwTexture[uint] texture Unknown
0x1C uint pad
xCMtextbox[edit]
Offset Type Variable Description
0x00 uint font
0x04 Color color
0x08 float char_size Char Width in pixels
0x0C Char Height in pixels
0x10 float char_spacing x
0x14 y
0x18 float box Max Screen Width - percentage of screen (0 to 1)
0x1C Max Screen Height
xCMhunk[edit]
Offset Type Variable Description
0x00 uint hunk_size Size of hunk entry
0x04 uint preset Preset index
0x08 float t0 Start Time
0x0C float t1 End Time
0x10 byte[] text1 File offset of text
0x18 char[] text2 Text
byte[] Padding - 0x00 (null) bytes, 4-byte alignment