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
  • K3Nv2 @ K3Nv2:
    That's been around since I was in elementary
  • Xdqwerty @ Xdqwerty:
    @BakerMan, i recall watching it on fox
  • SylverReZ @ SylverReZ:
    Who watches FOX nowadays? Only reason to get alt-right viewers interested.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, that was like when i was 10
  • SylverReZ @ SylverReZ:
    @Xdqwerty, We didn't have FOX Kids over here, back then it was Jetix.
  • SylverReZ @ SylverReZ:
    Similar to FOX Kids. I remember when Sonic X aired.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, the latin american fox feed doesnt air news, it airs movies and tv shows
    +1
  • SylverReZ @ SylverReZ:
    Ah, I see.
  • Xdqwerty @ Xdqwerty:
    and i wasnt even born when fox kids/jetix was alive
  • Xdqwerty @ Xdqwerty:
    also a couple years ago latin american fox got renamed to star channel
  • SylverReZ @ SylverReZ:
    Yes?
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, sorry
    i thought you didnt read the last couple messages before quoting you agin
  • BakerMan @ BakerMan:
    ah sonic x, that show is valid
  • BakerMan @ BakerMan:
    (of course the mf with a sonic pfp would say that 😭)
    +1
  • BigOnYa @ BigOnYa:
    @Xdqwerty you are not dumb or stupid, you need to stop saying that, you are very smart, even about alot of things I have no clue about. We all love you here, like a big family.
    +1
  • K3Nv2 @ K3Nv2:
    Yeah @BigOnYa love me so much he started yelling at me for having my shoes on in the bed when he caught me with his wife
    +2
  • BigOnYa @ BigOnYa:
    True, I don't want mud crumbs in my bed, and btw you left without paying your tab. Ill add it to next month but getting tired of extending.
  • K3Nv2 @ K3Nv2:
    I hope silent hill 2 turns out good
    +1
  • BigOnYa @ BigOnYa:
    I seen that, hope so too, the first was so epic back then.
  • K3Nv2 @ K3Nv2:
    Didn't look into much is it just a remake
  • BigOnYa @ BigOnYa:
    Only thing drive me crazy is all these new horror games nowadays is its so dark, all time. I can't even play them. I understand they trying to create spooky but be creative a little, not just darkness with pop out scare scenes.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, either that or mascot horror
  • Xdqwerty @ Xdqwerty:
    gonna watch gintama for the first time
    Xdqwerty @ Xdqwerty: gonna watch gintama for the first time