Hacking Emulation Extracting .sav from agbsave.bin copy (on computer or otherwise)

CasualTester

New Member
OP
Newbie
Joined
Nov 23, 2021
Messages
2
Trophies
0
Age
26
XP
39
Country
France
Hello,

I am new here, so I apologize if it is not in the right section and/or a similar issue has already been solved, but I didn't find anything on the topic.

I have virtually no knowledge of coding, but I can follow instructions and wing it, most of the time.

So, here is the issue : I am dumb, and was in a bit of a hurry, so instead of dumping the virtual consol's save file on gm9 through agbsave.bin options, I made a copy of the agbsave.bin and went ahead and reset my system. I would be really grateful, if somehow, it would be possible to extract the .sav file from my copy of agbsave.bin on a computer (I don't mind dabbling in hex editors, I guess...), or directly reinject the agbsave.bin in my current system.


For info, I have :
-another CFW n3ds ready to be used​
-extracted a .sav file (at the beginning of the game) for reference​
-VirtualBoyAdvance on my computer​
-European version of Minish Cap on GBA and the rom extracted from it​
-a 100% complete save lost somewhere in the .bin file​

It's prbably stupid, but I already tried to extract a .sav file the exact same size as the reference file, starting at the line that indicated the game title in the .bin file.

P.S. : If there is already a solution, please, please, give me a link...
 

Sweater Fish Del

Well-Known Member
Member
Joined
Jul 8, 2006
Messages
269
Trophies
1
XP
264
Country
United States
Wouldn't the easiest thing just be to copy the agbsave.bin file back to S: in GodMode9 and then use the menu option to extract it properly?

If that doesn't work for some reason, then agbsave.bin just has a 512byte header that you need to remove in a hex editor. You could also trim off the end to make it the same size as the fresh save you have, but I think that's probably optional. And if I understand correctly, the game you're trying to get the save from is Minish Cap, which is apparently an EEPROM game, so you'll also need to byte-swap the save after removing the header, which you can do here:

https://exelotl.github.io/gba-eeprom-save-fix/
 
  • Like
Reactions: CasualTester

CasualTester

New Member
OP
Newbie
Joined
Nov 23, 2021
Messages
2
Trophies
0
Age
26
XP
39
Country
France
Wouldn't the easiest thing just be to copy the agbsave.bin file back to S: in GodMode9 and then use the menu option to extract it properly?

If that doesn't work for some reason, then agbsave.bin just has a 512byte header that you need to remove in a hex editor. You could also trim off the end to make it the same size as the fresh save you have, but I think that's probably optional. And if I understand correctly, the game you're trying to get the save from is Minish Cap, which is apparently an EEPROM game, so you'll also need to byte-swap the save after removing the header, which you can do here:
First : thank you very much, because both of your solutions worked.

Second : forgive my inability to remember that such basic manipulation was, in fact, possible in GodMod9.

Have an excellent day!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=iIpfWORQWhU