Difference between revisions of "MREA (File Format)"

From Retro Modding Wiki
Jump to: navigation, search
(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...")
 
m
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
+
The '''MREA format''' is a massive format used to define areas in the Metroid Prime trilogy and Donkey Kong Country Returns. MREA files are broken up into many sections, and each section serves a different purpose.
  
__TOC__
+
* [[MREA (Metroid Prime)]]
 +
* [[MREA (Metroid Prime 2)]]
 +
* [[MREA (Metroid Prime 3)]] (also used in DKCR)
  
==Universal Header==
+
Every MREA format has a version number, and each corresponds to the following games:
 
+
This header is shared between Metroid Prime and Donkey Kong Country, and is fairly straight forward.
+
  
 
{| class="wikitable"
 
{| class="wikitable"
!Offset
+
! Version
!Size
+
! Game
!Description
+
 
|-
 
|-
|0x0
+
| 0xC
|4
+
| Metroid Prime Kiosk Demo
|'''Magic Number''' 0xDEADBEEF
+
 
|-
 
|-
|0x4
+
| 0xF
|4
+
| Metroid Prime
|'''File Version''' See below
+
 
|-
 
|-
|0x8
+
| 0x15
|48
+
| Metroid Prime 2 Demo Disk
|'''Transformation Matrix''' The position of the area in world-space
+
 
|-
 
|-
|0x38
+
| 0x19
|4
+
| Metroid Prime 2: Echoes
|'''Mesh Count'''
+
 
|-
 
|-
|0x3C
+
| 0x1D
|4
+
| Metroid Prime 3 E3 prototype
|'''SCLY Count''' ''Note: Not in Metroid Prime 1''
+
 
|-
 
|-
|0x40
+
| 0x1E
|4
+
| Metroid Prime 3: Corruption
|'''Section Count'''
+
 
|-
 
|-
|0x44
+
| 0x20
|4
+
| Donkey Kong Country Returns
|'''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'''
+
|-
+
|colspan=3|End Of header
+
 
|}
 
|}
 +
 +
[[Category:File Formats]]
 +
[[Category:Hub Articles]]

Latest revision as of 18:53, 5 May 2016

The MREA format is a massive format used to define areas in the Metroid Prime trilogy and Donkey Kong Country Returns. MREA files are broken up into many sections, and each section serves a different purpose.

Every MREA format has a version number, and each corresponds to the following games:

Version Game
0xC Metroid Prime Kiosk Demo
0xF Metroid Prime
0x15 Metroid Prime 2 Demo Disk
0x19 Metroid Prime 2: Echoes
0x1D Metroid Prime 3 E3 prototype
0x1E Metroid Prime 3: Corruption
0x20 Donkey Kong Country Returns