Cities: Skylines

Cities: Skylines

1,057 ratings
SingleTrainTrackAI
2
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
39.421 KB
Jun 18, 2017 @ 12:08am
Dec 29, 2018 @ 1:58pm
10 Change Notes ( view )

Subscribe to download
SingleTrainTrackAI

Description
Mod to avoid train collisions on single tracks 2 ways from BloodyPenguin mod One-Way Train Tracks.



How does this mod work?

It is simple. Before entering on a single track section, a train will check if there is already another train running the track in the opposite direction. If that's the case, the train will stop until the track is free.

For complex networks of interconnected single tracks, any train stopped will be put in a waiting list, and proceed on the single track section in first-arrived order.

When using long stretches of single track, be sure to lay down some double tracks section regularly so that train can intersect (they are called passing loops[en.wikipedia.org]). If there are many trains, jams might still occur. Also place a 2 tracks section before a terminus station, so that trains can properly enter/exit the station. -> Since 1.2 no need to this anymore!

Some settings can be changed in the file in ~\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods\.

Single track stations are now supported and will get reserved like normal 2 ways single tracks!

Info

Link to the GitHub repository[github.com].

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.
253 Comments
45j54 Jan 1 @ 5:07pm 
guys, jus ad an short normal track part before the station
Kubus Sep 21, 2024 @ 11:33am 
does it work with metro trains?
energycake Aug 19, 2024 @ 4:27pm 
this mod doesnt work when trying to use a one track terminus station
luketeam5 :3 Apr 1, 2024 @ 1:48pm 
Yup, same issue as you Eddi, only 1 train can be in the station at the time.
Eddi Mar 31, 2024 @ 9:41am 
Dunno if it's this mod, or my abuse of node controller, but i frequently have the problem that in double track stations, a train on one track blocks trains entering the other track.
ShiaLaBunion5 Dec 4, 2023 @ 9:55pm 
Mixing NAR with RW2 tracks seems to freak out the AI aswell
ShiaLaBunion5 Dec 3, 2023 @ 1:04pm 
I figured it out the NAR rail had generated a signal light where there was no junction at all causing them to stop for no reason on a single line track
LemonsterOG Nov 18, 2023 @ 8:29am 
@John Rambo -- Thanks for the info. REV0 is the one that told me that, so I assumed he was correct. I'll let him know.
John Rambo  [author] Nov 17, 2023 @ 12:29pm 
The base game only has one-way single tracks; this mod adds support for two-way single tracks, assuming you have an asset that provides them (like Railway 1/2 or many of the rail assets on the workshop).
LemonsterOG Nov 17, 2023 @ 8:34am 
It's my understanding that this functionality has been added to the base game...awhile ago. I'm not subbed to this mod and single tracks work perfectly for me.