Pokémon XY Save File Structure: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
Line 48: Line 48:
| 09E00||?????||6A882||Battle Box
| 09E00||?????||6A882||Battle Box
|-
|-
| 0A?00||?????||6A88A||????
| 0A400||?????||6A88A||????
|-
|-
| 0F400||?????||6A892||Passerby/Friend Greetings & Data 1
| 0F400||?????||6A892||Passerby/Friend Greetings & Data 1

Revision as of 22:14, 27 March 2014

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 CHK Description
<5400 ????? 6A81A ????
05400 ????? 6A822 05400 - Pokepuffs
05460 - Friends List
05800 ????? 6A82A 05800 - Items Pocket
05E40 - Key Items Pocket
05FC0 - TM Pocket
06168 - Medicine Pocket
06268 - Berry Pocket
06600 ????? 6A832 ????
06800 ????? 6A83A Trainer Stat Flags (Style)
06A00 ????? 6A842 ????
06C00 ????? 6A84A ????
06E00 ????? 6A852 ????
07000 ????? 6A85A Constants?
07200 ????? 6A862 ???
07400 ????? 6A86A Flags/Constants?
09600 ????? 6A872 Trainer Information ($)
09800 ????? 6A87A Box Names
09E00 ????? 6A882 Battle Box
0A400 ????? 6A88A ????
0F400 ????? 6A892 Passerby/Friend Greetings & Data 1
14400 ????? 6A89A Passerby/Friend Greetings & Data 2
19400 195FF 6A8A2 Trainer Card (ID/SID/OT/Greeting)
19600 ????? 6A8AA Party Members
19E00 ????? 6A8B2 ????
1A400 ????? 6A8BA Pokedex
1AC00 ????? 6A8C2 ????
1B400 ????? 6A8CA Fused Zekrom/Reshiram Storage
1B600 ????? 6A8D2 ????
1B800 ????? 6A8DA ????
1BE00 ????? 6A8E2 O-Power Flags
1C000 ????? 6A8EA ????
1C400 ????? 6A8F2 ????
1CC00 ????? 6A8FA GTS Upload & Match Criteria
1CE00 ????? 6A902 ????
1D000 ????? 6A90A ????
1D200 ????? 6A912 ????
1D400 ????? 6A91A ????
1D600 ????? 6A922 ????
1D800 ????? 6A92A ?Tournament Data (WiFi / Live 0x400 ea)?
1E400 ????? 6A932 MAC Address & Network Connection Logging
1E800 ????? 6A93A Hall of Fame Data
???00 ????? 6A942 ????
20600 ????? 6A94A Daycare Data
20?00 ????? 6A952 ????
20C00 ????? 6A95A ????
21000 ????? 6A962 Wondercard Data
0x100 bitflag-card received storage
Wondercard slots (0x108 between)
22C00 ????? 6A96A ????
23000 ????? 6A972 Friend Safari Data
23800 ????? 6A97A PSS Data
23C00 ????? 6A982 ????
24600 ????? 6A98A ????
2??00 ????? 6A992 ????
25400 ????? 6A99A Pokemon Bank Gifts
26000 ????? 6A9A2 ????
26200 ????? 6A9AA PGL Promotion Gifts
2??00 ????? 6A9B2 ????
2??00 ????? 6A9BA ????
27A00 5C4D0 6A9C2 Box Data (31 Boxes, 30 Slots, 232 bytes each)
5C600 ????? 6A9CA Picture Data (JPEG Exif Ver 2.2) ~ 5C654 starts the JPEG (FF D8 marker) - Sent to PGL
6A800 ????? N/A Checksum Storage

Save File 2 (0x81000 - 0xE9FFF)

(420 KB)

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