gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Flash Equipment > Read/Write GBA saves

#126698 - schweitzer - Thu Apr 26, 2007 1:32 am

Can I use a F2A USB Cable to read and write game saves from my original GBA games without buying anything else?
If I could I would just like to read and write saves to my original GBA games, I do not care about ROMs, just saves.

#126701 - dantheman - Thu Apr 26, 2007 1:38 am

Indeed you can, using the shareware FlashManager program. It nags you each time you do any action, but otherwise it's fully functional.

#126704 - schweitzer - Thu Apr 26, 2007 1:49 am

Where can I find this program?
Thanks for your help!

So the F2A USB Cable Alone
Code:
http://www.linker4u.com/pp/item_detail.asp?itemID={AB02EC20-5BE6-4EE6-9EC9-E225FD3C0BB6}

Will work?
Where do I get drives for it? The links on the bottom of that page do not work!

It will read saves from my original GBA games so they could say, be used in an emulator, then put back into the GBA game?

#126706 - dantheman - Thu Apr 26, 2007 1:56 am

Find the program at http://mootan.hg.to/fmgba/ and scroll down until you find the latest beta version available in English. As of right now it's v3.00 beta15 I believe.

Yes, that cable will let you backup your save files. There's an issue with EEPROM saves where every 8 bits is in reverse order, which can be fixed with the following Perl script:
Code:
#!/usr/bin/perl

if (!$ARGV[0]) {
  print "Usage: 8bflip.pl gamesave.sav\n";
  print "produces the output file gamesave-flipped.sav\n";
  exit;
}
$infile = $ARGV[0];
$outfile = $ARGV[0];
$outfile =~ s/\..*$/-flipped\.sav/;

$buffer = "";

open(INFILE, "<$infile") or die "cannot open input file";
binmode(INFILE);
open(OUTFILE, ">$outfile") or die "cannot open output file";
binmode(OUTFILE);

while (read INFILE, $buffer, 8) {
  $buffer = reverse $buffer;
  print OUTFILE "$buffer";
}
 
close(INFILE);
close(OUTFILE);


Save it as 8bitflip.pl and execute it after installing Perl on your system. It might require usage of the command prompt, but I've kinda forgotten and I don't have Perl reinstalled on my computer yet (recently reformatted).

#126707 - schweitzer - Thu Apr 26, 2007 2:02 am

So I run that before running the Flash Manager program?

Another question is could I load my save from my cart and save it to a friend's cart? Both official.

#126710 - dantheman - Thu Apr 26, 2007 2:05 am

Use FlashManager to backup the save, then use the Perl script to reverse every 8 bits. If sending a save to your cart, first run the Perl script to re-reverse it and then use FlashManager to send it to your cartridge. Keep in mind this is only for EEPROM saves. Use a list somewhere to figure out which games use which types of saves.

And yes, you should be able to copy a save to a friend's cart using this method, and the Perl script would not be necessary.

#126713 - schweitzer - Thu Apr 26, 2007 2:10 am

Is Pokemon Emerald EEPROM?
If the save isn't EEPROM, do I not have to bother with reversing?

#126714 - tepples - Thu Apr 26, 2007 2:13 am

If you are just going to back up the save, and you are not planning to edit the save using a cheat program (analogous to AnimalMap for Animal Crossing: Wild World), then you don't need to bother reversing and unreversing the file; you can just store it reversed.

SRAM and flash saves aren't reversed; you can use those as is. The Pok?mon games, like Super Mario Advance 4, use a 128 KiB flash save.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.


Last edited by tepples on Thu Apr 26, 2007 2:16 am; edited 1 time in total

#126715 - schweitzer - Thu Apr 26, 2007 2:14 am

Is Pokemon Emerald EEPROM?
If the save isn't EEPROM, do I not have to bother with reversing?

Can I use my saves in emulators or not?

EDIT: OOPS no wonder it had quotes, someone replied before I pressed edit.
Is there a save editing program for Emerald saves? I know about Pokesav for the DS games but is there a similar thing for Emerald?

#126716 - tepples - Thu Apr 26, 2007 2:16 am

What would you want to use your save in an emulator for? Don't most save editors run as native Windows programs, not emulated GBA programs?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#126717 - schweitzer - Thu Apr 26, 2007 2:18 am

No I mean run the game save in an emulator so I can unlimit FPS when I am at home and dump it back to the cart for when I leave.

What is a save editor for emerald though?

Thanks you guys have been very helpful!

#126722 - tepples - Thu Apr 26, 2007 2:41 am

schweitzer wrote:
No I mean run the game save in an emulator so I can

...get warned for discussing the use of ROM backups in violation of rules?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#126724 - schweitzer - Thu Apr 26, 2007 2:44 am

Oh I am not asking about the ROMs, I just want to know if the saves are compatible with emulators.

#126727 - tepples - Thu Apr 26, 2007 2:51 am

Why would you use the saves with emulators, if you are not using the emulators with ROMs?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#126728 - schweitzer - Thu Apr 26, 2007 2:52 am

I want to use the save from a game I own on the emulator, that is totally legal. But lets just forget that question.

The only 2 questions I still have are
1. Can I put the save from my game onto another persons game
2. What is a good pokemon emerald save editor

thanks

#128173 - garmuic - Wed May 09, 2007 9:50 am

Can you read and write game saves from original GBA carts with a M3 Perfect?

#128230 - dantheman - Wed May 09, 2007 10:01 pm

Use Chishm's "Cart Save" program, available at http://chishm.drunkencoders.com/SendSave/index.html#cart_save

It saves the .sav file to any DLDI-capable cart, which should include the M3 Perfect.

#128244 - tepples - Wed May 09, 2007 10:56 pm

Unless the SLOT-2 card can't access the FAT after a hot-swap. SuperCard SD using scsd_moon.dldi has this limitation. Do the M3 drivers?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#128306 - garmuic - Thu May 10, 2007 1:09 pm

Thanks!

BTW, Could someone check if the M3 Perfect can access the FAT after swapping as tepples said.