Reversible Tram AI

If you liked this item, please rate it up on Steam Workshop page.

Author: sway

Last revision: 16 Dec, 2022 at 18:24 UTC (4)

File size: 51.2 KB

On Steam Workshop

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

Download
Required DLC:

These DLC should be installed in order to use this item.


Cities: Skylines - Snowfall
Required items:

Click the title to search on this site.


Harmony 2.2.2-0 (Mod Dependency)Steam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.