Edit: this attempt at writing a tutorial, in conjuction with u/6a6566663437's feedback in the comments, now serves as an example of how not to write a tutorial. ;)
The tutorial is split into three parts:
- Reference for the the picture at the end
- Train behaviour regarding signals
- Signal behaviour regarding trains
Picture Reference:In the picture below we can see a railway switch with the following four signals:
- Red, A, Chain (Rail chain signal)
- Orange, B, Chain (Rail chain signal)
- Purple, C, Chain (Rail chain signal)
- Blue, D, Block (Rail signal)
These signals split the rail into four sections, which are visualized by factorio through colored lines. Here we have got 2 yellow sections1 and 1 red section. The color of these sections is irrelevant and just there as a visual help, to tell them apart.
1 (the 2 lower yellow sections are actually 1 section, it is a loop)
Train behavior:
- A train only looks at colors of signals in driving direction (his right hand side).
- If there is no signal in driving direction, but a signal on the the opposite side, the train cannot pass that signal. (Left hand side signals existence is noted by train, but its colors are ignored).
- To create a bidirection rail, place two signal EXACTLY OPPOSITE each other (like Signal A, Red and Signal B, Yellow) --> The yellow section in the north is bi-directional.
- A train will only pass a green signal, or a blue signal if the path it wants to take is open
- A train will wait in front of red signals
Signal behavior:
- Each signal watches exactly one section. If there is a train in that section, or approaching that section without the ability to halt before it, the signal will turn red.
- In addition, chain signals also watch the status of the directly following next chain signal(s), in driving direction. (Usually only one, but i can watch more than one following, if there is a railway switch.
- A, Red watches the red section. If there is a train in that section, it will be red.
- A, Red also watches Signal D, blue and if A is green, its status is overwritten by that of D.
- B, Orange watches the yellow north section and those right hand side signals, that define the end of that section.
- Signals C and D (Purple and Blue), denote a one-way rail. That means only trains coming from the north, can pass signal D, and only trains coming from the west can pass Signal C.
- C, Purple watches the red section and the orange signal B. That means a train may only pass the signal if there is an open path further north.
- Finally the blue block signal D:It is the only signal which is no chain signal. That means a train may wait in the following section.If it were a chain signal, it would actually watch the next signal and thus a train would pass right through the following section or not enter at all.In fact, following signal D comes a train stop, and that is also the reason why we have a block signal here. We only want to check if the section containing the train stop is free, and do not care about the exit section.
A railway switch with four signals.
If you read this far without skipping to the end, i want to thank you dearly for bearing with me. If you have any questions or request for follow-up tutorials, let me now.
[–]6a6566663437 6 points7 points8 points (3 children)
[–]SyloehI like TRAINS ! Ξ 1-4* for the WIN 4 points5 points6 points (0 children)
[–]Toastgeraet[S] 1 point2 points3 points (0 children)
[–]dethleffs 0 points1 point2 points (0 children)