CitiesSkylinesMods / TMPE

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

Weird behavior when roads have the same level of priority #1134

Open BuiIdTheBuilder opened 3 years ago

BuiIdTheBuilder commented 3 years ago

This is something I've noticed a year ago, but thought it would be fixed eventually. However it wasn't. The problem is that when you specify all approaches of a road as a "priority road" diamond sign, it has no effect on the traffic, counterintuitive to the fact that the older wiki states this: "When two vehicles approaching a junction are on the same level of priority (e.g. both on main road) following rules apply: Left yields to right (right-hand traffic) / Right yields to left (left-hand traffic). Left-turning vehicles must yield to straight-going vehicles (right-hand traffic) / Right-turning vehicles must yield to straight-going vehicles (left-hand traffic)"

However, specifying all approaches as "Give Way" works, and they give way to the appropriate direction. Though they often deadlock when it's 3 or 4 cars at the junction, and never go until you assign priority to one of the approaches, again counterintuitive to this: "It may happen that none of the vehicles is allowed to go first according to the rules above (like in the real world). TM:PE handles this situation and (pseudo-)randomly selects one vehicle that is allowed to go first."

A video of a junction, with all approaches specified as "Give Way". They deadlock at the end. https://www.youtube.com/watch?v=ahlTopIRaX0

Specifying all approaches as "STOP" works better, and after some time one of the cars decides to go. But the requirement to stop delays traffic, which is why this is a problem for me.

To reproduce, follow these steps:

  1. Press the TM:PE button
  2. Choose "Priority signs"
  3. Specify a junction as a "Priority road" on all approaches
  4. Watch the traffic
Harmonious4 commented 3 years ago

This bug has been annoying me too, since it affects any intersection where a priority road goes straight, i.e. a + intersection where a priority road crosses a yield road or a T intersection where a yield road ends at a priority road. Vehicles on the priority road that want to turn left onto the yield road (in countries that drive on the right side of the road) should yield to oncoming traffic, and the page about priority signs on the older wiki agrees, but in game the vehicles that want to turn left just go into the intersection and "crash" into oncoming traffic.

BuiIdTheBuilder commented 3 years ago

This bug has been annoying me too, since it affects any intersection where a priority road goes straight, i.e. a + intersection where a priority road crosses a yield road or a T intersection where a yield road ends at a priority road. Vehicles on the priority road that want to turn left onto the yield road (in countries that drive on the right side of the road) should yield to oncoming traffic, and the page about priority signs on the older wiki agrees, but in game the vehicles that want to turn left just go into the intersection and "crash" into oncoming traffic.

Yeah, they for some reason no longer bother to wait for oncoming traffic. The only time they actually do is at a timed traffic light when "Follow priority rules at junctions with timed traffic lights" is enabled.

originalfoo commented 2 years ago

Tagging https://github.com/CitiesSkylinesMods/TMPE/issues/1229#issuecomment-995324724