Difference between revisions of "Hey! Pikmin save file"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
(Created page with "{{stub}} The file format for a ''Hey! Pikmin'' saved game. Note: this comes from analyses of the <code>.sav</code> files generated by Citra. == Format == The save data is spl...")
 
(Well, I give up.)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
The file format for a ''Hey! Pikmin'' saved game. Note: this comes from analyses of the <code>.sav</code> files generated by Citra.
+
The file format for a ''Hey! Pikmin'' [[Save files|saved game]]. Note: this comes from analyses of the <code>.sav</code> files generated by Citra.
  
 
== Format ==
 
== Format ==
Line 159: Line 159:
 
|-
 
|-
 
|}
 
|}
 +
 +
== Checksum ==
 +
Although the checksum is unknown, it's known that it's NOT the following:
 +
 +
* CRC32 of:
 +
** The bytes after the checksum.
 +
** The bytes before and after the checksum.
 +
** The bytes after the checksum, but excluding section start magic words.
 +
** The bytes before and after the checksum, but excluding section start magic words.
 +
* SHA1 of the previous.
 +
* MD5 of the previous.
  
 
[[Category:File formats]]
 
[[Category:File formats]]
 
[[Category:Hey! Pikmin]]
 
[[Category:Hey! Pikmin]]

Revision as of 23:41, 3 November 2017

This article is a stub.

The file format for a Hey! Pikmin saved game. Note: this comes from analyses of the .sav files generated by Citra.

Format

The save data is split into several blocks that start with 4-byte magic words.

SAVE

Offset Length Field Notes
0000 4 bytes Block magic word Always SAVE.
000C 4 bytes Save data checksum Calculated using an unknown algorithm.[unsure]

NEWS

Offset Length Field Notes
0000 4 bytes Block magic word Always NEWS.

OPTI

Offset Length Field Notes
0000 4 bytes Block magic word Always OPTI.
0028 1 byte Music volume 01, 02, or 03.

PBUF

Offset Length Field Notes
0000 4 bytes Block magic word Always PBUF.

PARK

Offset Length Field Notes
0000 4 bytes Block magic word Always PARK.

MINI

Offset Length Field Notes
0000 4 bytes Block magic word Always MINI.

CRNT

Offset Length Field Notes
0000 4 bytes Block magic word Always CRNT.

GAME

Offset Length Field Notes
0000 4 bytes Block magic word Always GAME.

EVNT

Offset Length Field Notes
0000 4 bytes Block magic word Always EVNT.

HELP

Offset Length Field Notes
0000 4 bytes Block magic word Always HELP.

RINF

Offset Length Field Notes
0000 4 bytes Block magic word Always RINF.

RSLT

Offset Length Field Notes
0000 4 bytes Block magic word Always RSLT.

SPER

Offset Length Field Notes
0000 4 bytes Block magic word Always SPER.

STRE

Offset Length Field Notes
0000 4 bytes Block magic word Always STRE.

PLRP

Offset Length Field Notes
0000 4 bytes Block magic word Always PLRP.

DATE

Offset Length Field Notes
0000 4 bytes Block magic word Always DATE.

TTDS

Offset Length Field Notes
0000 4 bytes Block magic word Always TTDS.

WMAP

Offset Length Field Notes
0000 4 bytes Block magic word Always WMAP.

SAMI

Offset Length Field Notes
0000 4 bytes Block magic word Always SAMI.

Checksum

Although the checksum is unknown, it's known that it's NOT the following:

  • CRC32 of:
    • The bytes after the checksum.
    • The bytes before and after the checksum.
    • The bytes after the checksum, but excluding section start magic words.
    • The bytes before and after the checksum, but excluding section start magic words.
  • SHA1 of the previous.
  • MD5 of the previous.