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
25
XP
29
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
253
Trophies
1
XP
201
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
25
XP
29
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!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
  • BentlyMods @ BentlyMods:
    My fav actvity is:

    mario-dancing.gif
  • Psionic Roshambo @ Psionic Roshambo:
    Do the Mario lol
  • K3N1 @ K3N1:
    🍑
  • K3N1 @ K3N1:
    Whoever developed Bramble was smoking that good shit fucking gnomes
    K3N1 @ K3N1: Whoever developed Bramble was smoking that good shit fucking gnomes