Saving does not work for GBC games with an internal clock (SVN1025)

This particular forum is archives, bug reports should be made at https://github.com/visualboyadvance-m/v ... e-m/issues


Post Reply
Blaziken257
Junior Member
Posts: 15
Joined: Thu Jul 31, 2008 11:35 pm

Saving does not work for GBC games with an internal clock (SVN1025)

Post by Blaziken257 »

I downloaded the brand new version of VBA-M: SVN1025. It has a new bug, though. If I play any GBC game with an internal clock in it (namely Pokémon Gold/Silver/Crystal or Telefang), I get this error message:

 

Battery file's size incompatible with the rom settings

Warning : save of the battery file is now disabled !

 

It still loads the save, but it cannot make a new save at all. I'm guessing this has to do with the fact that saves for games with an internal clock have slightly bigger filesizes?

 

GBA games, such as Pokémon Ruby/Sapphire, are not affected.

 

And just so people don't say "This works fine for me," I was running this on Windows 7 64-bit. Hopefully I'm not the only one who experiences this glitch.

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Saving does not work for GBC games with an internal clock (SVN1025)

Post by Squall Leonhart »

You aren't the only one that experienced this bug in 1.7 saves when trying to load them in 1.8 and vba-m.

 

VBA-M behavior and size is correct.

 

VBA 1.7 had RTC corruption as the files were clipped to 32K (32,768) exactly where the RTC data requires an additional 4-48bytes for 32,816

 

TGB dual seems to think 4 bytes, but most other cgb emulators can read the 48bytes as well

 

anyway, the easy fix is to use a hex editor and delete everything after 32768 bytes. this will revert any corrupted battery data.

Last edited by Squall Leonhart on Wed Jun 15, 2011 2:36 am, edited 1 time in total.
Post Reply