Difference between revisions of "PMP (File Format)"

From Custom Mario Kart
Jump to navigation Jump to search
(Created page with " PMP files ('''P'''ack '''M'''a'''P''') are a file format used by games in the Wii series, which stores object data and route data. They are similar to KMP Files They appe...")
(No difference)

Revision as of 06:46, 1 April 2020

PMP files (Pack MaP) are a file format used by games in the Wii series, which stores object data and route data. They are similar to KMP Files They appear in various games in the Wii Series collection. (Wii Sports, Wii Sports Resort, Wii Fit Plus, etc.)

File Format

Header

The file starts with a header:

Offset Usage
0x00 File magic. Always PMPF in ASCII.
0x10 Object Count
0x12 Route Count
0x14 Point Count
0x40 Object Data offset
0x44 Route Data offset
0x48 Point Data offset

Object Data

We now move on to Object data:

Offset Usage
0x00 Object Group ID
0x02 Object ID
0x04 Unknown
0x08 Position Vector
0x14 Scaling Vector
0x20 Transformation Matrix First Column
0x?? Transformation Matrix Second Column
0x?? Transformation Matrix Third Column
0x44 Unknown
0x48 Object Specific Parameters

Route Data

Next, we move on to Route Specific Data:

Offset Usage
0x00 Point Count
0x02 Unknown
0x06 Route Group ID
0x08 Internal Route Name (If Applicable)
0x20 Route Point Index
0x?? Unknown

Route Point Data

And finally, there is route point data.

Offset Usage
0x00 Position Vector
0x0C Additional Parameters




Tools

The following tools can edit PMP files:

(I can't remove the table below)

Offset Usage
0x00
0x10
0x12
0x14
0x40
0x44
0x48