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

Generate: improve error message for missing game #1857

Merged
merged 4 commits into from
Jun 23, 2023

Conversation

Berserker66
Copy link
Member

@Berserker66 Berserker66 commented Jun 2, 2023

What is this fixing or adding?

When using a world that doesn't exist, such as when missing an apworld, the user would just get a KeyError: <name of world>

How was this tested?

Exception: No world found to handle game fAcToRiO. Did you mean 'Factorio' (100% sure)? Check your spelling or installation of that world.

If this makes graphical changes, please attach screenshots.

@ThePhar ThePhar added the is: enhancement Issues requesting new features or pull requests implementing new features. label Jun 3, 2023
Copy link
Member

@black-sliver black-sliver left a comment

Choose a reason for hiding this comment

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

if ret.game in AutoWorldRegister.world_types: in line 469 and else in line 493 can go now?

@black-sliver
Copy link
Member

As a side note, the fuzzy matching is not very good:

No world found to handle game The Binding of Isaac Repentance. Did you mean 'The Legend of Zelda' (35% sure)?

:D

@Berserker66
Copy link
Member Author

As a side note, the fuzzy matching is not very good:

No world found to handle game The Binding of Isaac Repentance. Did you mean 'The Legend of Zelda' (35% sure)?

:D

I mean, half the words are there!

Copy link
Member

@black-sliver black-sliver left a comment

Choose a reason for hiding this comment

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

The last commit looks super confusing in the github view, but I think it's fine

@Berserker66 Berserker66 merged commit 78b9812 into main Jun 23, 2023
@Berserker66 Berserker66 deleted the generate_missing_world branch June 23, 2023 08:17
Witchybun pushed a commit to Witchybun/Archipelago that referenced this pull request Jun 26, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: enhancement Issues requesting new features or pull requests implementing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants