CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
569 stars 85 forks source link

The garbage trucks, hearses and buses don't route properly when their target is affected by one-way road #1600

Closed peter-vasut closed 2 years ago

peter-vasut commented 2 years ago

Describe the problem

If the target of a vehicle is in one-way road, or road that is two-way, but has one-way road that limits how you can get to it (so it effectively behaves like one-way), the garbage trucks and hearses don't visit the area. If I put bus stop to such road, it gets placed but there is no route to it drawn.

Steps to reproduce

Alternatively you can build the following network manually:

Log files

output_log.txt TMPE.log

Savegame?

https://steamcommunity.com/workshop/filedetails/?id=2820351225

Screenshots?

The traffic travels from left side of screen. The area with lot's of deaths and garbage is not reached at all. The "vermont hills" area is reached in longer way, as there are one-ways around the block of buildings, that's correct behavior. Cities_ Skylines 12 06 2022 12_24_30

In this screenshot, I've placed one two-way road segment to see if it's only problem only with target being on one-way, but that does not seem to be the case, as this two-way road with one-ways around still doesn't work. Cities_ Skylines 12 06 2022 12_24_09

Notes or questions?

krzychu124 commented 2 years ago

Did you apply any manual lane connections or vehicle restrictions in that area?

peter-vasut commented 2 years ago

@krzychu124 I've used lane arrows + maybe I've tried also the lane connections previously. But currently, there should be no custom lane connections. I've also tried to remove few roads and build them from scratch, which should remove any restrictions. I didn't use any vehicle restrictions ever.

I should note that it seems like the problem occurs only when the vehicles start or terminate in a problematic area, as I've seen some vehicles route rough it (and they use the 4-lane road that goes around without problem to travel to different parts of the city). Placing the waste management facility to the 4-lane one-way road makes it so that it immediately despawns.

krzychu124 commented 2 years ago

Everything works perfectly. You've broke the game yourself. I've extended connections with ALL POSSIBLE options you've created. Notice missing connections marked orange with X. Look closely, only bottom connection can exit left but cannot use lanes turning right after exit from roundabout.

image

peter-vasut commented 2 years ago

I'm really sorry, I haven't realized that because there is only one segment between each junction and I set the lines as I did, I blocked traffic between some roads. It's quite obvious from your picture (or from the segments that get drawn on mouse over), but I didn't fully embrace what the lane tool does at the time. Placing additional buildings to troubleshoot didn't help as I only placed it on the outside roads of the block (affected by same roundabout). The private vehicles worked because they traveled from different entrance.

I can confirm, every behavior is explained, the routing works as it should.