Editing Pikmin 2 save file
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | Data about the ''Pikmin 2'' save file format. The following info was taken from the European version of ''Pikmin 2'' based on a <code>.gci</code> save taken from Dolphin. | |
− | Data about the ''Pikmin 2'' save file format. The following info was taken from the | ||
{{todo|Figure out how to decrypt save files for the NPC version}} | {{todo|Figure out how to decrypt save files for the NPC version}} | ||
+ | {{todo|Check if this info applies to the JP version of Pikmin 2 on GC}} | ||
The save file contains save data for each of the 3 save slot used in-game. The data of such a save slot starts with the 8 byte magic word string <code>PlVa0003</code> and is <code>0xC000</code> bytes (49152 bytes in decimal) long. Directly after the string follows a byte which has the slot number of the save (<code>0x00</code> for first slot, <code>0x01</code> for second, <code>0x02</code> for third). The last 4 bytes of the slot data contain the checksum calculated for the preceding slot data. The checksum is detailed in [[#Checksum|this section]]. | The save file contains save data for each of the 3 save slot used in-game. The data of such a save slot starts with the 8 byte magic word string <code>PlVa0003</code> and is <code>0xC000</code> bytes (49152 bytes in decimal) long. Directly after the string follows a byte which has the slot number of the save (<code>0x00</code> for first slot, <code>0x01</code> for second, <code>0x02</code> for third). The last 4 bytes of the slot data contain the checksum calculated for the preceding slot data. The checksum is detailed in [[#Checksum|this section]]. | ||
Line 11: | Line 11: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Address || Size || Description | ! Address || Size || Description | ||
− | |||
− | |||
− | |||
|- | |- | ||
| <code>0x14</code> || 4 bytes | | <code>0x14</code> || 4 bytes | ||
Line 27: | Line 24: | ||
| Integer representing the time (in minutes) played on the save file as shown on the file select screen. | | Integer representing the time (in minutes) played on the save file as shown on the file select screen. | ||
|- | |- | ||
− | | <code> | + | | <code>0x164</code> || {{unsure|array of 4 bytes and 1 byte separators, unsure of length}} |
− | | 4 byte | + | | Appears to be 4 byte enemy data of Pikmin lost to said enemy and amount of enemies of that species killed, {{unsure|followed by a 1 byte separator}}. {{todo|Figure this out}} |
− | |||
− | | | ||
− | |||
|- | |- | ||
| <code>0x3ED</code> || 2 bytes | | <code>0x3ED</code> || 2 bytes | ||
Line 37: | Line 31: | ||
|- | |- | ||
| <code>0x3F1</code> || 21 length 4 byte array | | <code>0x3F1</code> || 21 length 4 byte array | ||
− | | Pikmin types that fall from the sky during entering and exiting a cave. Editing this value on a save file that is on the area select screen will result in the Pikmin falling from the sky upon entering an area. The Pikmin types are organized into groups of three, with the first integer representing a leaf Pikmin, the second a bud Pikmin, and the third a flower Pikmin. The Pikmin types in the array are ordered Blue, Red, Yellow, Purple, White, Bulbmin, and an unused | + | | Pikmin types that fall from the sky during entering and exiting a cave. Editing this value on a save file that is on the area select screen will result in the Pikmin falling from the sky upon entering an area. The Pikmin types are organized into groups of three, with the first integer representing a leaf Pikmin, the second a bud Pikmin, and the third a flower Pikmin. The Pikmin types in the array are ordered Blue, Red, Yellow, Purple, White, Bulbmin, and an unused PikPik carrot. |
− | |||
− | |||
− | |||
|- | |- | ||
| <code>0x4CF</code> || 188 length 1 byte array | | <code>0x4CF</code> || 188 length 1 byte array | ||
− | | 1 byte each represents the treasure as accessed on the area select screen. Treasures appear to follow their [[Pikmin 2 identifiers|internal IDs]] for order. These are all the treasures not part of the Exploration Kit (nor The Key). Non-zero values mean collected. | + | | 1 byte each represents the treasure as accessed on the area select screen. Treasures appear to follow their [[Pikmin 2 identifiers|internal IDs]] for order. These are all the treasures not part of the Exploration Kit (nor The Key). Non-zero values mean collected. {{todo|find if there is a difference between the value being <code>0x2</code> or the more common <code>0x6</code>}} |
|- | |- | ||
| <code>0x58D</code> || 13 length 1 byte array | | <code>0x58D</code> || 13 length 1 byte array | ||
| Same as above, only for Exploration Kit treasures including The Key. | | Same as above, only for Exploration Kit treasures including The Key. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| <code>0x834</code> || 4 bytes | | <code>0x834</code> || 4 bytes |