Pikmin 2 mapcode file

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search

The mapcode.bin is a file format that assigns physical characteristics to each face of the grid.bin file where each face receives two hex digit values identifiers.

The formatting for the mapcode is 0xYY (the x here is not the digit, the Ys are.) For example, 0x00 would give a face with full friction, Pikmin seeds can root, and it uses grass walking sound effects. Refer to the table below for more information.

The following was pasted from Kai's notes:

First 4 Bytes of data define the amount of faces it's grid.bin has. Each byte after defines 3 different characteristics of each face.

First Digit (Physical characteristics):

Integer (the value of Y) Effect
0 Full Friction, Pikmin Seeds Can Root
1 Some Friction, Pikmin Seeds Can Root
2 No Friction, Pikmin Seeds Can Root
4 Full Friction, Pikmin Seeds Die
5 Some Friction, Pikmin Seeds Die
6 No Friction, Pikmin Seeds Die

Second Digit (Sound index):

Integer (the value of Y) Effect
0 Grass
1 Soil
2 Sand
3 Wood
4 Water
5 Stone
6 Iron
7 Snow
8 Water*
9 Paper Bag
*Has water particle effects when 1 is used as the first digit.