Editing Hey! Pikmin 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 140: | Line 140: | ||
! File || Block | ! File || Block | ||
|- | |- | ||
− | | <code>0x0BF0</code> || <code>0x0000</code> || 4 bytes || Block magic word || Always <code> | + | | <code>0x0BF0</code> || <code>0x0000</code> || 4 bytes || Block magic word || Always <code>0xRINF</code>. |
|- | |- | ||
|} | |} | ||
Line 242: | Line 242: | ||
== Checksum == | == Checksum == | ||
− | The checksum seems to be a CRC32 of the | + | The checksum seems to be a CRC32 of the 0xd87 bytes that follow after the checksum (i.e. just one byte short of the entire remaining data), with crc32 as implemented by e.g. zlib. |
− | |||
− | |||
+ | The following python code can recalculate the checksum if the data after the checksum is modified: | ||
<pre> | <pre> | ||
import struct | import struct |