Retrode Community Forum

General Category => Support => Topic started by: tysontomko on 10/Jan/2014 01:04:07 AM

Title: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 10/Jan/2014 01:04:07 AM
I was so happy when I saw that GB save writing works now with the latest firmware but sadly I can't get it to work and need some help.

- I've got the latest firmware installed
- my RETRODE.CFG is setup correctly as follows to enable sram writing:
[sramReadonly] 0
- in the Pokemon Blue game itself, at title screen I held B+UP+SELECT and successfully erased my game. At the title screen all I see is "new game" and "options" proving no save is present
- in Windows XP I copy/paste my PokemonBlue.srm (confirmed in emulator works and has save info) in and it looks like it works fine, but when I put the game in a Game Boy it acts like it never happened and there's no "Continue" option
- I tried using command line and both of the below commands went through successfully, but after removing device safely and putting the game back in my Game Boy I'm still unable to get any saves working
copy c:\PokemonBlue.srm d:\
AND
type c:\PokemonBlue.srm > d:\PokemonBlue.srm

Everything looks like it goes through fine but in reality the save file never makes it to my Pokemon Blue and I'm stuck without being able to play my game on real hardware anymore. If I'm missing anything please let me know. I'm willing to do anything at this point so let me know if you need any more info from me.

This is really important to me as nerdy as it sounds. If you need me any other info let me know. I'm willing to upload a video of what I'm trying or even get you remoted into my machine if absolutely necessary. I can't help but feel I'm so close!
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 13/Jan/2014 08:34:15 PM
Did savegame _reading_ work for that particular title?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 13/Jan/2014 08:40:46 PM
"Deleting" files will be of absolutely no help here; on the contrary. The data needs to be written into the exact same file, and if the application or the OS complains about it, that likely indicates otherwise.

If nothing else helps, you may want to try the least user-friendly (but most reliable by far) way of copying save data back to Retrode with a hex editor (I prefer HxD). Just open source and target file, replace target data with source data (copy and paste) and save target.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 14/Jan/2014 04:04:38 AM
Did savegame _reading_ work for that particular title?

I tried it overwriting the current save and it didn't work originally so deleting the file was just another random step I took. To answer your question yeah it read the save perfectly. It was cool as crap playing my old save file in an emulator so worst case that is still excellent.

I'll try going the hex editor route tonight and check back with hopefully the good news. Thanks!
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: univbee on 14/Jan/2014 04:12:16 AM
With Pokémon Blue I have the exact same problem, actually. I tried your HxD method; it complains of the drive being full but does let you save anyway. As a sanity check, I closed and reopened the srm file on the Retrode and the new data was there (even used HxD's file compare and it said the Retrode srm had the same data as the save I was trying to copy), but as soon as the drive is ejected everything reverts back to how it was. Here's a step by step of what I've done (on Windows 7 64-bit for what that's worth):

-Confirmed RETRODE.CFG file reflects 0.18d firmware and SRAM read-only set to 0.
-Plugged in Retrode with Game Boy cartridge connected. Retrode drive contains PokemonBlue.gb, PokemonBlue.srm, and RETRODE.CFG
- Opened PokemonBlue.srm in HxD, data is visible.
- Did the copy\paste trick. Despite identical data sizes HxD issues a warning about the drive being full, but lets you continue saving.
- Closed everything, re-opened PokemonBlue.srm in a new HxD instance, confirmed it shows new data.

Is there something that should be done at this point other than ejecting the USB drive?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 14/Jan/2014 10:24:13 AM
HxD should not be complaining about this. Where do you see the "identical data sizes"? Note the existence of two different "paste" commands, Ctrl+V and Ctrl+B (one of them overwrites the existing data, which is what you need). Does the Retrode's light go on when you save the file from HxD?

By the way, reading/comparing the file after writing does not mean anything, since the OS has cached the file and it's not actually reading it back from the cartridge. You really have to do the eject thing in order to see if it worked.

To rule out the possibility of this being a game-specific problem, do you have other games for which writing works?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 14/Jan/2014 05:05:16 PM
I'm at work right now and won't be able to test again until tonight, but here's what I experienced last night. I'm testing on Windows XP pro for all that's worth.

In windows (simple copy/paste) and in HxD (with overwriting data) the indicator light on the Retrode does light up as if it's working correctly. When I eject the game (either by safely removing hardware OR by pressing the reset button on Retrode itself OR rmc-eject in My Computer) the .srm file seems to revert back to how it was no matter what I try.

