LineManager: Fleet Balancer
Beschreibung
Stop counting vehicles. Build the network instead.
Fleet Balancer is the official successor to the Transport Fever 2 LineManager mod, updated and adapted for Transport Fever 3 (and with less ambiguity around the in-game Line Manager). As your company grows, keeping the right number of vehicles on every line turns into a full-time job. This mod does that job: it watches demand, waiting and frequency on every line, and adds or removes vehicles to keep each one right-sized. You plan the routes and pick the vehicles; the mod does the counting and balancing.
A known game bug, worked around. Trains in Transport Fever 3 can block each other when leaving a depot and then sit stuck indefinitely. On the lines it manages, Fleet Balancer notices the jam and clears it by selling one of the blocking trains; lines it does not manage are never touched, so a jam on an unmanaged line stays yours to clear.
Stays out of the game's way. It was rebuilt from the ground up for Transport Fever 3's new engine. State only syncs when something changes, world data comes from native engine reads, and decisions ride on 15-day samples (adjustable). Each sample pass reads your lines a few at a time, spread across game ticks, so there is no spike even in the busiest late-game network. The mod stays lightweight whether you run five lines or five hundred.
Four rules, one per line (set in the line panel):
- [P] Auto, passengers - matches vehicle capacity to passenger demand, learning each route's own symmetry setting over time; switch off Auto to set it yourself, back on to hand tuning over again.
- [C] Auto, cargo - matches vehicle capacity to cargo demand, learning each route's own symmetry setting over time; switch off Auto to set it yourself, back on to hand tuning over again. Lines that serve factories also steer by what their stops can supply and absorb: the mod reads the factories' own rates, keeps the line's transport rate inside the resulting band, grows the fleet only as fast as the route's demonstrated flow (the smaller of what the source really outputs and the consumer really accepts, plus a ten percent margin), shows the band beside the rate in the panel, and re-adds vehicles only once deliveries prove them. When a line demonstrably idles its capability - the factories' reservation steady, the delivered flow fully explained by it, and at least half the fleet's hauling capability idle - the mod safely sells the surplus down to that reservation. A cargo line in true surplus sells down to its last vehicle - the minimum-frequency floor steers passenger lines only.
- [R] Keep rate - holds a target transport rate. The target starts just below the line's current rate and can be edited; the mod only removes a vehicle when the rate would stay above the target afterwards.
- [X] Remove all - sells vehicles until the line is empty.
It works out of the box: every passenger or cargo line is managed automatically while its category is enabled, with the rule auto-detected from its vehicles. Pause any single line with the Auto manage checkbox. New vehicles are clones of the ones already on the line, so one vehicle type per line works best. A line mixing passenger and cargo vehicles is treated as a passenger line and will not balance well; split it into a passenger line and a cargo line instead.
Non-intrusive by design. The mod manages vehicle counts - nothing else. Change a line's vehicles yourself and it notices, adopts your count and adapts. Every line can be paused, one switch turns the whole mod off, and there are no console commands, nothing to babysit. The one popup the mod will ever show appears once, exactly when a mod update reset your settings on an existing save: it says the settings were reset and should be rechecked, and acknowledging it makes it never return.
Plays well with others. The mod coexists with other mods, including ones that also add or remove line vehicles: it treats their changes like your own manual edits, briefly re-samples the affected line and then keeps balancing from what it sees. It will not run at its best beside another fleet-count manager on the same lines, though - two managers keep responding to each other. The rule tagging is scoped: tag start and end symbols are a setting of their own, and the mod only ever touches tags that carry its own rule codes - never the rest of the name. It should work well with most other line rename mods, even one using the same symbols with different tag contents. If such a mod rewrites whole names, though, the name will fluctuate as each side reapplies its own; switching off the optional rule tagging resolves this, and the mod never renames anything again.
Every action is explained. Each line window gains a Fleet Balancer section with a live status line - the current vehicle balance or rate against its bands, or exactly why actions are on hold (collecting data, rest-held buys or sells, jam-held buys, a vehicle waiting in the depot, vehicles stuck on the route, a pause after bought vehicles repeatedly failed to join, the minimum-frequency floor, the factory band's reservation floor, its cap on buys, deliveries not yet proving a new vehicle, or a route problem freezing the fleet) - a trend graph of the line's recent samples centered on the ideal fleet with its buy and sell bands drawn in, a hover spelling out the live numbers behind the verdict (ideal fleet, utilization, waiting loads, congestion, and on cargo lines the factory rate band), and an action log that records what was actually bought or sold and why: "Bought 1 vehicle (Min frequency)", "Sold 1 vehicle (Low demand, -0.62)". Guards against congestion, oscillation and premature sells make fleet counts settle instead of flip-flopping, so your money is not spent on churn.
Fits into the game's own UI. A Fleet Balancer button next to the mod-button area opens the settings window (three tabs: Main, Rhythm, Congestion - master switches and categories, sampling cadence, safety limits; sliders commit when you release them; the footer shows the installed revision), and every vehicle window gains a small strip showing what the mod reads for that vehicle.
Ported and adapted to Transport Fever 3 with AI assistance.
With thanks to JUMBI-ElisaEmma for bug reports, testing and a test map.
Bilder
Mod melden
Die Meldung gilt ausschließlich für Version 1.0. Bitte nur melden, wenn du diese Version selbst getestet hast.
Melde dich an, um eine Meldung abzugeben. Pro Konto, Mod-Version und Kategorie zählt eine Meldung.
Kommentare
Auf mod.io öffnen ↗