pkmn-chest icon indicating copy to clipboard operation
pkmn-chest copied to clipboard

[Bug Report] Pokemon Emerald save from mGBA will not load

Open flanter21 opened this issue 2 years ago • 5 comments

Describe the bug mGBA appends several bytes to the end of the Pokemon Emerald save, probably for the RTC (as I could not replicate this issue with LeafGreen which does not have a ).

To Reproduce Steps to reproduce the behavior:

  1. Copy save file last modified/created by mGBA to SD card.
  2. Open save file in pkmn-chest
  3. See error

Expected behavior Save file will load as normal.

Screenshots If applicable, add screenshots to help explain your problem.

Console (please complete the following information):

  • [X] DS/DSi/3DS using a Flashcard
  • [ ] DSi (Using SD card)
  • [ ] 3DS (Using SD card)
  • Version [v2.2]

Additional context Save file will run just fine in mGBA and GBArunner2. Also works in pkhex. Will also work in pkmn-chest after removing the added bytes at the end of the file (after the string of FF FF FF FF...).

flanter21 avatar Jan 01 '24 16:01 flanter21

mGBA appends the rtc to the end of the save file as you stated. This makes the file larger than most save managers are expecting, so it won't load. To fix that, open the save in a hex editor on your computer, delete the last line, and then save it. In mGBA settings you can also disable RTC for games so this does not continue to happen.

ColdStoneSys avatar Feb 01 '24 18:02 ColdStoneSys