Skip to content

Avenue-based OWR-4 and other NWM metarules#516

Merged
TarkusSC4 merged 20 commits into
stagingfrom
owr4-avenue-based
Jun 9, 2025
Merged

Avenue-based OWR-4 and other NWM metarules#516
TarkusSC4 merged 20 commits into
stagingfrom
owr4-avenue-based

Conversation

@memo33

@memo33 memo33 commented Jun 4, 2025

Copy link
Copy Markdown
Collaborator

This PR switches the OWR-4 metarules to an Avenue-based implementation. This includes improvements to the implementation of shared diagonals in RHW and NWM metarules.

Additionally, it splits off the NWM metarules from the RHW rule generator to facilitate independent developments (e.g. RHW×GLR fixes, viaduct or NWM extensions).

Therefore, I'd like to merge this PR now already in order to set a common base for further development and to avoid branch chaos. As the NWM metarules aren't "productive" yet, the should be no harm in merging this into staging.

memo33 added 16 commits May 29, 2025 19:35
This adds a generic mechanism `withSharedDiagonals` to automatically
replace wrong-direction Avenue-like diagonal networks by appropriate
shared diagonals.

Also enables Owr4 90 degree curve.
…gonals` implementation

This uses the existing remapping mechanism instead of adding another
one. This works by locally overwriting the context.

In particular, this improves error messages, as stack traces will point
to the location where a rule is defined (`Rules += ...`) rather than
where a shared-tile diagonal was created in the remapping function.

Additionally, this re-implements the remapping function
`transformSharedDiagonals` to optimize performance.
decrease radius of NWM intersection paths
@memo33

memo33 commented Jun 4, 2025

Copy link
Copy Markdown
Collaborator Author

Ok, there are a few problems still. Apparently, there's an ID conflict between SAM × Owr4 T and SAM × Owr4m.

memo33 added 4 commits June 5, 2025 07:55
piece ID switch from 27 to 1A
Technically, these are still correctly oriented, but once the switch to
Avenue-based OWR-4 is implemented, they'd need to be revisited.
@memo33

memo33 commented Jun 5, 2025

Copy link
Copy Markdown
Collaborator Author

Fixed. Ready for merge.

I've also enabled the CI scripts on all branches and pull requests, so that we get more direct feedback.

@TarkusSC4 TarkusSC4 merged commit 6a72ab6 into staging Jun 9, 2025
4 checks passed
@memo33 memo33 deleted the owr4-avenue-based branch June 10, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants