Trains can have maintenance orders.
Additional resource links
Friday Facts #212 - The GUI update (Part 1): http://steamcommunity.com/games/427520/ ... 3375443535 (Particularly the new Train GUI)
How the train scheduling works now, is that each train has a set of stations and wait conditions. The working order is simple: Go to station #1 (if available), wait for the conditions to be fulfilled, then go to station #2, .... , until all stations have been visited, then go to station #1 again. It works, but things like fueling / repairing and other "maintenance" orders have to be inserted in almost any station.
What if there was a separate tab, where you could put maintenance orders for trains, besides the current train schedules?
Request / Proposal
Since the work for a new train GUI is already underway, I'll use the proposed new train GUI (Friday Facts #212 - The GUI update (Part 1)) to illustrate the proposal.
For clarification, since this GUI is not final, I'll add the disclaimers to this new GUI:
Everything you see are mockups made by Albert and are not from the game, but we will try to make it look almost identical in game.
The style (colors and look) is not final. This is the 3rd iteration and Albert is still experimenting with making everything look nice.
The purpose of these mockups are mostly to define the layout and interaction.
This is the proposed new Train GUI. For ease of reading, I'll refer to it simply as Train GUI from now on.
As you can see, there is a tab for entering fuel and a tab for entering train stations and wait conditions. What I propose is that there is a 3rd tab, containing orders, stations and conditions pretty similar to the Train Schedule tab, named the Maintenance Tab for now. In here are orders every train evaluates just before going to the next train station in the schedule.
The idea of the maintenance tab is that orders besides the normal train schedule can be put in there. Each item in the list is constructed of:
- Condition. What condition has to be correct for a train
- Station. Which station to go to when the condition is correct
- Wait Condition. When should the train evaluate the next station to go to.
Some more Maintenance Conditions that could be helpful to have:
- No more active stations in the schedule. (helps prevent trains just standing still on the tracks when all their stations are disabled).
- Train or cargo is damaged. (send to repair station).
- Multiple /mixed items in cargo. (if resources are mixed by accident in a one-resource-only train, put it aside).
With this Maintenance mode it is possible to give out-of-schedule commands, so you don't have to stop at refueling- and repair stations every round. It's also friendly in use, since if you don't use the Maintenance tab then normal train schedules are in effect. It's easy to expand with mods, if they can hook their own Maintenance commands to the system. it's light on FPS since the maintenance checks are done once per train only when leaving a station.