MAPW (File Format)

From Retro Modding Wiki
Revision as of 08:21, 4 February 2015 by >Aruki
Jump to navigation Jump to search

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