Difference between revisions of "Pikmin 2 mapcode file"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
(add actual info on mapcode)
(I formatted the page better and gave a clearer explanation about how the mapcode works.)
 
Line 1: Line 1:
{{todo|Stub.}}
+
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 mapcode.bin is a file format that assigns physical characteristics to each face of the grid.bin where each face receives two hex digit values identifiers.
 
  
Pasted from Kai's notes:
+
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 4 Bytes of data define the amount of faces it's grid.bin has. Each byte after defines 3 different characteristics of each face.
Line 8: Line 9:
 
First Digit (Physical characteristics):
 
First Digit (Physical characteristics):
  
Pikmin seeds can root:
+
{| class="wikitable sortable"
0 - full friction
+
! Integer (the value of Y) || Effect
1 - some friction
+
|-
2 - no friction
+
| 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
 +
|}
  
Pikmin seeds die:
+
Second Digit (Sound index):
4 - full friction
 
5 - some friction
 
6 - no friction
 
  
Second Digit (Sound index):
+
{| class="wikitable sortable"
 +
! 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
 +
|}
  
0 - grass
+
*Has water particle effects when 1 is used as the first digit.
1 - soil
 
2 - sand
 
3 - wood
 
4 - water
 
5- stone
 
6 - iron
 
7 - snow
 
8 - water (has water particle effects when used with 1 as the first digit
 
9 - paper
 

Latest revision as of 22:54, 24 February 2024

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.