FIX94 / gba-link-cable-dumper

A gc and wii homebrew app to get gba bios, roms and saves via the gc gba link cable
MIT License
202 stars 27 forks source link

[Request] .sav Dumping #1

Closed GB-CG closed 8 years ago

GB-CG commented 8 years ago

Any possibility?

Thanks for making this cool app, works great for me so far.

FIX94 commented 8 years ago

good to hear it works great for you, I only had 3 gba games laying around to test it and since all 3 came out with the correct hash I just went ahead and released it. I probably will add save support at a later point.

FIX94 commented 8 years ago

just pushed out a new release, it works with my 3 gba games I had laying around (all EEPROM saves)

GB-CG commented 8 years ago

Ooh nice. I'll check it out in a bit.

GB-CG commented 8 years ago

Um, it's giving me a cpgz file when I open the zip file. EDIT: Never mind, I got the file.

FIX94 commented 8 years ago

well I had the wrong settings selected when compressing so I also re-uploaded it with my regular ones ;)

SuperrSonic commented 8 years ago

Many thanks for this, I always wanted to backup my saves.

I dumped and tested on mGBA: Four games with 64KB Flash. Two games with SRAM. And one game with 8KB EEPROM.

FIX94 commented 8 years ago

that sounds incredible! I had to do quite a fair amount of work for my EEPROM saves to get read out properly so if the others just work right off thats great!

GB-CG commented 8 years ago

Yeah, I backed up the saves of Mario Kart Super Circuit, Pokémon Ruby, Metroid Fusion onto mGBA and it works perfectly.

However, I also tried restoring a save onto Metorid Fusion (PAL, AMTP01) and it got an error saying 'Save has the wrong size'. What am I doing wrong?

FIX94 commented 8 years ago

I assume it detected it wrong at that time, I know sometimes the EEPROM detection can be wrong

FIX94 commented 8 years ago

just looked at fusion and its only a SRAM save so it should be 32KB no matter what, can you confirm that? because then I would not understand why it failed to restore right now.

GB-CG commented 8 years ago

The restore worked with Mario Kart Super Circuit (512k flash) and Superstar Saga (EEPROM 4k/64k)

I opened my Metroid Fusion cart and it's 256k SRAM. I could try again. Yes, It is 32kb.

GB-CG commented 8 years ago

Ok, now it works! I think what happened before is that I dumped Fusion on v1.0 and then I backed up the save on v1.1 and it didn't work. Version conflict?

So what I've done is, delete the rom from 1.0, then redump the rom and the save on v1.1 and it worked!

FIX94 commented 8 years ago

thats entirely possible. also I just pushed up v1.2 with now for sure fixed eeprom support, tested it with 3 eeprom games over and over again and didnt have any detection issues anymore.

GB-CG commented 8 years ago

I tried v1.2 and that didn't work either.

Try using my save to see if it works on your end. This save is from the 1.0 metroid dump. (Link removed since the issue's been resolved)

FIX94 commented 8 years ago

...wait, why is that one 64kb instead of 32?

GB-CG commented 8 years ago

I don't know. When I dumped my metroid save with v1.1, that's what I got.

FIX94 commented 8 years ago

well you only get a 64kb save with FLASH but there is no FLASH string in metroid fusion as far as I can tell...

FIX94 commented 8 years ago

so really I couldnt tell you how that happend to be honest, maybe some FAT error?

GB-CG commented 8 years ago

I mean, it's working fine now when I redumped the save. As you say, sometimes the EEPROM detection can be wrong. Here's the inside of the cart: img_0177

FIX94 commented 8 years ago

lets hope there wont be other issues I guess ;)

GB-CG commented 8 years ago

I'm going to try backup my collection and see how that goes.

For now, I think it's safe to close this issue. Despite the odd issues, thanks again for adding this cool feature. :) Update 22/12/2016: No problems so far! Thanks again.