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

Ignore all straight nodes when considering lane changes #344

Open
s2500111 opened this issue May 30, 2019 · 0 comments
Open

Ignore all straight nodes when considering lane changes #344

s2500111 opened this issue May 30, 2019 · 0 comments
Labels
discussion Contains debate on certain topics DLS Dynamic Lane Selection feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors

Comments

@s2500111
Copy link

s2500111 commented May 30, 2019

Description

Afaik the AI is looking 4 nodes ahead, when considering if they should choose a different lane. If cars can't switch back onto their original planned route within those 4 nodes, they won't use an additional lane, even if they could switch back on the next node.

While this is more than enough in the most cases, there are some cases, where this tends to become a problem. Especially on big intersections with multiple nodes (for an example take a closer look on the provided screenshot) it is often helpful to restrict lane changes on the last node before the intersection (1. node), the node leading into the intersection (2. node), the node within the intersection (3. node) and the node where cars leave the intersection (4. node). On the 5th node they can switch again. Altough they are fine to go in 3 lanes over the intersection, they tend to only use one lane.

My usual workaround for this situation is, to enable some of the lane changes in the middle node, so that they are free to switch back on their original route there. Since the AI reconsiders it's decision from earlier at the node, the cars will mostly not switch back. However, this solution isn't elegant and the behavior is probably very confusing for players, who don't know exactly, how the AI works.

An elegant solution would be, to look an traditional node further ahead, if the current node is an all straight node.
Alternatively, a less intuitive solution would be, to add an option to manually set nodes to be ignored.

Another solution could be a look up table for connections between nodes in bigger distances then 4 nodes, maybe even manually in game defined and triggered by cars going over a previous defined node, so that cars now, that if their route goes from A over B they can use lane 1 and 2, regardless of the nodes in between.

Screenshots (Optional)

https://i.imgur.com/Z9ZQWcy.jpg

@s2500111 s2500111 added feature A new distinct feature triage Awaiting issue categorisation labels May 30, 2019
@originalfoo originalfoo added DLS Dynamic Lane Selection LANE ROUTING Feature: Lane arrows / connectors discussion Contains debate on certain topics and removed triage Awaiting issue categorisation labels Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Contains debate on certain topics DLS Dynamic Lane Selection feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors
Projects
None yet
Development

No branches or pull requests

2 participants