I've
been busy with other things lately but will get back to it soon.
Most Pokémon, including your own, are stored in a POKE file. Stadium 2 (J Stadium 3) uses a slightly different struct than the earlier games "P3v0". I've wanted to confirm the exact format using a save dump from my cart but the V64jr has been acting up. Probably just use some sacrificial Rattata captures and a flashcart or something.
"P3v0" is a general filewrapper name though, so more than just your party uses it (also unlike previous titles) making this a bit of a pain.
If the data was wrapped in one of those they have a checksum. It's just a checksum16 against the data, but if it doesn't match they'll treat it like a hacked 'mon.
Can't say this is accurate yet, but registered parties use this format:
Code:
# 0x0 1 True if data set [default 0]
# 0x2 2 trainer ID [default 0]
# 0x4 12 Trainer name (GB encoding, 0x50 terminated) [default 0x5000]
# 0x10 pkmn 0x3C each; uses GB storage format
# 0x0 1 species
# 0x1 1 held item
# 0x2 1 move 1
# 0x3 1 move 2
# 0x4 1 move 3
# 0x5 1 move 4
# 0x6 2 OT ID
# 0x8 4 EXP
# 0xC 2 HP exp
# 0xE 2 Atk exp
# 0x10 2 Def exp
# 0x12 2 Spd exp
# 0x14 2 Spc exp
# 0x16 2 DVs
# 0x18 1 PP 1
# 0x19 1 PP 2
# 0x1A 1 PP 3
# 0x1B 1 PP 4
# 0x1C 1 friendship
# 0x1D 1 level
# 0x1E 1 status
# 0x1F 5 ???
# 0x24 12 nickname (GB encoding, 0x50 terminated)
# 0x30 12 OT name? (GB encoding, 0x50 terminated; 0 if rental)
# 0x178 2 fill? always 0000
# 0x17A 4 b'P3v0'
# 0x17E 2 checksum16 [default 01CF]
I want to make absolutely certain I didn't bugger anything up beforehand though.
Only parts of the save file are loaded at a time depending which menu you are on.
Free Battle & Gym Leader Castle
pointers to banks 0 and 1 at 80261E60 & 80269670, respectively.
registered parties @ 80261E70 backups at 80265A70 (+0x3C00)
registered gym castle parties @ 80269680
Loaded when entering the "Choose from which entry?" screen.
Stadium
80257E90 backups at 8025BA90 (+0x3C00)
Loaded when entering the "Choose from which entry?" screen.
These projects are taking longer than expected, but
really really will get to this eventually ;*)
Consider this a consolation prize.