TommyC81 / TPF2-LineManager

A mod for TPF2 (Transport Fever 2) to manage vehicle numbers on lines.
GNU General Public License v3.0
6 stars 2 forks source link

TPF2-LineManager

A mod for Transport Fever 2 to automatically manage the number of vehicles on lines.

Steam Workshop link: [https://steamcommunity.com/workshop/filedetails/?id=2581894757]

Taking into account usage, demand, rate, frequency, capacity, and other factors, this mod will automatically add/remove vehicles to lines according to configurable rules (comes with sensible default rules out-of-the-box). This mod will greatly assist in reducing/eliminating vehicle micro management, and will let you focus on the overall design of your transport network(s) instead.

Source code and manual is located here: [https://github.com/TommyC81/TPF2-LineManager], any issues should be raised on GitHub. Created by [https://github.com/TommyC81] with contribution from [https://github.com/RusteyBucket]. This mod uses:

This mod is inspired by and uses code snippets from:

Information and options

General information

In-game menu

The mod has in in-game menu, that can be accessed via the "[LM]" text in the bottom in-game status bar. The following LineManager options area available in the in-game menu:

Line rules

Note 1: If multiple rules have been added to a line, only the first one will be processed. Note 2: The default [P] and [C] rules will try to maintain a maximum interval of 12 minutes. I.e. if the line is long and there are insufficient vehicles on the line to maintain a maximum interval of 12 minutes, then more vehicles will be added.

Examples of line naming:

Other ways to manage vehicles is to disable automatic management of some line categories (or all) and only assign rules manually where needed. Manually assigned rules are always processed, regardless of the automatic setting.

Additionally, you can (relatively) easily dig into the code and create your own rules, see 'rules.lua' within the source code.

Quick start

  1. Create a bus line.
  2. Add one bus to the bus line.
  3. Make sure a depot is accessible for the bus on the bus line.
  4. Make sure you have cash available for buying additional buses (when the mod determines it required).

Quick tips for best results

What the mod does

What the mod does NOT do

Performance

Future plans

How to Contribute

General

Bounty hunt

These items are of specific interest to resolve, any guidance would be greatly appreciated and will ensure your name forever captured in the credits! :)

Recommended tools