MAPU (File Format): Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Antidote No edit summary |
>Aruki No edit summary |
||
Line 1: | Line 1: | ||
The '''MAPU format''' is used to build the game's | The '''MAPU format''' is used to build the game's universe map, which is split up by world. The format is simple and is one of the few formats that's 100% cracked. There are no format differences between Metroid Prime 1 and 2. | ||
__TOC__ | __TOC__ | ||
Line 5: | Line 5: | ||
== Format == | == Format == | ||
The MAPU format is broken | The MAPU format is broken into 2 parts: the header, and the world descriptors. Each world descriptor determines how that world's hexagon map is laid out. The number of areas in the world usually differs from the amount of hexagons present on the Universe Map. | ||
=== Header === | === Header === | ||
Line 14: | Line 14: | ||
! Type | ! Type | ||
! Description | ! Description | ||
! Notes | |||
|- | |- | ||
| u32 | | u32 | ||
| '''Magic''' | | '''Magic''' | ||
| Always 0xABCDEF01 | |||
|- | |- | ||
| u32 | | u32 | ||
| '''Version''' | | '''Version''' | ||
| Always 1 | |||
|- | |- | ||
| | | [[MAPA (File Format)|MAPA]] | ||
| '''MAPA ID''' | | '''Hexagon MAPA ID''' | ||
| This is the MAPA file that contains the hexagon model | |||
|- | |- | ||
| u32 | | u32 | ||
| '''World | | '''World count (WC)''' | ||
| | |||
|- | |- | ||
| [[#World|Worlds[WC]]] | | [[#World|Worlds[WC]]] | ||
| ''' | | '''World array''' | ||
| | |||
|} | |} | ||
=== World === | === World === | ||
For each world, its internal name and [[MLVL (File Format)|MLVL file]] are listed. Following that is a list of 3x4 transformation matrices defining the location of each hexagon; then finally, the color of the world's hexagons. | |||
{| class="wikitable" | {| class="wikitable" | ||
! Type | ! Type | ||
! Description | ! Description | ||
! Ntes | |||
|- | |- | ||
| string | | string | ||
| '''Name''' | | '''Name''' | ||
| This is the internal name of the world; for example, "Ruins" | |||
|- | |- | ||
| u32 | | u32 | ||
| '''[[MLVL (File Format)|MLVL]] ID''' | | '''World [[MLVL (File Format)|MLVL]] ID''' | ||
|- | |- | ||
| CTransform4f | | CTransform4f | ||
| '''World | | '''World transform''' | ||
| The world map's transform within the universe map | |||
|- | |- | ||
| u32 | | u32 | ||
| ''' | | '''Hexagon count (HC)''' | ||
|- | |- | ||
| CTransform4f[ | | CTransform4f[HC] | ||
| ''' | | '''Hexagon transforms''' | ||
| This is the hexagon's transform within the world map; it's multiplied an additional time by the world transform | |||
|- | |- | ||
| | | CColor | ||
| '''World | | '''World hexagon color''' | ||
| | |||
|} | |} | ||