Vehicle Unbuncher

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

Author: Overhatted

Last revision: 17 Dec, 2022 at 14:28 UTC (4)

File size: 27.65 KB

On Steam Workshop

Description:
What it does

This mod resolves the problem of transit vehicles bunching (when lots of vehicles stay in the same part of a line while the rest of the line is empty. You can read more here: https://en.wikipedia.org/wiki/Bus_bunching ).
It works with bus/ferry/blimp/train/metro/monorail/tram (no cable cars yet).

How it Works

It works by making vehicles keep a distance to the next vehicle equal to the length of the line divided by the number of vehicles in the line.
Vehicles check their distance when trying to leave a station and if the distance is smaller than it should be they wait until it is.
Also, there are two reasons why a vehicle might leave earlier:

  • If 26 seconds in standard speed (You can change this value, learn more in the next section) have passed since the vehicle has arrived at the station.
  • If the station is used by two lines

The first time you activate the mod, if you have huge bunching problems (like I had), you will see lots of vehicles waiting for what it seems like forever, this is normal and once the line achieves similar spacing between the vehicles it will run normally.

Change unbunching aggressiveness

To change how agressive the unbunching process is go to the Cities: Skylines folder and open VehicleUnbuncherOptions.xml (if you don’t find the file create a new game and it will appear). The only variable present and the one that determine how agressive the unbunching process is is MaxWaitCounter. MaxWaitCounter can be any integer between 12 and 255 (including both). What this variable determines is the maximum amount of time vehicles will wait at a station. The default is 100 and a bigger number means more aggressive unbunching and a smaller number means a less agressive unbunching.

Bugs

To report any bug please post a comment with a link to the output_log.txt
Any comments saying the mod does not work with no link to the log file will be deleted.

Source code

https://github.com/Overhatted/VehicleUnbuncher

Credits

This mod uses the Harmony[github.com] library.
Image: https://www.flickr.com/photos/sludgeulper/4627723136/

Download
Required items:

Click the title to search on this site.


Harmony 2.2.2-0 (Mod Dependency) [1.16.0-f3 compatible]Steam Workshop
Revisions:

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