-
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
Pedestrians ignore traffic lights if road only has pedestrian lane on one side #1207
Comments
Pedestrian crossing detection for segments with pavement on one side is not supported in our PathFinding (nor in vanilla), might be related to #786 |
Here is an asset that reproduces the problem: a small-ish savegame that uses it: a video of it happening: |
In my limited testing, pedestrians seem to mostly do what I expect them to when there is only a pedestrian lane on one side. I just want them to stop jaywalking. ;-) |
On a hunch, I placed my test road in a developed area to see what would happen. As I suspected, pedestrians follow their designated lane to their destination, then just walk right across the street. Maybe the logic that makes this possible needs to check and make sure it's not happening at an intersection. |
To put it another way, only allow this uncontrolled crossing on segments. On nodes, follow the normal rules for crossing the street. |
What do you mean? It's impossible for pedestrian to cross road/segment without a node. pedestrian crossing are always created on the node, there is no exception from that rule. |
Apparently there is: |
Is there a node at the location when they were crossing? IIRC pedestrians can cross at bend nodes as well as junction nodes. |
The nearest nodes are the highlighted rectangles on the left and right. |
OK, I know where is the problem. How they suppose to get to that building if road connected to is has pavement on one side? |
Yes, this was all my conclusion as well, minus the implementation details that I'm not familiar with. So what if the logic that handles this is also in control when they cross at an intersection? That's my theory. But since I don't actually know how the code works..... 🤷♂️ |
Another interesting behavior that might be related is that when the pedestrian lane on one side ends, forcing pedestrians to cross to the other side, their movement suggests to me that it's being treated like a lane change rather than a street crossing. But when a cross street is added at the node, newly spawned pedestrians cross at the crosswalk as expected (still ignoring the light). |
Describe the problem
Steam used Elesbaan noted:
Steps to reproduce
I've asked user for links to assets which exhibit the problem.
Log files
n/a
Savegame?
I've asked user to provide a savegame.
Screenshots?
n/a
The text was updated successfully, but these errors were encountered: