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

Traffic light bug at one way train track #14

Open
DaEgi01 opened this issue Mar 25, 2017 · 1 comment
Open

Traffic light bug at one way train track #14

DaEgi01 opened this issue Mar 25, 2017 · 1 comment

Comments

@DaEgi01
Copy link

DaEgi01 commented Mar 25, 2017

Hello,
I am not sure if this is a problem with Traffic Manager : President Edition or a problem with "One-Way Train Tracks [New version]", or maybe both.
I basically tried to help someone build a longer section with a one-way train track.
since the game by default does not support semaphores for such situations, i tried to make a workaround with timed traffic lights to ensure the there is never a deadlock.
The setup goes like this:

' = ' are two one way tracks ... the default one of the game
' - ' is a two way single track ... the one from the mod
(R) red light
(G) green light

step1: ====(G)------(R)====
step2: ====(R)------(R)====
step3: ====(R)------(G)====
step4: ====(R)------(R)====

Step 2 and step 4 are the most important ones.
These steps must be timed carefully such, that if a train enters the single track, it must get enough time to leave the single track again before the train from the opposite direction can enter.

I expected the traffic light to be relevant only for the train entering the single track.
But the problem is that the train stops and waits at the end of the single track, no matter what the traffic light says, and no matter if there is another train waiting for the opposite direction or not.
====(R)-------->BLOCKEDTRAIN>(G)====

Happens only if I play with traffic lights though. Without any setup everything flows until the deadlock occurs.

Also there is a minor glitch for such an intersection.
If I change the mode of the traffic light, there seem to be two traffic lights overlapping each other.

It would be awesome if such setup could actually work :)
It should in theory.

I opened the issue in both repos.
VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition#47

Regards

Egi

@originalfoo
Copy link

originalfoo commented Apr 2, 2020

The SingleTrainTrackAI mod causes some problems with traffic lights rail junctions (at least in TMPE): https://steamcommunity.com/sharedfiles/filedetails/?id=949504539

The mod hinders some functionalities of Traffic Manager : setting traffic lights or priority signs will not work on train tracks. Other things like speed restrictions do work :)

This mod uses detour and would be incompatible with any mod modifying the method UpdatePathTargetPositions of class TrainAI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants