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

Pokemon Emerald: Fix client crash if 0.4.6 client connects to 0.4.5 seed #3146

Merged
merged 2 commits into from
Apr 18, 2024

Conversation

Zunawe
Copy link
Collaborator

@Zunawe Zunawe commented Apr 14, 2024

What is this fixing or adding?

A client on main connecting to a seed generated on 0.4.5 will encounter an exception if the player is playing legendary hunt, catches Ho-Oh, and Ho-Oh is a valid legendary hunt encounter.

This is the only thing needed to make the client backwards compatible.

Also bumps the required client version to avoid the crash in the other direction, where a game is generated on main/0.4.6 and a player attempts to connect with a 0.4.5 client.

How was this tested?

Generated on 0.4.5, set the Ho-Oh flag, and ran on main and this branch. main hit an exception, this branch fixed it.

@Zunawe Zunawe added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Apr 14, 2024
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Apr 14, 2024
@Zunawe
Copy link
Collaborator Author

Zunawe commented Apr 14, 2024

Forgot to mention, this is because of #3069. I was expecting a few more changes might happen between, including potentially a patch update, which would have made backwards compatibility nonviable anyway. Otherwise I'd have probably included this in that PR.

Copy link
Collaborator

@ScipioWright ScipioWright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine when connecting with a 0.4.6 client

@Berserker66 Berserker66 merged commit ee1e578 into ArchipelagoMW:main Apr 18, 2024
15 checks passed
@Zunawe Zunawe deleted the emerald-ho-oh-backward-compat branch May 23, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants