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:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
  • DinohScene @ DinohScene:
    Better start running in your hamster wheel
    DinohScene @ DinohScene: Better start running in your hamster wheel