MREA (File Format)

From Retro Modding Wiki
Revision as of 21:20, 25 January 2015 by Antidote (Talk | contribs) (Created page with "The '''.MREA file format''' is used to define areas in Metroid Prime and Donkey Kong Country Returns. MREA files are broken up into many sections, and each section serves a sp...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The .MREA file format is used to define areas in Metroid Prime and Donkey Kong Country Returns. MREA files are broken up into many sections, and each section serves a specific purpose. However for the sake of brevity this article will only cover each revision of the MREA header.

Universal Header

This header is shared between Metroid Prime and Donkey Kong Country, and is fairly straight forward.

Offset Size Description
0x0 4 Magic Number 0xDEADBEEF
0x4 4 File Version See below
0x8 48 Transformation Matrix The position of the area in world-space
0x38 4 Mesh Count
0x3C 4 SCLY Count Note: Not in Metroid Prime 1
0x40 4 Section Count
0x44 4 Compress Block Count Note: Not in Metroid Prime 1
0x48 4 Section Number Count (N) Note: Only in Metroid Prime 3 and Donkey Kong
0x60 (N*4) Section Sizes
End Of header