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: Region handling customization #3682

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Core: Region handling customization #3682

merged 2 commits into from
Sep 5, 2024

Conversation

Berserker66
Copy link
Member

What is this fixing or adding?

Adds #1764 as a per-world-instance option, given we didn't find a more performant option and some devs would like to use it, it is now available as opt-in
It also adds World.origin_region_name, for worlds that don't want to start in "Menu"
The two changes are somewhat related and would conflict seperately, so for now I lumped them together.

How was this tested?

The original _update_reachable_regions_auto_indirect_conditions is a copy-paste with formatting changes, so that was tested in the PR 1764, the start name change I tested for this PR. It's a critical core functionality though, so additional testing is certainly welcome.

@github-actions github-actions bot added affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jul 24, 2024
@NewSoupVi
Copy link
Member

NewSoupVi commented Jul 24, 2024

Not reviewing the code rn, but I'm super in favor of this exact way of doing this, over anything else that has been tried or suggested

Copy link
Contributor

@Ixrec Ixrec left a comment

Choose a reason for hiding this comment

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

Also strong agree with the concept. On its own this doesn't quite solve the "gotcha" for new world devs, but this is definitely a big part of the solution.

Code LGTM. It took me a while to wrap my head around how the BFS loops work, but that code is mostly pre-existing, and I'm not used to performance-sensitive Python anyway, so I dunno if it's worth aiming for higher readability there.

@NewSoupVi NewSoupVi mentioned this pull request Jul 27, 2024
@alwaysintreble alwaysintreble added the is: enhancement Issues requesting new features or pull requests implementing new features. label Jul 29, 2024
Copy link
Member

@NewSoupVi NewSoupVi left a comment

Choose a reason for hiding this comment

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

I didn't run the code, it looks correct to me though, and I have some faith in it because this is just old code shuffled around that I know works

Might run it later

@Berserker66 Berserker66 merged commit ceec51b into main Sep 5, 2024
28 checks passed
@Berserker66 Berserker66 deleted the core_region_custom branch September 5, 2024 14:32
NewSoupVi added a commit that referenced this pull request Sep 5, 2024
NewSoupVi added a commit that referenced this pull request Sep 5, 2024
NewSoupVi added a commit that referenced this pull request Nov 29, 2024
…name (#3887)

* Docs: Mention explicit_indirect_conditions

#3682

* Update world api.md

* Docs: "Menu" -> origin_region_name

#3682

* Update docs/world api.md

Co-authored-by: Nicholas Saylor <[email protected]>

* Update world api.md

* I just didn't do this one and then Medic approved it anyway LMAO

* Update world api.md

---------

Co-authored-by: Nicholas Saylor <[email protected]>
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
…name (ArchipelagoMW#3887)

* Docs: Mention explicit_indirect_conditions

ArchipelagoMW#3682

* Update world api.md

* Docs: "Menu" -> origin_region_name

ArchipelagoMW#3682

* Update docs/world api.md

Co-authored-by: Nicholas Saylor <[email protected]>

* Update world api.md

* I just didn't do this one and then Medic approved it anyway LMAO

* Update world api.md

---------

Co-authored-by: Nicholas Saylor <[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. 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.

4 participants