In other languages:

User:Fried biter/workspace: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
([WIP] Copied Railway from special:PermanentLink/154187 to translate)
m ([WIP] Translate Railway from special:PermanentLink/154187)
Line 5: Line 5:


{{Languages}}
{{Languages}}
:''For the research see [[Railway (research)]]''
:''テクノロジーに関しては[[Railway (research)/ja|鉄道技術(研究)]]をご覧ください。''


The Railway is one of the main transport methods in Factorio. Although the installation of such a network can be complicated, and requires a large amount of resource and space, it is faster and more efficient than [[Belt transport system|belts]] and [[Logistic network|robot logistics]], especially over large distances.
鉄道(Railway)はFactorioにおける主要輸送手段の一種。導入は複雑になりえるし大量の資源と場所を食うが、特に長距離輸送に於いては[[Belt transport system/ja|ベルト]][[Logistic network/ja|ロボット物流]]より速くて効率的。


Railway construction, however, is not understood instantly. It takes some time to learn the basics, such as automating transportation. Learning how to manage and maintain upkeep of a larger train network takes time and experience.
しかしながら、鉄道の建築は即座に理解できるようなものではない。自動輸送のような基本を学ぶのにもいくらかの時間がかかる。大規模な鉄道ネットワークを運営し維持してゆくことを学習するには時間と経験が必要となる。


== Infrastructure ==
== インフラ ==


To build a railway, tracks (also called rails) must be built for the train to ride on. Typically, this is done via the [[rail planner]], but can also be done manually. Bear in mind that rails are placed on a two-tile grid, so a rail cannot be moved by only one tile.
鉄道を建設するには、列車を乗せるための軌道(track。線路(rail)とも)を敷かねばならない。典型的には[[rail planner/ja|レールプランナー]]で行われるが、手動でも可能。線路は2タイル単位で設置され、1タイルだけ動かすことは出来ないことに留意せよ。


=== Minimum manually operated railway ===
=== 最小限の手動運行鉄道 ===
As a minimum a manually operated railway has to consist of:
最小限の手動運行鉄道は以下から成る。
* [[Rail]]s (tracks)
* [[Rail/ja|レール]] (軌道)
* [[Locomotive]]s
* [[Locomotive/ja|機関車]]


Locomotives can be entered and then manually operated by standing next to them and pressing the {{Key|ENTER}} button.
機関車のそばに立って{{Key|ENTER}}を押下すれば乗り込んで手動運行できる。


=== Switches ===
=== 分岐 ===
* There is no visual representation of a working switch, however the rails will appear to merge. Using the rail planner, the player must place a [[rail]] overlapping an existing rail to form a switch. Switches are forks in tracks that allow a train to pick between two directional options.
* 分岐の作動状況に視覚的表現はないものの、レールは合流できる。レールプランナーを使えば、[[rail/ja|レール]]を既存レールに重ねて置くことで分岐を形成できる。分岐は路線上の枝分かれであり、列車に2方向の選択肢を与える。
* The crossing of two straight tracks is not usable as switch, as trains have a limited turning radius. They do, however, connect [[Rail signal| signal blocks]] which helps prevent collisions.
* 列車は旋回角に制限があるため、2つの直線軌道が交差する点は分岐とはならない。[[Rail signal/ja|信号ブロック]]を形成して衝突を防ぐことはできる。
* Parallel tracks do not interact with each other. However, switching from one track to the other can require extra resources if they are too close together; the track must turn away from the other parallel track and then turn back to it. This can create complicated networks of signals and, as such, one should generally not build parallel tracks unless they are spaced adequately. (Generally, 2 track widths apart works well)
* 並列軌道は相互に干渉しない。しかし、近すぎる場合には一方からもう一方への分岐が余計な資源を必要とする。軌道を一旦遠ざかる向きに伸ばし、そのあとで戻す必要がある。これは複雑な信号ネットワークの原因になるので、一般的には十分な間隔を開けずに並列軌道を敷くべきではない(ふつう軌道2本分の間隔で上手くいく)


[[File:fff-140-controlled-gates.gif|thumb|An example of a safe railway crossing.]]
[[File:fff-140-controlled-gates.gif|thumb|安全な鉄道横断の例]]
=== Crossing tracks ===
=== 軌道の横断 ===


'''Be careful when crossing tracks! Trains are one of the highest damaging entities in the game, and will kill most players instantly on contact.'''
'''軌道の横断には注意!列車はゲーム中で最も与ダメージが大きいものの一つであり、接触時にほとんどのプレイヤーを瞬殺する。'''


A checklist of proper track crossing etiquette:
軌道を横断する際の適切な流儀チェックリスト。


# Zoom out, so that you can see a train coming.
# ズームアウトして列車が来るか見えるようにする。
# Look left, then right.
# 左を見て、次に右を見る。
# Check for signals nearby: If a [[rail signal]] suddenly jumps from green to red or green to yellow, a train is coming. Do not cross.
# 近傍の信号を確認。[[rail signal/ja|列車用信号]]が突然青から赤や黄色に変わったら、列車が来るので横断してはいけない。
# Avoid walking near the tracks, as you do not need to be fully on the tracks to get hit.
# 完全には軌道上にいなくとも轢かれうるので、軌道付近を歩いてはいけない。
# While it is possible to get into/out of a train while it is moving, a miss can cost your life. The sides of the train can still deal damage, as well as the player being able to slip between two rail cars.
# 動いている列車に飛び乗ったり飛び降りたりもできるが、失敗の対価は命である。列車の側面もダメージ判定が有り、2台の列車の間で轢き潰されうる。
# Heavy [[Energy shield|shields]] can be used to reduce the damage taken. In extreme cases, it is possible to stop a train with your body. This will require several shield modules to not be instantly killed, and will drain a large amount of the suit's energy.
# 大量の[[Energy shield/ja|シールド]]はダメージを軽減しうる。極端な場合には、体一つで列車を止めることすらできる。このためには瞬殺されないように相当なエネルギーシールドモジュールが必要で、スーツのエネルギーを大量に消費する。
# All entities with health will take damage getting hit by a train, so take care not to leave a [[Car]] or [[Tank]] on the tracks. However, this includes hostile forces!
# 体力を持つものなら列車に轢かれるとダメージを受けるので、[[Car/ja|自動車]][[Tank/ja|戦車]]を軌道に放置しないように。この対象には敵勢力をも含むのだが。
# Trains far from a [[train stop]] will be traveling at (near) max speed, so take extra precaution when crossing and zoom out further. Trains near a [[train stop]] or signal will slow down to stop, and will be traveling slower. Trains of different configurations will also move slower or faster.
# [[train stop/ja|駅]]から遠く離れた列車は(ほぼ)最高速で運行するので、横断の際はより警戒しズームアウトしておこう。[[train stop/ja|駅]]や信号付近では止まるために減速しており、低速で運行する。設定が違っても早かったり遅かったりする。


A safe railroad crossing like the example shown in the picture can be built. This works by restricting access to the tracks when an oncoming train has the rails reserved. When the player is on the rails, the signals are reserved by the [[circuit network]], and the train must stop and wait until the player leaves the tracks. When a player is inside the area crossing the tracks, the train gates are closed so the player can't get on the tracks outside the crossing. This is to completely ensure a safe crossing, and is often used on servers.
図に示すような安全な路線横断が建設できる。これは接近中の列車がレールを予約したとき、軌道へのアクセスを制限する。プレイヤーがレール上に居る時は、[[circuit network/ja|回路ネットワーク]]を介して信号は予約され、列車はプレイヤーが軌道を離れるまで停まって待たねばならない。プレイヤーが内部にいて軌道を横断しているとき、列車のゲートは閉じているので横断部以外の軌道にプレイヤーが踏み入ることは出来ない。これは完全に安全な横断を保証するので、サーバーでよく用いられる。


{{clear}}
{{clear}}
Line 54: Line 54:
|}
|}


[[File:Railway-assemble-train.png|thumb|left|300px|Placing a [[Cargo wagon]] so it is attached to the train.]]
[[File:Railway-assemble-train.png|thumb|left|300px|Placing a [[Cargo wagon/ja|Cargo wagon/ja]] so it is attached to the train.]]


