Closed ghost closed 3 days ago
Thanks for the report. Would you mind sharing your 'Pokémon White 2.dsv' save file so I can test with it?
Unfortunately I don't think I have it anymore, honestly didn't expect a reply, but I did supply my exact steps to replicate the problem, the save file must have been reset to be an empty one.
I moved it to replace the old save file, so the original was lost, and the new save started off with "New Game" at the top, and continue wasn't an option so I knew my progress had been lost.
Edit: If I find it, how would you like me to send it to you?
Edit: If I find it, how would you like me to send it to you?
You should be able to attach it to a comment in this thread.
I couldn't find it so I recreated the error with a new file, when attempting to open it with PKHeX it says it's unsupported
Edit: However, github doesn't support .dsv file attachments so I'll attach it as a zip instead
After checking a hex viewer, it seems like it's full of FF
for some reason except for the DeSmuME file footer which looks like this
Thank you for sharing. I will look into this.
Any updates?
Not yet. This is a hobby project, finding time to work on it is challenging.
Okay! Thanks regardless!
@Luna-Karch I started looking into this today. The save file you shared with me - is it the corrupted file? Can you share the original file you tried to load into PKMDS? That's the one I need to debug this issue.
The one I shared to you is the corrupted one yes. I would have to recreate the white 2.dsv file but I was able to reproduce the issue multiple times with any generic white 2.dsv
I faced the same issue while developing a cross platform CLI
It turns out that PKHeX.Core doesn't know the format of the file unless you specifically tell it what the file name is (including the file extension)
So, whenever it loads up a Desmume save, it will strip out the Desmume specific footer.
Without the footer, it is a totally valid save file, but invalid for Desmume
When Desmume sees a save without the footer, it will wipe out the whole save adding the footer back.
I solved it by passing down the file path when loading the file:
Issue also occurs on Platinum. I did some more testing and the exported save file is completely incapable of writing new saves. It wipes after each reset.
@ghost @anjeronett Thanks for the feedback. Sorry for the wait. The issue should be resolved now. Thanks for the tip, @arleypadua!
Steps to reproduce
Upload Pokémon White 2.dsv save file using google chrome at pkmds.app on an android phone
Make any edit
Hit save on your edits
Export save file
Move the save file to the correct location
Try running the game via emulator
Save file is wiped empty