Pokémon XY Save File Structure: Difference between revisions

From ProjectPokemon Wiki
Jump to navigation Jump to search
Line 20: Line 20:
| align="center" style="background:#f0f0f0;"|'''Description'''
| align="center" style="background:#f0f0f0;"|'''Description'''
|-
|-
| 05400||?????||6A81A||????
| 05400||?????||6A81A||05400 - Pokepuffs<br>05460 - Friends List
|-
| 05400||?????||6A822||05400 - Pokepuffs<br>05460 - Friends List
|-
|-
| 05800||?????||6A82A||05800 - Items Pocket<br>05E40 - Key Items Pocket<br>05FC0 - TM Pocket<br>06168 - Medicine Pocket<br>06268 - Berry Pocket
| 05800||?????||6A82A||05800 - Items Pocket<br>05E40 - Key Items Pocket<br>05FC0 - TM Pocket<br>06168 - Medicine Pocket<br>06268 - Berry Pocket

Revision as of 05:44, 2 April 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
05400 ????? 6A81A 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 Wardrobe (Bitflags) & Saved Outfits (Index #s)
07000 ????? 6A85A u16/u8 storage
07200 ????? 6A862 FFFFFFFF
07400 ????? 6A86A Overworld Data
09600 ????? 6A872 Trainer Information ($)
09800 ????? 6A87A Box Names
09E00 ????? 6A882 Battle Box
0A400 ????? 6A88A PSS Data - Friends
0F400 ????? 6A892 PSS Data - Acquaintances
14400 ????? 6A89A PSS Data - Passerby
19400 ????? 6A8A2 Trainer Card (ID/SID/OT/Greeting)
19600 ????? 6A8AA Party Members
19E00 ????? 6A8B2 Constant & Event Flags
1A400 ????? 6A8BA Pokedex
1AC00 ????? 6A8C2 Sorted Variables
1B400 ????? 6A8CA Fused Zekrom/Reshiram Storage
1B600 ????? 6A8D2 ????
1B800 ????? 6A8DA ????
1BE00 ????? 6A8E2 O-Power Flags
1C000 ????? 6A8EA ????
1C400 ????? 6A8F2 User Metadata
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 (First Game Clear + 15 Latest)
20400 ????? 6A942 Maison Data
20600 ????? 6A94A Daycare Data
20800 ????? 6A952 ????
20C00 ????? 6A95A Berry Field Data (0x18 per tree, 36 trees)
21000 ????? 6A962 Wondercard Data
0x100 bitflag-card received storage
Wondercard slots (0x108 between)
22C00 ????? 6A96A EBUS Pokemon Storage
23000 ????? 6A972 Friend Safari Data
23800 ????? 6A97A PSS Data
23C00 ????? 6A982 ????
24600 ????? 6A98A Species related history
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 BEEF Checksum Storage (header, u32 len, u16 ID, u16 checksum)

Save File 2 (0x81000 - 0xE9FFF)

(420 KB)

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