Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up[Vita] Pokemon LeafGreen not saving (intermittent) #340
Comments
endrift
added
severity:bug
os:Vita
labels
Aug 12, 2016
endrift
added this to the 0.5.0 milestone
Aug 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
endrift
Aug 14, 2016
Member
Can you let me know if this build fixes the issue? http://endrift.com/files/mgba-savesync.vpk
|
Can you let me know if this build fixes the issue? http://endrift.com/files/mgba-savesync.vpk |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
fqborges
Aug 15, 2016
Unfortunately, It didn't.
Using the provided buid I started a new game, saved, waited a few seconds and left the emulator. After restarting, the game I just saved wasn't there.
I am going to test more, and provide you more feedback. For now, this problem can be bypassed using saved states at least.
I really appreciate your work. Thanks!
fqborges
commented
Aug 15, 2016
|
Unfortunately, It didn't. Using the provided buid I started a new game, saved, waited a few seconds and left the emulator. After restarting, the game I just saved wasn't there. I am going to test more, and provide you more feedback. For now, this problem can be bypassed using saved states at least. I really appreciate your work. Thanks! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
endrift
Aug 15, 2016
Member
How did you leave the emulator? Did you exit the game and go down through the menu, or did you tear off the livearea page?
|
How did you leave the emulator? Did you exit the game and go down through the menu, or did you tear off the livearea page? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
fqborges
commented
Aug 15, 2016
|
I did tear off the livearea page. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
endrift
Sep 15, 2016
Member
This may be fixed in the upcoming nightly. I've had trouble reproducing the issue properly, so let me know.
|
This may be fixed in the upcoming nightly. I've had trouble reproducing the issue properly, so let me know. |
endrift
modified the milestones:
0.6.0,
0.5.0
Sep 18, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
endrift
Sep 18, 2016
Member
I've figured out what's going on:
Pokémon games on the GBA have two savedata blocks, and it swaps off on which one it writes to. It also keeps track of how many times you've saved, and the savegame that says "we've saved the most times" is the one that's loaded next time.
So what happens if you take a savestate, save three times, load the savestate, and save once? Well the save file has two games, one with N saves and one with N+2. However, the N+2 one is older, from before reloading the savestate and saving again. So it loads the wrong one.
The way to fix this would be load back in the savedata when loading a savestate, and only flush it if a savegame is written out.
|
I've figured out what's going on: Pokémon games on the GBA have two savedata blocks, and it swaps off on which one it writes to. It also keeps track of how many times you've saved, and the savegame that says "we've saved the most times" is the one that's loaded next time. So what happens if you take a savestate, save three times, load the savestate, and save once? Well the save file has two games, one with N saves and one with N+2. However, the N+2 one is older, from before reloading the savestate and saving again. So it loads the wrong one. The way to fix this would be load back in the savedata when loading a savestate, and only flush it if a savegame is written out. |
endrift
removed
the
os:Vita
label
Sep 18, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
endrift
Jan 24, 2017
Member
This was partially fixed with some savestate tweaks in 0.5.0, but the remainder is covered by #441.
|
This was partially fixed with some savestate tweaks in 0.5.0, but the remainder is covered by #441. |
fqborges commentedAug 12, 2016
Symptoms:
Version: yesterday nightly build (2016-08-11).
Hint: I cannot test this now, but maybe opening configs ( /_\ button) makes difference.