Falsebound Archive
6 Formats 6.8

The save file

The three-block card file Yu_Gi_Oh_FK and the part of the game’s state it holds.

Where
Memory card file Yu_Gi_Oh_FK; game state GameData at 0x801BCA80 (0x27A0 bytes)
File name
Yu_Gi_Oh_FK
Size on the card
3 blocks (0x6000 bytes)
Checksum
XOR of all payload halfwords, XOR 0x4C6B

File layout

Offset Content
0x0000, 0x0020 the two comment lines
0x0040 banner and five icons, 0x4000 bytes from icon/card_y.bin, card_s.bin or card_j.bin by story (RGB5A3)
0x4200 header: u16 checksum, u16 version (1)
0x4400 the payload, 0x1160 bytes (the first 0x114C bytes of the game state rounded up to 32)

The file’s 0x5600 bytes are rounded up to the card’s 0x2000-byte sectors: three blocks. The game refuses cards with other sector sizes and needs one free file and three free blocks.

The checksum is the XOR of every big-endian halfword of those 0x1160 bytes, XOR 0x4C6B; the header is not covered. The last 0x14 bytes are the start of a runtime structure. A load copies them back, and the game rebuilds that structure before using it.

The payload

Offset Size Field
0x000 0x50 the ranking, five entries
0x050 0x200 skill cards, 512 ids (0xFF empty)
0x250 4 gold
0x254 4 runtime flags
0x259, 0x25A 1 + 1 the two sound volumes
0x25C-0x25E 1 each story-clear bits (Yugi 1, Seto 2, Joey 4), current story, current mission
0x260 … the player’s data: a record for each of the 177 ownable monsters, the marshals of the three stories, ten formations

Nothing outside the payload carries from one mission to the next: the roster, the marshals, the formations, the skill cards, the gold, the current story and mission, and the story-clear bits are the whole of a story’s progress.

Evidence

The layout and the checksum are those of the game’s save and load code, which is part of the decompiled code.