jdelcarp Posted May 10, 2009 Posted May 10, 2009 So now I'm having issues with making the edits show up. I tried editing a pokemon, but when I loaded the game it said save file was corrupted, loading previous file. So it loads the previous files and my edits aren't there. How do I remedy this? Also, when I dump the .sav onto pokesav, sav reads it as if the changes have gone through(meaning I can see the edits I have made on pokesav, even though they haven't been recognized by the game because of the file corruption alert.)
codemonkey85 Posted May 10, 2009 Posted May 10, 2009 Allow me to explain. A Pokémon DS save file is broken up into two halves. Each half is further broken into three blocks. The first block is a general block, containing info about the trainer, events completed, party Pokémon, and more. The second block contains all of the information regarding the PC storage system (and the Pokémon stored therein). The third block contains info about the hall of fame entries (after you beat the Pokémon League). That's one half of the save file. The other half is a backup... essentially, when you save your game, the backup information is overwritten with the current information, and what was current now becomes the backup. (It's actually more complicated than that though... see the article for more details.) Each individual block also has its own checksum, to prevent editors from easily changing data. You must recalculate and edit the checksum before the game will recognize your data as not corrupt. Pokésav was coded in a very lazy manner, as it only edits the "current" blocks of data, and not the backup blocks. It doesn't save the data back to the file in the same manner as the game does, and it doesn't verify checksums. Therefore, it is always looking at the "current" (but potentially corrupt) blocks of data. Incidentally, how did you make your initial edits? Using a hex editor? Or using Pokésav all along?
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