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

Plando: fix automatic locations only working for the first world #2063

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

Silvris
Copy link
Collaborator

@Silvris Silvris commented Jul 31, 2023

What is this fixing or adding?

An issue would occur when attempting to plando items to multiple worlds of varying games. "location_names" would be populated by the locations of the first game, and then not cleaned afterwards. Thus, later iterations of the loop would fail as it would be looking for locations from the first game in subsequent games. This fixes the issue by setting "valid_locations" to a copy of "location_names" if it is non-empty or the list of locations per game if it is.

How was this tested?

https://cdn.discordapp.com/attachments/1135349606176260258/1135350398727766116/Plando_Dumping_All_Items_to_Single_Game.zip
Test sample given from bug report, "A Link to the Past" and "Ocarina of Time" have Triforce Pieces plando'd into 5 different worlds. Without this change, Triforce Pieces would only be placed into Radz Awakening and Radz 5 (both LADX), while with this change Triforce Pieces are placed into all 5 worlds.

If this makes graphical changes, please attach screenshots.

BaseClasses.py Outdated Show resolved Hide resolved
@ThePhar ThePhar added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: core Issues/PRs that touch core and may need additional validation. labels Jul 31, 2023
@black-sliver black-sliver changed the title MultiWorld: Reset "location_names" for each iteration of get_unfilled_locations_for_players Plando: fix automatic locations only working for the first world Jul 31, 2023
@black-sliver black-sliver merged commit a9fb7e2 into ArchipelagoMW:main Jul 31, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…hipelagoMW#2063)

* copy location_names for each iteration

* remove copy, just set the list
kl3cks7r pushed a commit to kl3cks7r/Archipelago that referenced this pull request Dec 15, 2023
…hipelagoMW#2063)

* copy location_names for each iteration

* remove copy, just set the list
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…hipelagoMW#2063)

* copy location_names for each iteration

* remove copy, just set the list
@Silvris Silvris deleted the plando_worlds_fix branch April 16, 2024 05:26
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: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants