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

Vehicles not crossing road to enter a building on other side #19

Closed
originalfoo opened this issue Feb 2, 2019 · 3 comments
Closed

Vehicles not crossing road to enter a building on other side #19

originalfoo opened this issue Feb 2, 2019 · 3 comments
Labels
Annoyance Not a bug, but just as annoying investigating Issue currently under investigation

Comments

@originalfoo
Copy link
Member

This was initially raised in #10

I'm not sure what causes this; it's been so long since I played vanilla that I can't remember what vanilla functionality is!

I created an issue, VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition#184, relating specifically to this issue. It's a major cause of excess traffic due to vehicles literally driving past their destination (albeit on the other side of road) and then spending ages finding a nearby turning point to get on to the correct side of the road before entering the building.

IMO, vehicles should be allowed to cross a single lane of traffic to enter a building on the other side of the road. This is how everyone seems to drive in Europe, that I am aware of; you don't drive past a building and spend ages trying to find a roundabout or other way to get to opposite side of road, you just wait for a gap in the oncoming traffic and then drive in to the carpark or driveway or whatever. Obviously, this becomes impractical and dangerous if there are two or more lanes of oncoming traffic.

I noticed in VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition#196 that Lazarus Man mentioned NetInfo.m_CanCrossLanes, which apparently determines (in vanilla game) whether cars can 'cross lanes' (I'm not sure if that is just oncoming lanes or medians or something else).

I don't know if the pathfinder in TMPE takes that property in to account, but regardless it would be useful to have a way to tell TMPE which road prefabs vehicles can cross lanes on (I assume there are lots of road assets out there with incorrect setting of the NetInfo.m_CanCrossLanes property) - maybe there could be a section in the TMPE config xml file which allows definition of which roads should have their NetInfo.m_CanCrossLanes overriden and to which value it should be set.

@krzychu124 krzychu124 added Annoyance Not a bug, but just as annoying investigating Issue currently under investigation labels Feb 2, 2019
@VictorPhilipp
Copy link
Collaborator

Building entry/exit nodes can only point to a single road lane (NetNode.m_lane). That's the segment lane which is used by vehicles to enter/exit a building.

grafik

@VictorPhilipp
Copy link
Collaborator

Search for 'nextNode.m_lane != 0' in CustomPathFind2

@originalfoo
Copy link
Member Author

Closing this as it's now covered in #1223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Annoyance Not a bug, but just as annoying investigating Issue currently under investigation
Projects
None yet
Development

No branches or pull requests

3 participants