kwsch / PKHeX

Pokémon Save File Editor
https://projectpokemon.org/pkhex/
Other
3.63k stars 682 forks source link

2008 World Championships Lucario is corrupted when imported #4323

Closed ibob247 closed 1 month ago

ibob247 commented 1 month ago

153 DP - Worlds 2008 Lucario (ENG).wc4 is corrupted if it is imported via the Mystery Gift editor and received by the NPC in green at the Pokemart. It appears as a red square and the PKM that's generated cannot be imported.

I'm not sure if this is an issue with PKHeX the PKM or the two different emulators I used to receive the mystery gift.

The wonder card does behave correctly when it is dragged and dropped directly into the party or a box.

Lucario error 1

Lucario error 2

Lucario error 3

Lucario error 4

kwsch commented 1 month ago

I vaguely recall this is because the gift file (pgt) has a bit set in the Sanity (0x4) offset of the PKM data, which signifies the data is decrypted. PKHeX will never set this data, as it is only used temporarily during the game while playing.

WC4 files are not raw dumps for the game. Not an issue with PKHeX; cc @PP-theSLAYER re: pporg event gallery