Railway/Automated transport: Difference between revisions
No edit summary |
Campos.ddc (talk | contribs) (Fixed operator logic precedence for train wait conditions) |
||
Line 24: | Line 24: | ||
Hereafter the word "term" is used to describe ''one'' type of wait condition, and the words "wait condition" are used to describe the whole set of terms (it turns a bit into maths). | Hereafter the word "term" is used to describe ''one'' type of wait condition, and the words "wait condition" are used to describe the whole set of terms (it turns a bit into maths). | ||
If you add more than one term, you can change the connection of those using the logical operators AND and OR (button 7). An AND condition will result in true, if all terms are true. An OR condition will return in true, if at least one of the terms is true | If you add more than one term, you can change the connection of those using the logical operators AND and OR (button 7). An AND condition will result in true, if all terms are true. An OR condition will return in true, if at least one of the terms is true. If you have multiple terms connected with AND ''and'' OR in your list, the train checks will first calculate all AND conditions, and then move into ORs in order. | ||
Examples: | |||
Wait until full, up to 30 seconds: | |||
<pre> | |||
Full cargo inventory | |||
OR 30 seconds passed | |||
</pre> | |||
Wait until empty, and 30 seconds passed, and 5 seconds of inactivity: | |||
<pre> | |||
Empty cargo inventory | |||
AND 30 seconds passed | |||
AND 5 seconds of inactivity | |||
</pre> | |||
Wait until iron ore is low, or copper ore is low and overall at least 30 seconds passed: | |||
<pre> | |||
Cargo: Iron ore < 500 | |||
AND 30 seconds passed | |||
OR Cargo: Copper ore < 500 | |||
AND 30 seconds of passed | |||
</pre> | |||
This last example is processed as (note the parenthesis): | |||
<pre>((Cargo: Iron ore < 500 AND 30 seconds passed) OR (Cargo: Copper ore < 500 AND 30 seconds passed))</pre> | |||
Which is the same as this: | |||
<pre>((Cargo: Iron ore < 500 OR Cargo: Copper ore < 500) AND 30 seconds passed)</pre> | |||
Unfortunately, there is '''no''' way to write that shorter form in the current UI. | |||
== Train doesn't move? == | == Train doesn't move? == |
Revision as of 08:58, 20 September 2016
< Railway | Automated transport
This section covers items used to make trains automatically transport items between stations. The player should be familiar with the "Starting a rail system" section to fully employ these strategies.
Automated transport makes only sense if you have minimum two train stops and a train.
At first you have to setup a rail system with at least two train stops, which are placed in the right-hand side of expected train run-in direction. By hovering the train stop with your mouse you see the positions of the vehicles for better setting up the train station (including un/loading machinery, refueling/repair installations).
When you set up the train schedule (see below) and fueled the train, you can start the train by switching from manual to automatic driving mode.
Train schedule
You can set up a list of train stops in the upper window. The train will run to the stops in the given order, if it's at the end it will continue with the first. Stops can be added by clicking button 2 (see picture). A popup appears with a list of all train stops. If you select one another popup appears where you have to select a wait condition.
Wait conditions are used to tell the train when to leave the station. There are 6 types of wait condition:
- Time passed - the only avaiable until 0.12.
- Inventory full
- Inventory empty
- Item count - the train (all cargos summed) contains a specific amount of a certain item.
- Circuit condition - the train stop is connectable to the Circuit network, so the signals can used for wait conditions.
- Inactivity - no items were added or removed for specified amount of seconds.
Hereafter the word "term" is used to describe one type of wait condition, and the words "wait condition" are used to describe the whole set of terms (it turns a bit into maths).
If you add more than one term, you can change the connection of those using the logical operators AND and OR (button 7). An AND condition will result in true, if all terms are true. An OR condition will return in true, if at least one of the terms is true. If you have multiple terms connected with AND and OR in your list, the train checks will first calculate all AND conditions, and then move into ORs in order.
Examples:
Wait until full, up to 30 seconds:
Full cargo inventory OR 30 seconds passed
Wait until empty, and 30 seconds passed, and 5 seconds of inactivity:
Empty cargo inventory AND 30 seconds passed AND 5 seconds of inactivity
Wait until iron ore is low, or copper ore is low and overall at least 30 seconds passed:
Cargo: Iron ore < 500 AND 30 seconds passed OR Cargo: Copper ore < 500 AND 30 seconds of passed
This last example is processed as (note the parenthesis):
((Cargo: Iron ore < 500 AND 30 seconds passed) OR (Cargo: Copper ore < 500 AND 30 seconds passed))
Which is the same as this:
((Cargo: Iron ore < 500 OR Cargo: Copper ore < 500) AND 30 seconds passed)
Unfortunately, there is no way to write that shorter form in the current UI.
Train doesn't move?
- train is fueled? See Vehicle/Train/Refueling.
- needs the train to turn?
- make possibilities for one-sided trains to turn around or
- make locomotives at both ends.
- misplaced or nonfunctional switches?
- another train on the same segment or block?
- train stops placed in right-hand side of expected train direction?
- allowed to enter signals from the right direction? Signals set correctly?
No path?
When trains cannot reach the target and stands still, while a "no path" pops up over the locomotive. Check:
- Can the train reach every station by only driving forward? Build turning slopes or place a locomotive at both ends of a train!
- Are the train stops standing in the right direction? Train stops stand at the right side of the track!
- if you use rail signals, check that the signals are all allowing traffic in the correct direction. See Railway/Signal/Block signal.