I am still able to successfully edit the retrode.cfg file and those changes are saving so I do have access of some kind. I've noticed when you purposely delete out a line of the retrode.cfg file and save it, it will automatically fix itself and that is the point when the .srm file also reverts. I've tried to be creative and save in HxD (light on Retrode blinks) then I purposely delete a line on the retrode.cfg file (leaving SRAMreadonly set to 0) with the idea of maybe I can reset it gently so it doesn't revert when I actually eject it, but sadly the same exact thing happens, the .srm file reverts to how it was before I made any changes.

I'll try another GB game tonight to see if it's game specific or not but really this is the only game I need to backup so I'm really really hoping something can be done.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 15/Jan/2014 01:54:37 AM
UPDATE:   It does seem to be Pokemon Blue because I got another game working fine, the details:

I tried Final Fantasy Legends 2 (which is read as Saga2.gb and Saga2.srm), copied Saga2.srm to my computer, renamed to Saga2.sav, loaded it up with a GBA emulator and made some changes, copied/renamed file to Saga2.srm, in Windows XP copy/pasted Saga2.srm to the Retrode (my D drive), pressed the reset button on the Retrode, popped out the game, put it in my Game Boy...and it worked perfectly!  I also confirmed the HxD process works for Final Fantasy Legend 2 but still does not work for Pokemon Blue.

So since we know it's 100% definitely an issue with Pokemon Blue specifically what can we do to get it to work if anything?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 15/Jan/2014 10:04:04 AM
Thanks for checking with the other game. Then there's the possibility that the save battery is low. Does the cartridge retain the save when playing it on the Game Boy?

If that's not the cause, I'd have to have a look at the circuit board inside the cartridge to see if the game has any special mapper chips or something like that. An ever so slight possibility would also be dirt on the cartridge's edge connector, though that would have to be some extremely well-placed piece of gunk on a single pin.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 15/Jan/2014 01:41:00 PM
Pokemon Blue does retain its save normally when playing on the GB itself yes. The battery is probably on its way out as it's the original, but it still works perfectly so I doubt/hope that's not the case. What's more odd, is the Final Fantasy Legends 2 I tested DID have a dead battery as my original save was gone when I turned it on. I was able to create a new save file though and it did save (battery must be running on fumes) then the Retrode worked fine when I transferred over a newer save.

I'll make sure I triple clean it to be 100% sure it's not a dirt or gunk issue, but the fact it's happening to Univbee and myself the odds of that are pretty slim.

As far as looking at the circuitry itself let me know if you need me to take any pictures or anything. I'd be happy to help any way I can!
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: univbee on 15/Jan/2014 07:14:39 PM
For what it's worth the cart I was working from just had its battery replaced with a new one. Also, mine already has a placeholder save on it (just from the start of the game) which persists, it just never gets overwritten by the Retrode.

I'm pretty sure there's something unique that's specific to the Pokemon games. The game has a large save (32 kilobytes versus, for example, FF Legend 2 with 8 kilobytes) due to having to maintain all the stats for hundreds of Pokemon.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 15/Jan/2014 08:52:27 PM
Maybe only a portion of the SRAM is being overwritten then? Anyone care to fire up their hex editors and give it a try?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: MasterOfPuppets on 16/Jan/2014 02:23:02 AM
I get a there is not enough space error when trying to copy a Pokemon Yellow save back.

It seems you are correct in guessing only a portion of the SRAM is written when using a hex editor. I can't tell exactly when it stops (lots of empty space), but by offset 2000 they are different.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 18/Jan/2014 01:45:38 AM
I get a there is not enough space error when trying to copy a Pokemon Yellow save back.

It seems you are correct in guessing only a portion of the SRAM is written when using a hex editor. I can't tell exactly when it stops (lots of empty space), but by offset 2000 they are different.

I'm probably stating the obvious but I tried Yellow and Red and they do the exact same thing. Let me know if there's anything I can do to help but as it stands now I am spent. I've tried being as creative as possible and the results are still the same.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 19/Jan/2014 06:20:34 PM
I guess right now the only solution would be that someone sends me a Pokemon game, and I'll sit down and try around until I have it working :)
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: MasterOfPuppets on 20/Jan/2014 03:23:58 AM
I guess right now the only solution would be that someone sends me a Pokemon game, and I'll sit down and try around until I have it working :)