* A train consists of at least one locomotive.
* A train consists of at least one locomotive.
* Trains can have more than one locomotive, and any number of [[Wagon]]s.
* Trains can have more than one locomotive, and any number of [[Wagon/ja|Wagon/ja]]s.
* Locomotives can be '''manually''' driven forwards or backwards, however, they are generally slower going backwards. The left and right movement keys are used to change direction at switches.
* Locomotives can be '''manually''' driven forwards or backwards, however, they are generally slower going backwards. The left and right movement keys are used to change direction at switches.
* Trains can only drive forwards automatically. An automatic train can drive forwards and backwards when two locomotives facing different directions are connected to the train.
* Trains can only drive forwards automatically. An automatic train can drive forwards and backwards when two locomotives facing different directions are connected to the train.
* A train needs [[fuel]] to drive. Fuel can be added by inserters when the train is in manual mode or parked at a station, not when waiting at a signal or standing on automatic mode.
* A train needs [[fuel/ja|fuel/ja]] to drive. Fuel can be added by inserters when the train is in manual mode or parked at a station, not when waiting at a signal or standing on automatic mode.


The locomotives' inventory is only used for [[fuel]]. To transport items or fluids [[cargo wagon]]s and/or [[fluid wagon]]s have to be attached to the train. To attach rolling stock, whether a wagon or a locomotive, the player may either prepare to place one near an existing train, where a green graphic will show the player that the stock will be attached, showing a connection between the train and the new stock. Alternatively, the player may manually connect rolling stock to trains with the rolling stock connect key, if the cargo wagon was placed far away from a train. Rolling stock can likewise be disconnected with the rolling stock disconnect key. The cargo wagons can be filled or emptied manually or by up to twelve adjacent [[Inserters]] (six on each side), while fluid wagons can be filled or emptied with up to three [[pump]]s, which will automatically connect to the nipples on top.
The locomotives' inventory is only used for [[fuel/ja|fuel/ja]]. To transport items or fluids [[cargo wagon/ja|cargo wagon/ja]]s and/or [[fluid wagon/ja|fluid wagon/ja]]s have to be attached to the train. To attach rolling stock, whether a wagon or a locomotive, the player may either prepare to place one near an existing train, where a green graphic will show the player that the stock will be attached, showing a connection between the train and the new stock. Alternatively, the player may manually connect rolling stock to trains with the rolling stock connect key, if the cargo wagon was placed far away from a train. Rolling stock can likewise be disconnected with the rolling stock disconnect key. The cargo wagons can be filled or emptied manually or by up to twelve adjacent [[Inserters/ja|Inserters/ja]] (six on each side), while fluid wagons can be filled or emptied with up to three [[pump/ja|pump/ja]]s, which will automatically connect to the nipples on top.


{{clear}}
{{clear}}


== Stations ==
== Stations ==
[[File:station-example-1.png|thumb|right|256px|A very minimal train station.]]
[[File:station-example-1.png|thumb|right|256px|A very minimal train station./ja|]]
Station Components:
Station Components:
{| class="wikitable"
{| class="wikitable"
Line 74: Line 74:




A '''train station''' is a combination of at least one [[train stop]] plus a [[storage]] and/or distribution system, used to fill or empty [[cargo wagon]]s and/or [[fluid wagon]]s, load [[fuel]] into the [[Locomotive|locomotive(s)]], load ammunition into [[artillery wagon]]s, or repair trains.
A '''train station''' is a combination of at least one [[train stop/ja|train stop/ja]] plus a [[storage/ja|storage/ja]] and/or distribution system, used to fill or empty [[cargo wagon/ja|cargo wagon/ja]]s and/or [[fluid wagon/ja|fluid wagon/ja]]s, load [[fuel/ja|fuel/ja]] into the [[Locomotive|locomotive(s)/ja|]], load ammunition into [[artillery wagon/ja|artillery wagon/ja]]s, or repair trains.


'''Don't mix up ''train stations'' with ''train stops''.''' A train station is a concept, whereas a [[train stop]] is an item.
'''Don't mix up ''train stations'' with ''train stops''.''' A train station is a concept, whereas a [[train stop/ja|train stop/ja]] is an item.


[[Inserter]]s placed next to train tracks are used to load/unload trains at train stops. Inserters are the only way to automatically get items out of and into cargo and artillery wagons; pumps are the only way to automatically get fluids into and out of fluid wagons.
[[Inserter/ja|Inserter/ja]]s placed next to train tracks are used to load/unload trains at train stops. Inserters are the only way to automatically get items out of and into cargo and artillery wagons; pumps are the only way to automatically get fluids into and out of fluid wagons.


{{clear}}
{{clear}}
Line 104: Line 104:
* A red signal means that the following block is occupied by a train.
* A red signal means that the following block is occupied by a train.
* A yellow signal means that a train is approaching and already has the approval to enter the following block.
* A yellow signal means that a train is approaching and already has the approval to enter the following block.
* [[Rail signal]]s separate a new block and reflect its state: green - free, yellow - reserved, red - occupied
* [[Rail signal/ja|Rail signal/ja]]s separate a new block and reflect its state: green - free, yellow - reserved, red - occupied
* [[Rail chain signal]]s separate a new block and reflect the state of the next [[Rail signal]](s): see above, blue - at least one of the paths is blocked, but not all
* [[Rail chain signal/ja|Rail chain signal/ja]]s separate a new block and reflect the state of the next [[Rail signal/ja|Rail signal/ja]](s): see above, blue - at least one of the paths is blocked, but not all
* A train can only pass a signal on the right of the track, or if there is a signal on both sides on the same rail segment. Of course, manual driving overrides this.
* A train can only pass a signal on the right of the track, or if there is a signal on both sides on the same rail segment. Of course, manual driving overrides this.


Line 116: Line 116:
Deadlocks occur when two or more trains are prevented from continuing through an intersection, due to an unsolvable signal conflict. There are a few different types of deadlocks:
Deadlocks occur when two or more trains are prevented from continuing through an intersection, due to an unsolvable signal conflict. There are a few different types of deadlocks:


# Temporary - These are caused by a temporary hiccup in a train's path, such as a loading train being in the way, or created by closing a signal with the [[circuit network]]. These often resolve themselves.
# Temporary - These are caused by a temporary hiccup in a train's path, such as a loading train being in the way, or created by closing a signal with the [[circuit network/ja|circuit network/ja]]. These often resolve themselves.
# Semi-permanent - These are the result of a problem with pathing, often created by a fuel-less train or broken rail, and may require player interaction to resolve, or (in the case of broken rails) may be corrected automatically by construction robots.
# Semi-permanent - These are the result of a problem with pathing, often created by a fuel-less train or broken rail, and may require player interaction to resolve, or (in the case of broken rails) may be corrected automatically by construction robots.
# Permanent - This type is the worst, and cannot be resolved automatically, often requiring the player to manually drive several trains to get them out of the intersection. These often are caused by incorrect signal placement or unreachable stations.
# Permanent - This type is the worst, and cannot be resolved automatically, often requiring the player to manually drive several trains to get them out of the intersection. These often are caused by incorrect signal placement or unreachable stations.
Line 137: Line 137:


== Automated transport ==
== Automated transport ==
[[File:train-schedule-gui.png|thumb|300px|The scheduale tab in the train GUI: 1 - switch between automatic and manual driving mode; 2 - add new train station; 3 - delete selected station; 4 - send train to selected station; 5 - add wait condition for selected station; 6 - delete selected wait condition; 7 - change logical mode of selected wait condition]]
[[File:train-schedule-gui.png|thumb|300px|The scheduale tab in the train GUI: 1 - switch between automatic and manual driving mode; 2 - add new train station; 3 - delete selected station; 4 - send train to selected station; 5 - add wait condition for selected station; 6 - delete selected wait condition; 7 - change logical mode of selected wait condition/ja|]]


Trains set on "Automatic" choose their destination stop and route on departure, and after waiting at a chain signal for five seconds, and when their destination stop disables itself by circuit condition. They choose the shortest route using a [[Railway/Train_path_finding|path finding algorithm]] that will get them to an enabled train stop with the right name, taking penalties for any apparent-at-the-time delays into account. If no such train stop exists they will skip the stop and go on to the next.
Trains set on "Automatic" choose their destination stop and route on departure, and after waiting at a chain signal for five seconds, and when their destination stop disables itself by circuit condition. They choose the shortest route using a [[Railway/Train_path_finding|path finding algorithm/ja|]] that will get them to an enabled train stop with the right name, taking penalties for any apparent-at-the-time delays into account. If no such train stop exists they will skip the stop and go on to the next.


This section covers items used to make trains automatically transport items between stations. The player should be familiar with creating a rail system.
This section covers items used to make trains automatically transport items between stations. The player should be familiar with creating a rail system.
Line 155: Line 155:
* '''Inventory empty''' - Same as above, but empty.
* '''Inventory empty''' - Same as above, but empty.
* '''Item count''' - The train (all cargoes summed) contains a specific amount of a certain item.
* '''Item count''' - The train (all cargoes 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.
* '''Circuit condition''' - The train stop is connectable to the [[Circuit network/ja|Circuit network/ja]], so the signals can used for wait conditions.
* '''Inactivity''' - No items were added or removed for the specified amount of seconds.
* '''Inactivity''' - No items were added or removed for the specified amount of seconds.
* '''Fluid count''' - The train (all fluid wagons summed) contains a specific amount of a certain fluid.
* '''Fluid count''' - The train (all fluid wagons summed) contains a specific amount of a certain fluid.
Line 215: Line 215:
Below are some things to verify if a rail system or train is not working.
Below are some things to verify if a rail system or train is not working.


* Is the train fueled? Ensure that the locomotive has [[fuel]] of some kind.
* Is the train fueled? Ensure that the locomotive has [[fuel/ja|fuel/ja]] of some kind.
* Misplaced or non-functional switches? Ensure that the train can plan a path through the switches.
* Misplaced or non-functional switches? Ensure that the train can plan a path through the switches.
* Another train on the same [[Railway#Segment|segment]] or [[Railway#Block|block]]? Make sure the path of the train is unobstructed.
* Another train on the same [[Railway#Segment|segment/ja|]] or [[Railway#Block|block/ja|]]? Make sure the path of the train is unobstructed.
* Train stops placed correctly? Make sure that the yellow arrows when hovering on the stop point towards the end or exit of the stop.
* Train stops placed correctly? Make sure that the yellow arrows when hovering on the stop point towards the end or exit of the stop.
* Is the train allowed to enter signals from the right direction? Are the signals set correctly?
* Is the train allowed to enter signals from the right direction? Are the signals set correctly?
Line 261: Line 261:


== See also ==
== See also ==
* [[Locomotive]]
* [[Locomotive/ja|Locomotive/ja]]
* [[Cargo wagon]]
* [[Cargo wagon/ja|Cargo wagon/ja]]

Revision as of 12:40, 15 March 2018

作業場/workspace 日本語話者の方、マサカリ投げてくださると助かります


テクノロジーに関しては鉄道技術(研究)をご覧ください。

鉄道(Railway)はFactorioにおける主要輸送手段の一種。導入は複雑になりえるし大量の資源と場所を食うが、特に長距離輸送に於いてはベルトロボット物流より速くて効率的。

しかしながら、鉄道の建築は即座に理解できるようなものではない。自動輸送のような基本を学ぶのにもいくらかの時間がかかる。大規模な鉄道ネットワークを運営し維持してゆくことを学習するには時間と経験が必要となる。

インフラ

鉄道を建設するには、列車を乗せるための軌道(track。線路(rail)とも)を敷かねばならない。典型的にはレールプランナーで行われるが、手動でも可能。線路は2タイル単位で設置され、1タイルだけ動かすことは出来ないことに留意せよ。

最小限の手動運行鉄道

最小限の手動運行鉄道は以下から成る。

機関車のそばに立ってENTERを押下すれば乗り込んで手動運行できる。

分岐

  • 分岐の作動状況に視覚的表現はないものの、レールは合流できる。レールプランナーを使えば、レールを既存レールに重ねて置くことで分岐を形成できる。分岐は路線上の枝分かれであり、列車に2方向の選択肢を与える。
  • 列車は旋回角に制限があるため、2つの直線軌道が交差する点は分岐とはならない。信号ブロックを形成して衝突を防ぐことはできる。
  • 並列軌道は相互に干渉しない。しかし、近すぎる場合には一方からもう一方への分岐が余計な資源を必要とする。軌道を一旦遠ざかる向きに伸ばし、そのあとで戻す必要がある。これは複雑な信号ネットワークの原因になるので、一般的には十分な間隔を開けずに並列軌道を敷くべきではない(ふつう軌道2本分の間隔で上手くいく)。
安全な鉄道横断の例

軌道の横断

軌道の横断には注意!列車はゲーム中で最も与ダメージが大きいものの一つであり、接触時にほとんどのプレイヤーを瞬殺する。

軌道を横断する際の適切な流儀チェックリスト。

  1. ズームアウトして列車が来るか見えるようにする。
  2. 左を見て、次に右を見る。
  3. 近傍の信号を確認。列車用信号が突然青から赤や黄色に変わったら、列車が来るので横断してはいけない。
  4. 完全には軌道上にいなくとも轢かれうるので、軌道付近を歩いてはいけない。
  5. 動いている列車に飛び乗ったり飛び降りたりもできるが、失敗の対価は命である。列車の側面もダメージ判定が有り、2台の列車の間で轢き潰されうる。
  6. 大量のシールドはダメージを軽減しうる。極端な場合には、体一つで列車を止めることすらできる。このためには瞬殺されないように相当なエネルギーシールドモジュールが必要で、スーツのエネルギーを大量に消費する。
  7. 体力を持つものなら列車に轢かれるとダメージを受けるので、自動車戦車を軌道に放置しないように。この対象には敵勢力をも含むのだが。
  8. から遠く離れた列車は(ほぼ)最高速で運行するので、横断の際はより警戒しズームアウトしておこう。や信号付近では止まるために減速しており、低速で運行する。設定が違っても早かったり遅かったりする。

図に示すような安全な路線横断が建設できる。これは接近中の列車がレールを予約したとき、軌道へのアクセスを制限する。プレイヤーがレール上に居る時は、回路ネットワークを介して信号は予約され、列車はプレイヤーが軌道を離れるまで停まって待たねばならない。プレイヤーが内部にいて軌道を横断しているとき、列車のゲートは閉じているので横断部以外の軌道にプレイヤーが踏み入ることは出来ない。これは完全に安全な横断を保証するので、サーバーでよく用いられる。

Trains

Train components:

Locomotive.png
Locomotive
Cargo wagon.png
Cargo wagon
Fluid wagon.png
Fluid wagon
Artillery wagon.png
Artillery wagon
Placing a Cargo wagon/ja so it is attached to the train.
  • A train consists of at least one locomotive.
  • Trains can have more than one locomotive, and any number of Wagon/jas.
  • Locomotives can be manually driven forwards or backwards, however, they are generally slower going backwards. The left and right movement keys are used to change direction at switches.
  • Trains can only drive forwards automatically. An automatic train can drive forwards and backwards when two locomotives facing different directions are connected to the train.
  • A train needs fuel/ja to drive. Fuel can be added by inserters when the train is in manual mode or parked at a station, not when waiting at a signal or standing on automatic mode.

The locomotives' inventory is only used for fuel/ja. To transport items or fluids cargo wagon/jas and/or fluid wagon/jas have to be attached to the train. To attach rolling stock, whether a wagon or a locomotive, the player may either prepare to place one near an existing train, where a green graphic will show the player that the stock will be attached, showing a connection between the train and the new stock. Alternatively, the player may manually connect rolling stock to trains with the rolling stock connect key, if the cargo wagon was placed far away from a train. Rolling stock can likewise be disconnected with the rolling stock disconnect key. The cargo wagons can be filled or emptied manually or by up to twelve adjacent Inserters/ja (six on each side), while fluid wagons can be filled or emptied with up to three pump/jas, which will automatically connect to the nipples on top.

Stations

Station-example-1.png

Station Components:

Train stop.png
Train stop
Straight rail.png
Rails
Inserter.png
Inserters or
Pump.png
Pumps


A train station is a combination of at least one train stop/ja plus a storage/ja and/or distribution system, used to fill or empty cargo wagon/jas and/or fluid wagon/jas, load fuel/ja into the locomotive(s)/ja|, load ammunition into artillery wagon/jas, or repair trains.

Don't mix up train stations with train stops. A train station is a concept, whereas a train stop/ja is an item.

Inserter/jas placed next to train tracks are used to load/unload trains at train stops. Inserters are the only way to automatically get items out of and into cargo and artillery wagons; pumps are the only way to automatically get fluids into and out of fluid wagons.

Signals

The two types of signals in Factorio:

Rail signal.png
Rail signal
Rail chain signal.png
Rail chain signal

Understanding rail signals can be difficult. Several terms critical to understanding them are below:

  • Rail segment
A piece of track (one item).
  • Segment
A single path of continuous track without intersections or switches. This becomes important when signals are employed. The player may mouse over a segment to see its number. It's number is unique within the world, however does not start from 0 or 1.
  • Block
A set of segments defined by rail signals. By default every connected segment belongs to one block, no matter whether a train can drive on it or not, and even if it can be driven only in one direction (e.g. at a switch, both segments of the switch belong to the same block). The blocks are shown as colored lines on the rails when the player holds a rail or rail chain signal.

Rail signals are used to employ multiple trains automatically. Note that driving a train manually ignores most of the rules described here; other automatic trains will follow signaling indicted by the player's movement dynamically, however it will sometimes be not possible to avoid a collision for automatic trains if the player ignores red/yellow signals. Always beware automatic trains and give them the right of way.

See this forum post for a good explanation about blocks.

Basic Signaling Rules

  • There can only be one train in a block at any time. A train spanning multiple blocks occupies them all.
  • A red signal means that the following block is occupied by a train.
  • A yellow signal means that a train is approaching and already has the approval to enter the following block.
  • Rail signal/jas separate a new block and reflect its state: green - free, yellow - reserved, red - occupied
  • Rail chain signal/jas separate a new block and reflect the state of the next Rail signal/ja(s): see above, blue - at least one of the paths is blocked, but not all
  • A train can only pass a signal on the right of the track, or if there is a signal on both sides on the same rail segment. Of course, manual driving overrides this.

Deadlocks

A deadlock or gridlock can happen when every train is locked by another. In nearly every case two or more trains are standing so that every train blocks (by minimum) one other train.

Deadlock occurrence

Deadlocks occur when two or more trains are prevented from continuing through an intersection, due to an unsolvable signal conflict. There are a few different types of deadlocks:

  1. Temporary - These are caused by a temporary hiccup in a train's path, such as a loading train being in the way, or created by closing a signal with the circuit network/ja. These often resolve themselves.
  2. Semi-permanent - These are the result of a problem with pathing, often created by a fuel-less train or broken rail, and may require player interaction to resolve, or (in the case of broken rails) may be corrected automatically by construction robots.
  3. Permanent - This type is the worst, and cannot be resolved automatically, often requiring the player to manually drive several trains to get them out of the intersection. These often are caused by incorrect signal placement or unreachable stations.

It's important to remember that deadlocks can happen by chance, and by mistake of the player. Sometimes even perfectly signaled rails have issues. The rate of deadlocks is inversely proportional to the quality of signaling, however.

Factors that influence the deadlock chance

  • Train length (shorter trains will have a lower chance with the same rail/signal layout, due to having less effect on the rails they're on.)
  • Size of the blocks: More space for the blocks means lower chance of deadlock.
  • Track layout: Some layouts have a higher chance of locking than others.
  • Quantity of trains - More trains trying to use an intersection will result in higher chance of deadlock.
  • The chance is also much higher if trains need to wait often in areas with rail-crossings.

Knowing the factors, how can deadlocks be reduced?

  • Don't use 4-way junctions or roundabouts (circles) to create junctions.
  • Use better 3-way junctions. See A Detailed Look at a Bidirectional Three-way Train Intersection
  • Use roundabouts only for changing direction of train, and never for high traffic intersections.
  • Build more tracks around junctions. Don't have one junction be the only way to reach a place, add redundancy. This keeps a small problem a small problem.

Automated transport

Train-schedule-gui.png

Trains set on "Automatic" choose their destination stop and route on departure, and after waiting at a chain signal for five seconds, and when their destination stop disables itself by circuit condition. They choose the shortest route using a path finding algorithm/ja| that will get them to an enabled train stop with the right name, taking penalties for any apparent-at-the-time delays into account. If no such train stop exists they will skip the stop and go on to the next.

This section covers items used to make trains automatically transport items between stations. The player should be familiar with creating a rail system.

First, the player has to setup a rail system with at least two train stops, which are placed in the right-hand side of the expected train arrival direction. By hovering over the train stop with the 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 fuel the train, you can start the train on it's schedule by switching from manual to automatic driving mode.

Train schedule

The player can set up a list of train stations in the upper window. The train will route to stops in the given order, if it's at the end it will continue with the first. Currently, it's not possible to make a one-time schedule. Stations can be added by clicking button 2 (see picture). A pop-up appears with a list of all stop names. If you select one, another pop-up appears for you to select a wait condition.

Wait conditions are used to tell the train when to leave the station. There are 7 types of wait conditions:

  • Time passed
  • Inventory full - All inventories of the train are full.
  • Inventory empty - Same as above, but empty.
  • Item count - The train (all cargoes summed) contains a specific amount of a certain item.
  • Circuit condition - The train stop is connectable to the Circuit network/ja, so the signals can used for wait conditions.
  • Inactivity - No items were added or removed for the specified amount of seconds.
  • Fluid count - The train (all fluid wagons summed) contains a specific amount of a certain fluid.

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 true if at least one of the terms is true.

When mixing AND and OR terms, the logic is grouped by the OR terms. When evaluating the wait condition, the first term is evaluated along with all AND terms immediately following up to but excluding the next occurring OR term. If they all evaluate true, the wait condition evaluates true. Otherwise, evaluation continues with that next occurring OR term and all AND terms immediately following it, up to the next OR term. This continues until either an OR group evaluates true and the wait condition is satisfied, or all terms have been checked.

Examples

Expand for examples

Wait until full, up to 30 seconds:

Full cargo inventory
OR 30 seconds passed

Wait until cargo full, or circuit condition Oil > 3000:

Full cargo inventory
OR Circuit condition - Oil > 3000

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 at least 30 seconds passed:

Cargo: Iron ore < 500
AND 30 seconds passed
OR Cargo: Copper ore < 500
AND 30 seconds passed

Factorio's wait condition logic is read as disjunctive normal form (DNF), and so 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.

Troubleshooting

Below are some things to verify if a rail system or train is not working.

  • Is the train fueled? Ensure that the locomotive has fuel/ja of some kind.
  • Misplaced or non-functional switches? Ensure that the train can plan a path through the switches.
  • Another train on the same segment/ja| or block/ja|? Make sure the path of the train is unobstructed.
  • Train stops placed correctly? Make sure that the yellow arrows when hovering on the stop point towards the end or exit of the stop.
  • Is the train allowed to enter signals from the right direction? Are the signals set correctly?
  • If a track is supposed to be two-way, the rail signals should be opposite each other. You can verify they match up by hovering the cursor over one. For a matched pair, it will show the other.

No path

When trains cannot reach the target, a "no path" symbol pops up over the locomotive. Check:

  • Can the train reach its current destination 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 must be on the right hand side of the track.
  • If you use rail signals, check that the signals are all allowing traffic in the correct direction.
  • Check for interruptions in the train tracks, drive to the station manually to check there are no rail parts missing. Especially near junctions these can be hard to spot if missing.

If you are still having problems, consider:

  • Driving the train manually, and as you pass each switch, try switching to automatic. When it works, you will know the rough area of the problem.

A pictorial summary of typical problems.


Achievements

Trans-factorio-express-achievement.png Trans-Factorio express

Have a train plan a path 1000 tiles or longer.

Connection to OpenTTD

Factorio's railway system works basically exactly like the block signals in Open Traffic Tycoon Deluxe. Players who have ever played that game will find some elements of it in Factorio. If not, they can learn from the OpenTTD documentation.

See also