Skip to content

MCR Structure

The following Table gives you Important information the structure of a legacy edition mcr file:

NameSize (in bytes)Description
Locations0x1000 (1024 ints)Offsets of the chunks within the region file, as well as X,Y positioning
Timestamps0x1000 (1024 ints)Timestamps for the chunks found within the previous sector
ChunksvariableChunks themselves, compressed with a different format per-console.

Locations

The locations in LCE seem to use a different format per endianness...

Big Endian

Equivalent to JE Regions

NameSize (in bytes)Description
Offset0x03 (int24)Offset of the chunk, to get the true offset you need to multiply by 4096.
Size0x01 (byte)Size of the chunk in 4096-byte sectors

Little Endian

NameSize (in bytes)Description
Size0x01 (byte)Size of the chunk in 4096-byte sectors
Offset0x03 (int24)Offset of the chunk, to get the true offset you need to multiply by 4096.

Compressed chunk

Within the chunk header lies a 4-byte portion of data that dictates 2 flags and the compressed chunk size.

NameSize (in bits)Description
RLE Flag1Flag for if to use RLE
Unknown Flag1It is unknown what this flag is
Compressed Size30Compressed chunk size, to get the actual size, you must AND it by 0x3FFFFFFF
Decompressed Size32 (4 bytes, uint)Decompressed chunk size
Compressed chunkVariable (Compressed Size)The rest of the chunk

Contributors

The avatar of contributor named as Dexrn ZacAttack Dexrn ZacAttack

Changelog

Contributors



Documentation page was setup by DexrnZacAttack.