FlagBrew / PKSM

Gen I to GenVIII save manager.
GNU General Public License v3.0
1.76k stars 176 forks source link

Bug Report - PKSM shows wrong/old save of Pokemon Platinum in edit screen #1306

Closed flamelink527 closed 3 years ago

flamelink527 commented 3 years ago

Backstory and Bug For backstory: I have had an original copy of Pokemon Platinum since revision release. After years, I deleted my save and started a new one. Every time I load the new save it shows it is corrupt and I have to save several times to keep the current data. FYI, This was before I homebrewed my 3Ds. When I loaded my game into pksm, it would show my old data from old save. However, every backup save created from pksm, checkpoint, and twl show my new current yet corrupted save when loaded into an emulator.

Settings and OS

Additional Info Someone I met in an emulation server managed to get the new save uncorrupted with a hex editor, but if possible I would like to be able to backup the old save. I don't know if its possible but considering that pksm shows my old save when loaded vs the newer one, I would like to know. pksm homescreen new save old save proof pksm save corrupt

piepie62 commented 3 years ago

Platinum (and other Gen 4 games) contain two copies of the save, each taking up half of the save area. If you manually fixed your corrupted save dump, it's possible that you didn't update the save counts (which determine which save to load from the two) in the way PKSM expects. PKSM is a little more sensitive than the games themselves because it has to handle that logic for all three categories of G4 games, each of which has slightly different rules for save count interpretation. What seems likely is that one of the two save blocks in your current save has your new save, and the other has your old save. In order to back up a full save region with the old save active, you would have to edit the save counts such that the old one is the most recent (and passes the hash checks properly) according to the game's interpretation of save counts.

flamelink527 commented 3 years ago

I see. How would I do that in the sense of editing the save counts and stuff

GriffinG1 commented 3 years ago

Out of context for here. I suggest going to ProjectPokemon's forums and asking there.