I don't have a game to spare, but I assume it could be any game with a 32kb save?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 20/Jan/2014 02:49:34 PM
I guess right now the only solution would be that someone sends me a Pokemon game, and I'll sit down and try around until I have it working :)

I don't have a game to spare, but I assume it could be any game with a 32kb save?

I'm sentimental/paranoid as crap with my Pokemon Blue, but I could send you a Pokemon Yellow if you think that would solve the problems with Blue/Red as well (since they also have 32kb saves) and without sounding like an ass I would like that game back after we get it all figured out. It's all good with me though, if someone else wants to send a game in I'm not going to twist anyones arm haha.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 20/Jan/2014 07:14:57 PM
About to (hopefully) shoot a Blue on eBay. Keep your fingers crossed :D
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 21/Jan/2014 04:50:51 AM
Awesome! I'd be more than happy to toss a few dollars your way for the effort.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 21/Jan/2014 08:51:33 AM
There. EUR 7.99 for a good cause, I suppose :)
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 21/Jan/2014 04:03:27 PM
There. EUR 7.99 for a good cause, I suppose :)

Let me know where to send paypal and I'd be more than happy to show my thanks to you for all the good work you've done on such an awesome product. PM or email to my username @gmail.com
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 22/Jan/2014 07:11:57 PM
Try this firmware update (http://www.retrode.com/files/firmware/Retrode2-v0.18d-beta2.zip). For whatever reason, I had arbitrarily limited write accesses to 8 kbytes in the old version, which I now fixed.

Fluent as you are by now in testing SRAM retention, you should be able to check this rather quickly.


Thanks go out to Wannado for finding this glitch! (He knows the source much better by now than I do)
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: korori on 23/Jan/2014 02:17:59 AM
The new update now doesnt let me rip the pokemon games correctly it shows its the same size different check sums. That should not matter though. Also the save file is filled with ÿ, no actual data unless it is encoded. All I did was rename srm to sav. It does show it as 32 Kb.

Added the save attachments. RedMonRed does not work and RedMonRed - Working Version works.

Korori
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: MasterOfPuppets on 23/Jan/2014 03:34:40 AM
The new update now doesnt let me rip the pokemon games correctly it shows its the same size different check sums. That should not matter though. Also the save file is filled with ÿ, no actual data unless it is encoded. All I did was rename srm to sav. It does show it as 32 Kb.

Added the save attachments. RedMonRed does not work and RedMonRed - Working Version works.

Korori

Are you using 3.3v?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: korori on 23/Jan/2014 02:45:33 PM
I will double check when I get home completely forgot about that switch. I might have accidentally left it on the 5v when I was doing oot glitching.


I will update this post if not one post in response to prevent spam.


Korori
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 23/Jan/2014 06:16:19 PM
5V is the correct setting for GB/GBC.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: MasterOfPuppets on 23/Jan/2014 08:08:06 PM
I am still getting a there is not enough space error when trying to copy a Pokemon Yellow save back.

However, saving it with a hex editor works.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: korori on 24/Jan/2014 12:41:54 AM
I had the voltage right I had to force the size to 1mb which made it 512kb and the game copied fine save works just Visual Boy does not like the save file so i have to use bgb instead to play it. I am also having problems transferring save files back to the cart.

Korori
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 24/Jan/2014 11:43:48 AM
VisualBoy needs the file to have .srm extension. Try renaming it before you launch the emulator.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: korori on 24/Jan/2014 04:35:49 PM
Weird looks like I just needed to restart my computer for Visual Boy. Because I tried both srm and sav last night and it kept giving me write/load issues. Even though I copied them to my Desktop. Thank you Matthias_H.


Korori
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 25/Jan/2014 02:25:14 AM
Success!

After updating my firmware I am now able to straight up copy/paste save files to my Pokemon Blue with ease. My original team of Pokemon from the 90s is now back on my cart and loving life haha. Thanks so much man, the effort was truly appreciated!
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: MasterOfPuppets on 25/Jan/2014 02:45:50 AM
Success!

After updating my firmware I am now able to straight up copy/paste save files to my Pokemon Blue with ease. My original team of Pokemon from the 90s is now back on my cart and loving life haha. Thanks so much man, the effort was truly appreciated!

That's odd, because I still can't paste a Pokemon Yellow save. I even reinstalled the firmware to make sure everything was installed properly.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 27/Jan/2014 03:10:38 PM
That's odd, because I still can't paste a Pokemon Yellow save. I even reinstalled the firmware to make sure everything was installed properly.

I've got a Yellow at home I can try but it will be another 14 hours or so until I'm able to.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: MasterOfPuppets on 28/Jan/2014 01:44:03 AM
I've got a Yellow at home I can try but it will be another 14 hours or so until I'm able to.

It would be appreciated.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Haldrie on 27/Feb/2014 07:31:39 AM
I just got my Retrode yesterday and I know it's been a month since the last post here but I noticed no real solution was mentioned in this thread and I'm having the same issue with all of my Pokemon games (Red, Yellow, Silver, Gold). Every time I copy a save back to the cart (or copy a save from an emulator) only the data up to about 0x2000 gets transferred and the rest of the save data remains unchanged (used the file compare in HxD to verify). I have tried many of the suggestions in this thread with no success. I have the latest firmware (.18d) on my Retrode and the batteries on my carts are still working and allowing me to save normally (I replaced the ones in Silver and Gold fairly recently).
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: crw on 28/Feb/2014 03:48:12 PM
I have had success transferring a Pokemon Blue save file from the cartridge to PC.  I made changes on the PC in VBA-M, and successfully transferred back the save file to the cartridge.

Are you using the firmware linked from this thread (posted 22 Jan 2014)?  It should be v0.18d-beta2.  The firmware linked on the retrode.org main page has not yet been updated as far as I know.

I haven't tried with Yellow or Gold / Silver.  Maybe you could test those out...
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Haldrie on 28/Feb/2014 06:40:36 PM
I assumed that post was talking about the beta1 version. Thank you very much that worked, at least as far as doing a full wipe of Silver without the battery in it but will test with an actual save in a bit.

[EDIT]
Did a few erase and restores of saves and it's working perfectly! :D
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: tysontomko on 01/May/2014 06:25:59 PM
That's odd, because I still can't paste a Pokemon Yellow save. I even reinstalled the firmware to make sure everything was installed properly.

I've got a Yellow at home I can try but it will be another 14 hours or so until I'm able to.

Sorry for taking about 10,000 years to respond. My brother apparently grabbed my copy of Pokemon Yellow before he took off and he's currently a few states away. I'll still be able to test this but it's likely going to be July until I get out there.

In better news, Red/Blue are still working like a charm, that much I can guarantee.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Haldrie on 19/Jun/2014 07:32:31 PM
I have since gotten yellow's save working and all of my other Gameboy games seem to work as well with the new firmware. Only downside is I found out a couple of the resistors in my yellow cart are leaking causing the game to crash randomly. At least I have my save from the cart now so I can keep playing via the ROM in an emulator as a worst case but then my poor Gameboy Player won't get as much use.
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: crw on 20/Jun/2014 05:37:23 PM
Thanks for testing that; appreciate it!
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Bloche on 29/Sep/2015 11:03:44 PM
Hello everybody. As I have the same problem with my Pokemon save file I wanted to download the firmware version v0.18d-beta2 from the link above, but unfortunately it's not available on the website anymore. Is there anyone, who knows where to get this update from?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Wannado on 03/Oct/2015 09:38:20 PM
... I wanted to download the firmware version v0.18d-beta2 from the link above, but unfortunately it's not available on the website anymore. ...

I guess it was just renamed to v0.18d-beta, since the previous file of that name was no longer useful. The time stamp of the hex file inside the current Retrode2-v0.18d-beta.zip (http://www.retrode.com/files/firmware/Retrode2-v0.18d-beta.zip) is very close to that of Matthias_H's post linking the beta2 file.

So I suggest you try the current v0.18d-beta. Be sure to pick the right file for your hardware (Retrode 1 or 2).
See the official Retrode firmware page (http://www.retrode.org/documentation/firmware/).
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: nielsk on 11/Oct/2015 11:52:27 AM
I have the same problem and I am using the Beta from the website. I have the problem with Link's Awakening that also has a 32KB-srm file size. Is the beta on the website really the beta2? Does someone had success with 0.18d beta from the website and 32KB-srm files?
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Nori on 03/Dec/2015 10:48:02 PM
Yeah I'd like confirmation on that too. Is this really the beta2? The link for that one in this thread is no longer working. :(
Title: Re: Game Boy save (Pokemon Blue) not transferring back to the cart correctly
Post by: Matthias_H on 04/Dec/2015 09:13:48 PM
All firmware files should be up to date now. Added Wannado's beta3.

To the firmware page... (http://www.retrode.org/documentation/firmware/)