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

trains switch lanes too much #1475

Closed
kianzarrin opened this issue Mar 20, 2022 · 4 comments · Fixed by #1483
Closed

trains switch lanes too much #1475

kianzarrin opened this issue Mar 20, 2022 · 4 comments · Fixed by #1483
Assignees
Labels
feature A new distinct feature
Milestone

Comments

@kianzarrin
Copy link
Collaborator

kianzarrin commented Mar 20, 2022

Part of this : #1223

If the asset designer disables CanCrossLanes then the tracks should go to their respective lanes.
[EDIT] Trains switch change too much by default both at intersection and middle lanes. I think by default trains should not switch lanes too much like this:
image
image

and not like this (created with AN mod):
image

User should be able to override this behavior and change track transitions.

@kianzarrin kianzarrin added feature A new distinct feature triage Awaiting issue categorisation labels Mar 20, 2022
@kianzarrin kianzarrin self-assigned this Mar 20, 2022
@kianzarrin
Copy link
Collaborator Author

@aubergine10 @krzychu124 should I start this?

@kianzarrin
Copy link
Collaborator Author

so this basically turns off "vehicles can switch lanes at junctions" by default when NetInfo.CanCrossLanes == false

@originalfoo
Copy link
Member

Yup please do this :)

I assume two things:

  1. It only affects train tracks and not metro/tram/etc
  2. Users will be able to toggle it in-game using junction restrictions on the train junction node

@kianzarrin kianzarrin changed the title utilize can cross lanes toggle for trains trains switch lanes too much Mar 21, 2022
@kianzarrin
Copy link
Collaborator Author

@aubergine10 after some discussion with REV0 on discord I decided to do this a bit differently ( I edited the issue too).

  • I will ignore NetInfo.m_CanCrossLane
  • by default all tracks will prefer to stay in lanes (with similar lane index) at intersections.
  • user can overrride this behavior:
    - by using lane connections at any node
    - by enabling the "CanSwitchLane" only at junction nodes. I am not sure this is useful to anybody though so maybe just the first option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new distinct feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants