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

Core: Allow any valid priority location in yaml even when they are not used in a given game. #2128

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

CaitSith2
Copy link
Member

Please format your title with what portion of the project this pull request is
targeting and what it's changing.

ex. "MyGame4: implement new game" or "Docs: add new guide for customizing MyGame3"

What is this fixing or adding?

Generation errors when someone specifies a location that IS a valid location, but is not actually in use for the current game, such as "Cantoran" in time spinner, when the Cantoran boss option is off, or location group name "Everywhere" in certain games, such as Zillion. (that game has 21 location names defined for each of the 74 rooms in the game, of which, only at most 2 of them are ever used in a given game.)

How was this tested?

Generated games using a yaml that specifies priority_locations Everywhere, for games that absolutely doesn't use ALL of its named locations no matter what.

If this makes graphical changes, please attach screenshots.

For some games, the use location group name "Everywhere", results in the generator failing no matter what,  as only a subset of the location names will actually be present.  A good example of that is Zillion.  It has 21 location names per room, of which, only at most 2 is ever used.
@CaitSith2 CaitSith2 changed the title Allow any valid priority location in yaml even when they are not used in a given game. Core: Allow any valid priority location in yaml even when they are not used in a given game. Aug 28, 2023
Main.py Outdated Show resolved Hide resolved
@Berserker66 Berserker66 merged commit 4a27fae into main Sep 20, 2023
@Berserker66 Berserker66 deleted the allow_unused_priotty_locations branch September 20, 2023 09:22
@ThePhar ThePhar added is: enhancement Issues requesting new features or pull requests implementing new features. affects: core Issues/PRs that touch core and may need additional validation. labels Oct 16, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…t used in a given game. (ArchipelagoMW#2128)

* Allow any valid priority location in yaml.

For some games, the use location group name "Everywhere", results in the generator failing no matter what,  as only a subset of the location names will actually be present.  A good example of that is Zillion.  It has 21 location names per room, of which, only at most 2 is ever used.


Co-authored-by: Fabian Dill <[email protected]>
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…t used in a given game. (ArchipelagoMW#2128)

* Allow any valid priority location in yaml.

For some games, the use location group name "Everywhere", results in the generator failing no matter what,  as only a subset of the location names will actually be present.  A good example of that is Zillion.  It has 21 location names per room, of which, only at most 2 is ever used.


Co-authored-by: Fabian Dill <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. 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