-
Notifications
You must be signed in to change notification settings - Fork 85
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
Lane changes happen at toll boothes #225
Comments
Fixed #225: Modified routing and DLS
@VictorPhilipp Was this still happening recently (likely due to DLS)? If so should this be reopened? |
This seems to be most recent change to toll booth lane swapping: 63a653c |
Video of issue still happening on v10.18, via @FireController1847 https://www.youtube.com/watch?v=MYdVGrpmJCQ&feature=youtu.be |
I was the one who had that picture. My savegame: Where this picture was taken - if you spot the three-way interchange that leads into a city area (not the Bork and Heck University one), you should see that cars are piling up and in some cases, changing lanes in the toll booth. Also, forgive me, but I use Real Time, so there's a rather long wait. |
Temporary workaround: This doesn't quite apply to emergency vehicles, but if you were go into the lane connector nodes and press Shift + S where the cars stop in the toll booth, you can get the cars to stay in their lane when they pass the toll booth. |
The code that determine (whether the node represents a toll booth or not) / (whether lane changes are possible) is erroneous. A correct way would be to
|
The method I described above would require running a grid search for every road node on every geometry update. |
Luckily the draw on performance is not significant. Regular vehicles should now stay in their respective lane. Yet emergency vehicles on duty still change lanes at toll boothes. Actually, I think this is something CO has to fix. Their code does not check whether lane changes are allowed/possible (see |
So, toll booths are just buildings (with a sub building), for example and its sub building, Can we have a lookup list of nodes, the size of list being whatever the game limit is for nodes, and store the details about nodes in there? One of the details being "is this a toll booth" another detail being "is this straight ahead only" and so on? (or is that what already happens?) Each time a toll booth building (identified by its AI) is placed, moved or removed, the lookup list gets updated accordingly. It would be useful to have a consistent 'single source of truth' that the pathfinder can use, to remove as much branching as possible from the decision making code in the pathfinder (and vehicle AIs too if applicable). |
Routing decisions are already precalculated by |
Ok, so CO is aware of the issue with the emergency vehicles. But on the other hand, since TMPE does routing a bit differently we should fix that too. |
They should not.
The text was updated successfully, but these errors were encountered: