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.
  • K3Nv2 @ K3Nv2:
    why
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, it's not funny
  • K3Nv2 @ K3Nv2:
    ok
  • BigOnYa @ BigOnYa:
    Wut?
  • K3Nv2 @ K3Nv2:
    That's not funny
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    So two cannibals where eating a clown and one says to the other. Hey does this taste funny to you?
    +2
  • K3Nv2 @ K3Nv2:
    What do you call a slow car? Retired
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Did you hear about the police car that someone stole the wheels off of? The police are working tirelessly to find the thieves.
    +2
  • K3Nv2 @ K3Nv2:
    A firefighter got arrested for assault his main claim was what I was told he was on fire
    +2
  • BigOnYa @ BigOnYa:
    What do you call a hooker with a runny nose? Full
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    What do you tell a woman with two black eyes? Nothing you already told her twice!
  • K3Nv2 @ K3Nv2:
    Diddy also works
  • K3Nv2 @ K3Nv2:
    A scientist heard the word batman so he put a naked lady in a cage with a bat
  • Psionic Roshambo @ Psionic Roshambo:
    Chuck Norris won a staring contest, with the sun.
  • K3Nv2 @ K3Nv2:
    A vampires favorite thing to do is moon you
  • BigOnYa @ BigOnYa:
    What's the difference between an airplane, and Ken's mom? Not everyone has been in an airplane.
  • K3Nv2 @ K3Nv2:
    What's the difference between @BigOnYa and his wife? Nothing both want to bone me
    +3
  • RedColoredStars @ RedColoredStars:
    How much wood could a wood chuck chuck if a wood chuck could chuck norris
    +1
  • BakerMan @ BakerMan:
    how do i know? you're a guy, and he wants to bone every guy on this site (maybe, idk)
    +1
  • K3Nv2 @ K3Nv2:
    He wants to bone anything with a dick
    +1
  • Xdqwerty @ Xdqwerty:
    Good night
    +1
  • BigOnYa @ BigOnYa:
    Nighty night, big day tomorrow. Congrats.
    K3Nv2 @ K3Nv2: https://www.instagram.com/reel/C7iLZ35NrQt/?igsh=MWd2Z3U0dmNlMmNxcw==