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
Disable pedestrian crossing if adjacent roads have no pedestrian lanes #1302
Comments
Turns out it was stupid-easy to implement a flag in AN as described above. If the pull request is accepted, I will close this. 🙂 |
To summarise: Ped crossing on a segment entering junction should be disabled if adjacent roads don't have ped lanes. ? |
Right. Or alternatively, rely on the change I made in AN, if @kianzarrin will accept it, and if changing it in TM:PE is too much work. |
Three additional points on this:
|
I think there is another more generic issue regarding this. |
You might be thinking of #1231. I think it's worth keeping this issue around to document use cases and it matters, and their specific requirements. |
Tagging #854 |
@aubergine10, the more I think about this, the more I'd love to see this implemented in TM:PE, including the selective disabling part. You may recall a discussion we had some time back about asymmetrical pedestrian lanes. I really thought I created an issue for it, but I can't find it anywhere. So a quick recap: The traffic AI does not support only providing a pedestrian lane on one side. If you do this, then pedestrians ignore stoplights to get to the side of the road that has the pedestrian lane. To work around this limitation, you have to make the unwanted lane useless by disabling as many crossings connected to it as you can, like this screenshot from my Access Roads: If TM:PE were selectively disabling crossings at segment ends where they "don't make sense," it could be leveraged to resolve this limitation. It would go something like this:
|
#1558 enables all crossings by default in each of your examples. |
Describe the problem
A junction that has no pedestrian lanes on any of its segments is still set to allow pedestrian crossings by default.
Steps to reproduce
View the junction restrictions of a highway junction with no pedestrian lanes, and note how pedestrian crossings are allowed.
Expected behavior
When the junction has no pedestrian lanes on any of its segments, pedestrian crossings should be disabled by default. If pedestrian lanes are introduced into a junction that is in this state, the pedestrian crossings should be automatically enabled at that time.
Why does this matter?
I want to create highway ramps for Adaptive Networks that will show crosswalks when they cross roads that allow pedestrians. As it stands now, I cannot do this using AN's ZebraCrossing flag because this would be a significant nuisance for the player, who would have to go through and disable them at every highway junction.
Possible alternative solutions
Adaptive Networks could introduce a node flag that indicates whether the node has pedestrian lanes on any of its segments. I'm tempted to say it could just never set the ZebraCrossing flag unless there are pedestrian lanes present, but I really think that flag should always mirror the junction restriction settings.
Screenshots?
This screenshot demonstrates the behavior I want for my highway ramp when it crosses a city street:
This screenshot demonstrates the problem it causes for highway junctions, due to the default junction restriction being wrong:
The text was updated successfully, but these errors were encountered: