Train orders

This commit is contained in:
Florian Obser 2024-01-13 12:44:23 +01:00
parent 3c63ee0b52
commit 8d2d3a4d3a
5 changed files with 36 additions and 0 deletions

View File

@ -107,3 +107,39 @@ train arrives. We do not place exit signals at the station. When a
dummy train is inside the station it blocks the whole station due to
the crossing tracks at the end of the station. The way-point is going
to be used to open the station for the pick-up trains.
* Train Orders
** Dummy Trains
We create a dummy train per station. These collect passengers and
block the station for the pick-up trains. Once a full load of
passengers has been collected the dummy train unloads them and
unblocks the station. Now a full load of passengers is available for
the pick-up trains.
We make the trains length four so that it can drive around on the
station itself which has length five. We are using "near end" and "far
end" orders:
1. Go to near end of the station and full load
2. Go to far end of the station and transfer
3. Go to the way-point after the station.
Step three is what unblocks the station. Once the train has left the
depot we have to remove the track right in front of it so that the
dummy train can't re-enter the depot. Alternatively we could put the
depot right after the way-point and delete it after the train left it.
[[file:openttd-srnw/dummy-train-orders.png][file:openttd-srnw/dummy-train-orders-small.png]]
** Pick-up Trains
The pick-up trains have two orders:
1. Go via INJECT way-point
2. Go to transfer station and transfer.
Unfortunately OpenTTD will create implicit orders every time the train
passes through one of the SBahn stations. To prevent this we add a
"Jump to order 1" instruction and then fill up the orders with an
unreachable way-point. A train can only have 255 orders. Once the
order list is full no implicit orders can be created.
[[file:openttd-srnw/pick-up-train-orders.png][file:openttd-srnw/pick-up-train-orders-small.png]]

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 KiB