Generation 3 Save Files
Save file implementations for Game Boy Advance and GameCube Pokemon games.SAV3 (Abstract Base)
Base class for Ruby, Sapphire, Emerald, FireRed, and LeafGreen save files.Class Definition
PKHeX.Core/Saves/SAV3.cs
Storage Structure
Gen 3 saves use a unique 3-buffer system:| Buffer | Size | Contents |
|---|---|---|
| Small | 0x890 - 0xF2C | Pokedex, trainer info, options |
| Large | 0x3C40 - 0xF08 | Party, items, event flags |
| Storage | 0x83D0 | All 14 PC boxes |
Storage Specifications
| Property | Value |
|---|---|
| Box Count | 14 |
| Box Slot Count | 30 |
| Party Size | 6 |
| Daycare Slots | 2 |
Sector System
Save data is fragmented into sectors:- Sector Size: 0x1000 bytes
- Used per Sector: 0xF80 bytes
- Main Sectors: 14 (sectors 0-13)
- Extra Sectors: 4 (Hall of Fame, etc.)
- Save Slots: 2 (primary and backup)
Key Properties
Version Detection
Trainer Information
Options
Event System
Daycare System
Pokedex
Box Management
External Connections
GameCube Interaction
Pokemon Box Ruby & Sapphire
Bonus Disc Interactions
Special Data
Hall of Fame
SAV3Colosseum
Pokemon Colosseum save file for GameCube.Class Definition
PKHeX.Core/Saves/SAV3Colosseum.cs
Storage Specifications
| Property | Value |
|---|---|
| Box Count | 3 |
| Box Slot Count | 30 |
| Party Size | 6 |
| Daycare Slots | 1 |
| Shadow Pokemon | 128 max |
Key Properties
Japanese Bonus Disc
SAV3XD
Pokemon XD: Gale of Darkness save file for GameCube.Class Definition
PKHeX.Core/Saves/SAV3XD.cs
Storage Specifications
| Property | Value |
|---|---|
| Box Count | 8 |
| Box Slot Count | 30 |
| Party Size | 6 |
| Daycare Slots | 1 |
| Shadow Pokemon | Variable (depends on region) |
Key Properties
Shadow Pokemon Management
XD tracks shadow Pokemon differently than Colosseum:SAV3RSBox
Pokemon Box Ruby & Sapphire save file for GameCube.Class Definition
PKHeX.Core/Saves/SAV3RSBox.cs
Storage Specifications
| Property | Value |
|---|---|
| Box Count | 50 (displayed as 25 pairs) |
| Box Slot Count | 30 per box |
| Party Size | None |
| Total Capacity | 1,500 Pokemon |
Special Features
Dual Box Display
Boxes are displayed in pairs with special naming:Box Layout
Boxes use a 12x5 grid instead of the standard 6x5:Extra Data Storage
Pokemon Box stores additional data with each Pokemon:Technical Notes
Checksums
- GBA Games: CRC16-CCITT per sector
- Colosseum: SHA1 checksums
- XD: Custom checksum system
- Pokemon Box: Per-block checksums