Deoxyz

Ruby Savefile Detection Bug

9 posts in this topic

Recommended Posts

Deoxyz    97

PKHeX is detecting my Pokemon Ruby savefile as an Emerald savefile, whether it's directly from the cartridge or had been used in an emulator. It doesn't seem to do this with any other game, but I don't think it's a problem with my save.

Edited by Deoxyz

Share this post


Link to post
Share on other sites
theSLAYER    912
5 hours ago, Deoxyz said:

PKHeX is detecting my Pokemon Ruby savefile as an Emerald savefile, whether it's directly from the cartridge or had been used in an emulator. It doesn't seem to do this with any other game, but I don't think it's a problem with my save.

upload your save for @Kaphotics to see.

Share this post


Link to post
Share on other sites
Deoxyz    97
10 hours ago, theSLAYER said:

upload your save for @Kaphotics to see.

Alright, save attached. I had assumed the problem wasn't on my part.

The cart and savefile are over a decade old, so I'm positive it's not a bootleg either if for some reason that would cause the issue.

 

Edited by Deoxyz
removed save

Share this post


Link to post
Share on other sites
Kaphotics    243

The GameCode field has been modified/corrupted, possibly due to cheat codes?

Either way, just edit block0's 0xAC value to 00 00 00 00 (@ 0x80AC && 0x170AC) and it should be recognized correctly.

  • Like 2

Share this post


Link to post
Share on other sites
Deoxyz    97

@Kaphotics

Thanks a bunch, that fixed it B|

@theSLAYER

No.

It's possible that I used an AR at one point on it, but I can't remember with that specific cartridge. I guess that'd be the only thing that could've caused it though.

Edited by Deoxyz

Share this post


Link to post
Share on other sites
theSLAYER    912
On 07/01/2017 at 0:58 AM, Kaphotics said:

The GameCode field has been modified/corrupted, possibly due to cheat codes?

Either way, just edit block0's 0xAC value to 00 00 00 00 (@ 0x80AC && 0x170AC) and it should be recognized correctly.

It's my turn to experience this.

Changing those block's values to 00 00 00 00 in pkhex still prompts as Emerald,
So I imagine PKHeX is also reading other values?

Share this post


Link to post
Share on other sites
Kaphotics    243
54 minutes ago, theSLAYER said:

It's my turn to experience this.

Changing those block's values to 00 00 00 00 in pkhex still prompts as Emerald,
So I imagine PKHeX is also reading other values?

Your save file's block0 will probably be in a different location. You can get the offset by setting a breakpoint on the getIsG3SAV method and observe where it is fetching GameCode from.

Share this post


Link to post
Share on other sites
theSLAYER    912
41 minutes ago, Kaphotics said:

Your save file's block0 will probably be in a different location. You can get the offset by setting a breakpoint on the getIsG3SAV method and observe where it is fetching GameCode from.

alrighty, I'll do that!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now