Automatic Vehicle Numbers Adjuster
This mod records the number of passengers that pass through each transit stop and then calculates the appropriate number of vehicles that the transit line should have. It also displays those recorded numbers.
The mod takes time to work. Since it uses the number of passengers transported the previous day to calculate the desired number of vehicles, it needs time o observe and count this number of passengers.
It records the number of passengers passing through each station. This number is the number of passengers that the train leaving the station has.
Then, for each line, it goes through each stop and sees which ones have the most passengers and tags them as High Usage Stops and the others as Low Usage Stops.
High Usage stops record passenger data more precisely because they will be the ones determining the number of vehicles necessary in the line. They record data separately for each part of the day (the day is split into 4 intervals) and for the last 8 days.
Small Usage Stops only record the number of passengers going through in the last day and in the current one.
The mod then calculates the necessary number of vehicles to transport the maximum number of passengers in an interval recorded. I experimented with removing the extra vehicles in time of low usage but it only resulted in more chaos as the vehicles were always being added and removed from lines.
To view the recorded number of passengers click on the transport line to show the Public Transport World Info Panel and then click on the little circle corresponding to the stop that you want to view the data of.
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.
https://github.com/Overhatted/AutomaticVehicleNumbersAdjuster
This mod uses the Harmony[github.com] library.
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.