CitiesSkylinesMods / TMPE

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

Red timed traffic light doesn't stop trams coming from tram track #1684

Open ToddDTaft opened 2 years ago

ToddDTaft commented 2 years ago

Describe the problem

I've set-up a timed traffic light on an intersection where trams can enter the intersection on a "Tram Track" (Vanilla Snowfall asset). Even when the light for these trams is red, they will enter the intersection.

Note that the "Tram Track" is a somewhat unusual asset in that it only permits trams to travel on it, but it can have normal (and functional) intersections with most regular road types.

The problem may be that the traffic light presented to this road appears to be a road vehicle light and not a tram vehicle light.

The intersection where I'm seeing this issue is a 4-way intersection with perpendicular roads. (All 90 degree angles). The road types at this intersection are (in clockwise order):

  1. Six lane road with 2 dedicated tram lanes (3 lanes of road traffic in each direction and 1 additional lane of tram-only traffic in each direction in the middle) (4u)
  2. Two-lane road (no tram tracks) (2u)
  3. Four lane road with 2 dedicated tram lanes (2 lanes of road traffic in each direction and 1 additional lane of tram-only traffic in each direction in the middle) (4u)
  4. Tram track (2 lanes of tram tracks - one lane in each direction. No road vehicles permitted by asset type.) (2u)

Trams arriving from road 4 will enter the intersection even when their light is red. Roads 1 and 3 have two sets of traffic lights each - one set has a tram icon by it and affects only tram traffic and the other one affects only road traffic (car/truck/etc.) Roads 2 and 4 have only one set of traffic lights each and neither one has a tram icon by it.

Junction restrictions on this intersection have all options disabled for all roads. (no turn on red, no enter blocked junction, etc.)

Screenshots?

https://steamcommunity.com/sharedfiles/filedetails/?id=2886736021

krzychu124 commented 2 years ago

Hello, I'm not sure if you posted wrong screenshot but.. I don't see anything weird there. The trick is to start Timed Traffic lights program using that Start button below steps. Since it says Start it means that Timed Traffic Simulation is not working (yet) 😉

ToddDTaft commented 2 years ago

I posted the wrong picture. The intersection pictured was the one that was described in the text and where I experienced the bug, but you're correct that I didn't actually have the schedule running at the time the screenshot was taken. The problematic behavior still occurs when the schedule has been started.

kianzarrin commented 2 years ago

it works for me. are you sure segments are not too small? maybe use broken node detector?