pokemonfan1290 Posted July 28, 2023 Share Posted July 28, 2023 (edited) Hello there , As a little side-project I've been going through and backing up old save data, but I've noticed that when I go to open my old G/S saves I get an error that PKHEX can't open the file. I haven't had a problem with either Gen 1 or 3 so far. I have attached both save files and the error I get - does anyone know the quick fix? Note: these have been directly ripped from my childhood copies of the games Pokemon - Gold Version (USA, Europe) (SGB Enhanced) (GB Compatible).sav Pokemon - Silver Version (USA, Europe) (SGB Enhanced) (GB Compatible).sav Edited July 28, 2023 by pokemonfan1290 Link to comment Share on other sites More sharing options...
Kaphotics Posted July 28, 2023 Share Posted July 28, 2023 Try trimming off the 0x30 byte footer. Link to comment Share on other sites More sharing options...
pokemonfan1290 Posted July 28, 2023 Author Share Posted July 28, 2023 1 hour ago, Kaphotics said: 0x30 byte footer. Could you clarify what you mean by this? I tried trimming off the final 00 entries and then removing the byte in '00' x '00000030' without any luck Link to comment Share on other sites More sharing options...
Kaphotics Posted July 28, 2023 Share Posted July 28, 2023 Delete the last 0x30 bytes with a hex editor so that the save file is an even 0x8000 bytes long. Also try loading them in an emulator to see if the data correctly loads there. Link to comment Share on other sites More sharing options...
pokemonfan1290 Posted July 28, 2023 Author Share Posted July 28, 2023 (edited) I'm unsure if I'm doing the right thing here, would this be the final 0x30 byte? When I delete this I still get the same error as above sadly Edited July 28, 2023 by pokemonfan1290 Link to comment Share on other sites More sharing options...
pokemonfan1290 Posted July 28, 2023 Author Share Posted July 28, 2023 When I load the files on emulator it seems to read the battery okay, but there is no save file After editing it then doesn't seem to load the .sav file at all Link to comment Share on other sites More sharing options...
pokemonfan1290 Posted July 28, 2023 Author Share Posted July 28, 2023 I have loaded these onto a physical GBA and it looks like the save data on both has been erased, this is why nothing appears on the emulator Strange that I'm still seeing data on the .sav files as above, but I guess this solves the mystery. Link to comment Share on other sites More sharing options...
theSLAYER Posted July 29, 2023 Share Posted July 29, 2023 12 hours ago, pokemonfan1290 said: I'm unsure if I'm doing the right thing here, would this be the final 0x30 byte? When I delete this I still get the same error as above sadly No He means 0x30 bytes in length. The entire portion I highlighted. From both saves. Normally that works, but your saves won't load in PKHeX. I reckon they're just gibberish to begin with. Probably not dumped right. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now