Skip to content

Migrate GLR to metarules - #558

Open
memo33 wants to merge 4 commits into
NAMTeam:stagingfrom
memo33:meta-glr
Open

Migrate GLR to metarules#558
memo33 wants to merge 4 commits into
NAMTeam:stagingfrom
memo33:meta-glr

Conversation

@memo33

@memo33 memo33 commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

'tis a beaut.

This replaces the old draggable GLR code by a rock-solid purely metarules-based implementation.

This PR depends on #557.

The old handwritten GLR code had some flaws:

  • The orthogonal piece often switched orientation in the direction the network was dragged, which can lead to instability.
  • The GLR code hadn't been kept in sync with changes to the Lightrail rules (such as the removal of the traffic circle from a four-way intersection).

Ideas for future extensions:

  • add IDs for end stubs
  • add support for Lightrail × GLR

These would require some work on textures/paths/models.

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.

1 participant