Cities: Skylines

Cities: Skylines

606 ratings
Reversible Tram AI
12
4
3
5
9
4
3
4
3
3
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
52.736 KB
2 Feb, 2022 @ 8:17pm
16 Dec, 2022 @ 11:24am
11 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Reversible Tram AI

In 1 collection by sway
Reversible Tram AI Recommended Assets & Collections
4 items
Description
This mod modifies tram AI to allow reversible trams



Unsubscribing this mod won't corrupt your save file, but you will need to adjust your tram routes (read below)

If you notice any issue, please also test if the same issue already exists in the original tram AI

If you use this mod and notice weird tram behaviors, please report to this mod's page. Do NOT report to other traffic mods such as TMPE or other mods listed below

This mod also removes the "tram track not connected" notification

Compatible mods
Advanced Vehicle Options 1.9.7
Improved Public Transport 2 6.0.0-preview4
More Vehicles 1.1.3
TM:PE TEST
TM:PE STABLE

Semi-compatible mods
Transport Lines Manager 14.3
Possible incompatibility with the "express trams" option in TLM. Discussion

Incompatible mods
No other known unsolved incompatibility yet. Please report incompatibility with your output log file

How to use
To make this work you need 2 components:

1. Enable this mod in the content manager

2. Tram tracks with bi-directional lanes as END station track. Only need a short segment, just long enough to fit the tram. You should only use this type of asset as END station track

Any existing tram vehicle asset and normal tram track asset will continue to work, but you must use bi-directional tram track at the place where you want the tram to change direction

You can create this type of bi-directional track in the asset editor by modifying any normal tram track asset and setting the tram lanes to "both directions". You will need extra track meshes and special connection group settings to get the cross switch. I don't know how to make network assets but you can load the recommended assets in the asset editor and see if you can figure it out

Watch this Youtube video to learn how to use them. After v0.3 update you can use any existing tram asset

Recommended assets & mods
Reversible Tram AI station collection by clus
clus made a Reversible Tram AI station collection which includes a high quality reversible tram stop station and a reversible tram stop road with required dependency. Please read their description as clus explained how to use these assets

Reversible Tram Station Track - Vanilla by clus

Other recommended assets & collections

Advanced Stop Selection mod by BloodyPenguin



Tram Vehicle Assets
Any existing tram vehicle asset already can reverse with this mod
But tram vehicle assets need extra modification to have bi-directional lights & display
So when the tram is reversed, headlights and taillights will switch positions
Here is a non-exhaustive collection of tram vehicle assets with this feature, organized by clus

What will happen if I unsubscribe this mod?
Your save shouldn't be corrupted but the trams can't reverse anymore. They will get stuck then despawn themselves after a few seconds. You can pause the simulation, make some end-of-line loops, and then adjust your tram route by moving the tram stops, and the game will automatically re-calculate a new route

Asset Creators
With this mod, tram vehicle assets will use the "reversed" flag and you can use it to control submesh visibility. Things should be very similar as making train vehicle or track assets

Source code
This mod contains a good amount of decompiled, unchanged code from the game, so I don't feel like I should put it in a public GitHub repository. But if you are interested or want to contribute, feel free to let me know and I'll send you an invitation to the repository (or you can just decompile this mod)

Credit
Special thanks to aubergine18, Krzychu1245, algernon, boformer for providing useful advice and helping the development of this mod

Thanks Blue Thunder for the original design of the mod thumbnail
Popular Discussions View All (2)
1
1 Aug, 2022 @ 10:32pm
Trams get stuck at the reversible station
♥ Slutty Femboy Spider ♥
1
15 Apr, 2022 @ 8:27pm
Small incompatability with Transport Line Manager (and others)
hy/fix8
158 Comments
yisussteam25 17 Nov, 2024 @ 11:35am 
Disable Skyve Mod for the tram error
PuShMaN_14 1 Sep, 2024 @ 3:27am 
The mod does not work
Sabretooth78 26 Mar, 2024 @ 7:19pm 
I've discovered that this doesn't play well with "Transport Lines Manager 14.5". When both are active, several (the number seems to be different every time I try it) invisible "partial" trams spawn. They always seem to have 1/3 the capacity of the intended vehicle, never move, and appear to count against the number of vehicles on the line. They typically appear at the depot but I've had instances where they appear in some random spot nowhere near the line. Also once had issues with spawning trams just going to the other depot spawn point and despawning. Just weird stuff.

Deactivating reversible trams seems to prevent this behavior. It doesn't appear to happen with IPT2 though, which makes me think the culprit may be somewhere in TLM.
dalearends 25 Sep, 2023 @ 12:34pm 
@no You need the DLC because that's where they introduced trams.
no 22 Sep, 2023 @ 12:34pm 
why do i need snowfall DLC?
SEZER 8 Sep, 2023 @ 5:15am 
too much aditional mods requaied
dalearends 19 Jul, 2023 @ 8:47pm 
@grande.petterso I've seen this happen also. Here are a few things to try, they usually work for me. First, make sure the crossover node is long enough for the entire tram to fit in it. Second, make sure the station track is at least 10 units long. Third, delete the station segment and redraw it starting from where you want the crossover node. These have usually worked for me. Good luck.
grande.petterson 19 Jul, 2023 @ 2:41pm 
Something is going wrong, my trams will get to the reversible track or station and will break apart...
hy/fix8 1 Jun, 2023 @ 9:52pm 
Check the mod is enabled, also see this thread
Railfanner365 6 May, 2023 @ 2:55pm 
tram will not reverse once it finishes boarding at terminal