Difference between revisions of "MAPW (File Format)"

From Retro Modding Wiki
Jump to: navigation, search
m
m
Line 27: Line 27:
 
|-
 
|-
 
| 0xC
 
| 0xC
| [[MAPA (File Format)|MAPA]][]
+
| [[MAPA (File Format)|MAPA]]
 
| 4 × AC
 
| 4 × AC
 
| '''MAPA array'''
 
| '''MAPA array'''

Revision as of 09:22, 4 February 2015

The MAPW format defines the map for a world.

Format

MAPW is an extremely simple format; it's essentially just an array of MAPA IDs. There's always one MAPA per area. The MAPW format has never been updated; every Prime game uses the same version of the format, version 1. The only difference is that Prime 1/2 has 32-bit file IDs, while Prime 3 has 64-bit ones.

Offset Type Size Description
0x0 u32 4 Magic; always 0xDEADF00D
0x4 u32 4 Version; always 1
0x8 u32 4 MAPA count (AC)
0xC MAPA 4 × AC MAPA array