Pokémon XY Save File Structure

From ProjectPokemon Wiki
Jump to navigation Jump to search

X/Y Save files are comprised of 4 sections, the latter two storing the contents of the two savegames.

The game alternates between the two game saves similar to Generations 3 & 4.

Save files are 0x100000 (1MB). The area between sections is either FF or 00, for Cartridges and Digital saves respectively.

Single Partition Save File

http://3dbrew.org/wiki/Savegames

Image Header (0x00000-0x0045B)

First Partition (0x01000-0x01107)

Save File 1 (0x02000 - 0x6AFFF)

(420 KB)

Start End Description
05400 ????? Friends List Related
05800 ????? Items Pocket
05E40 ????? Key Items Pocket
05FC0 ????? TM Pocket
06168 ????? Medicine Pocket
06268 ????? Berry Pocket
06800 ????? Flags?
07000 ????? Constants?
07400 ????? Flags/Constants?
09600 ????? Trainer Information ($)
09E00 ????? Battle Box
0F400 ????? Passerby/Friend Greetings & Data 1
14400 ????? Passerby/Friend Greetings & Data 2
19400 195FF Trainer Card (ID/SID/OT/Greeting)
19600 ????? Party Members
1A400 ????? Pokedex
1AC00 ????? ????
1B400 ????? ????
1C000 ????? ????
1CC00 ????? GTS Upload & Match Criteria
1CE00 ????? ????
1D200 ????? ????
1E5C8 ????? MAC Address & Network Connection Logging
1E800 ????? Hall of Fame Data
20600 ????? Daycare Data
21000 ????? Wondercard Data
23000 ????? Friend Safari Data
23800 ????? ????
23C00 ????? ????
24600 ????? ????
25400 ????? Pokemon Bank (string?)
26000 ????? ????
27A00 5C4D0 Box Data (31 Boxes, 30 Slots, 232 bytes each)
5C600 ????? Picture Data (JPEG Exif Ver 2.2) ~ 5C654 starts the JPEG (FF D8 marker) - Sent to PGL
6A800 ????? ??

Save File 2 (0x81000 - 0xE9FFF)

(420 KB)

Same as Game Save 1's offsets; add 0x7F000.