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

Mega Man X -- Upgrades don't save #26

Closed
taylorfry opened this issue Sep 26, 2024 · 8 comments
Closed

Mega Man X -- Upgrades don't save #26

taylorfry opened this issue Sep 26, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@taylorfry
Copy link

Mega Man X has capsules that give upgrades throughout levels. After collecting one of the upgrades and either dying or completing the level, the upgrade doesn't stay like it should. Dying to a boss should place you in the room before the boss room, but it sends you to the beginning of the level. I read this may be a bad ROM or a piracy deterrent, but trying to recreate the issues with the same ROM on the PC version of SNES9x provides no problems at all.

@Anonymous941
Copy link

What's the hash of the ROM?

@taylorfry
Copy link
Author

This is what I get using https://www.romhacking.net/hash/

Database match: Mega Man X (USA) (Rev 1)
Database: No-Intro: Super Nintendo Entertainment System (v. 20210222-050638)
File/ROM SHA-1: C65216760BA99178100A10D98457CF11496C2097
File/ROM CRC32: DED53C64

@Anonymous941
Copy link

That's definitely a clean ROM, so the emulator must be the issue

@matbo87
Copy link
Owner

matbo87 commented Sep 29, 2024

@taylorfry
The emulator is based on the snes9x 1.43 core (snes9x2005). The reason why bubble2k chose this rather old core is most likely better performance at the cost of poorer accuracy/compatibility.
I would guess that older snes9x versions don't handle these anti-piracy things like in Mega Man X very well. Can you share the savegame so i can easily reproduce the issue? You can also try retroarch with the same core to check if it's really a core issue or if some of the core changes in bubble2k's code cause this behavior.

@taylorfry
Copy link
Author

The Mega Man games use passwords instead of save files so I've attached a couple save states. The first one is at the level select screen and the second is right after getting the leg upgrade.
Mega Man X save states.zip

@matbo87 matbo87 added the bug Something isn't working label Oct 8, 2024
matbo87 added a commit that referenced this issue Oct 12, 2024
Commit 2ade603 caused a regression in Mega Man X (issue #26)
@matbo87
Copy link
Owner

matbo87 commented Oct 12, 2024

@taylorfry Thanks for the save state. I was able to reproduce the leg upgrade issue. There is a new build which you can find here. The upgrade should now remain after dying.
Is "Dying to a boss should place you in the room before the boss room" also solved with this new build? I'm not very familiar with this game and didn't really have the patience to continue the level until the boss fight. If this bug still persists, another save state may help :)

@taylorfry
Copy link
Author

Thank you so much! I tested it out by dying and completing the level and the upgrade stays in both scenarios. I really appreciate the fix. Is there anyway I can help support the work you've done?

@matbo87
Copy link
Owner

matbo87 commented Oct 13, 2024

@taylorfry Nice to hear that it works.

Reporting errors with clear reproduction steps, as you have done, is already very supportive. Just keep in mind that I probably won't be able to solve a game-related bug every time. My programming skills are limited in this respect :) In this specific case it was relatively easy as it was a regression and still worked in version 1.30.

@matbo87 matbo87 closed this as completed Oct 13, 2024
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

3 participants