Cities: Skylines

Cities: Skylines

1,057 ratings
SingleTrainTrackAI
2
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
39.421 KB
18 Jun, 2017 @ 12:08am
29 Dec, 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
John Rambo  [author] 17 Nov, 2023 @ 2:03am 
Most likely there will be no further update to this mod. As far as I know it still works fine.

There's also a newer test version "SingleTrainTrackAI [TEST]" that is compatible with TM:PE (so you can change priorities / signals on rails using it) but it had some bugs with the two-way dual/quad tracks from Railway 2, which I never managed to fix, so that's why it's still a "test" version.
Frog 16 Nov, 2023 @ 8:54pm 
It works fine, don't worry
LegoProfessor 25 Sep, 2023 @ 9:16am 
Hello

Skyve warns about this mod and I'm also not sure if it might not be responsible for some small issues. But what surprises me, Skyve thinks the mod is orphaned, "CoarzFlovv" has withdrawn and the mod is no longer maintained.
Now I see, however, that "John Rambo" comments on the mod from time to time.
So can I hope that the mod is maintained / further developed or should I follow Skyve and unsubscribe from the mod?

LegoProfessor
idontgrief(skibiditoilet) 3 Sep, 2023 @ 12:50pm 
it stopped working for me today has it happened to anyone else?
John Rambo  [author] 17 Aug, 2023 @ 11:12am 
It is needed for single two-way tracks; one-way tracks (either from the game, from the "required" mod or from other rail networks) do not need this mod.
E 7 Aug, 2023 @ 5:58am 
Is this still needed or was this before they put one way train tracks into the game?
idontgrief(skibiditoilet) 27 Jul, 2023 @ 2:47pm 
Should the mod be seen in content manager?
General Tso 30 Mar, 2023 @ 10:24am 
Thank you DrLann.

After some time I figured it out. I should have mentioned it here. But I forgot about my post in this thread.

Thanks again for replying.
DrLann 30 Mar, 2023 @ 8:33am 
@General Tso You need to unsub. Disabled mods are still loaded to memory.
General Tso 21 Jan, 2023 @ 12:08am 
Thank you for the mod CoarzFlovv.

I was using it. But then decided to stop for the time's being because my trains are acting weird. I'm not accusing your mod of doing anything wrong. I just decided to temporarily stop using all train related mods until I find the problem.

So I turned off this mod in game and then unsubscribed from it. So as far as I know there there should be nothing involving your mod in the game or on my PC. Yet when I start the game a debug message comes up saying "No source files found: SigleTrainTrackAI" Is there a way to get rid of this message?