Generation 1 & 2 Save Files
Save file implementations for Game Boy Pokemon games (Red, Blue, Yellow, Gold, Silver, Crystal).SAV1
Generation 1 save file object for Red, Blue, and Yellow versions.Class Definition
PKHeX.Core/Saves/SAV1.cs
Storage Specifications
| Property | Japanese | International |
|---|---|---|
| Box Count | 8 | 12 |
| Box Slot Count | 30 | 20 |
| Party Size | 6 | 6 |
| Daycare Slots | 1 | 1 |
Key Properties
Version Detection
Trainer Information
Game Progress
Currency
Special Features
Event System
Box Management
SAV2
Generation 2 save file object for Gold, Silver, and Crystal versions.Class Definition
PKHeX.Core/Saves/SAV2.cs
Storage Specifications
| Property | Japanese | International | Korean |
|---|---|---|---|
| Box Count | 9 | 14 | 14 |
| Box Slot Count | 30 | 20 | 20 |
| Party Size | 6 | 6 | 6 |
| Daycare Slots | 2 + Egg | 2 + Egg | 2 + Egg |
Key Properties
Version Detection
Trainer Information
Options
Currency
Event System
Daycare System
Pokedex - Unown Features
Box Management
Mystery Gift (Crystal)
GB Mobile (Japanese Crystal)
Miscellaneous
Technical Notes
String Handling
Both Gen 1 and Gen 2 use custom character encodings:- Gen 1: Uses
StringConverter1with special terminator handling - Gen 2: Uses
StringConverter2with ligature support (non-Korean) - Gen 2 Korean: Uses separate
StringConverter2KOR
Data Storage
Gen 1 and Gen 2 use compressed list formats for Pokemon storage:- PokeList1: Gen 1 list packing/unpacking
- PokeList2: Gen 2 list packing/unpacking
- Stores species count, species list, then Pokemon data
- Separate formats for box storage vs party storage
Checksums
- Gen 1: Single 8-bit inverted sum checksum
- Gen 2: Dual 16-bit checksums stored in two locations