Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
flanter21 opened this issue Jan 1, 2024 · 5 comments
Open
1 of 3 tasks

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

flanter21 opened this issue Jan 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@flanter21
Copy link

flanter21 commented Jan 1, 2024

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):

  • 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 flanter21 added the bug Something isn't working label Jan 1, 2024
@Pinkietron
Copy link

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.

@endrift
Copy link

endrift commented Sep 29, 2024

To fix it, pkmn-chest could also add support for the footer.

@Hardivh
Copy link

Hardivh commented Nov 7, 2024

It's happening to me too.

Only on Emerald, I have a save file for Fire Red that works normally

@Pinkietron
Copy link

Fire Red does not have RTC which would be the reason why only RSE is affected by this.
Try the fix I posted above.

@Hardivh
Copy link

Hardivh commented Nov 7, 2024

Oh damn, it worked!
I opened a hex editor online, uploaded the Emerald save and deleted the last line. It's now properly working

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants