//Mutex
Saihou-Heiki (talk | contribs) (Created page with "複数のMutexサインは同じ名前をつけることでくっつけることができ、それぞれの立方体の領域をあわせてより複雑な領域を作ることが可能です。") |
Saihou-Heiki (talk | contribs) (Created page with "* '''一行目''':[train]。Mutexサインは電源を必要としません。 * '''二行目''':''mutex''と書きます。引数を指定することができ、個数によって挙動が変化します。一つだけの場合は領域のxyzすべてのサイズが一度に指定され、二つだけの場合はひとつめがxzでふたつめがy、三つ全て指定するとそれぞれxyzのサイズとなります。指定しない場合、1×2×1の箱型の...") |
||
| Line 24: | Line 24: | ||
* '''一行目''':[train]。Mutexサインは電源を必要としません。 | |||
* | * '''二行目''':''mutex''と書きます。引数を指定することができ、個数によって挙動が変化します。一つだけの場合は領域のxyzすべてのサイズが一度に指定され、二つだけの場合はひとつめがxzでふたつめがy、三つ全て指定するとそれぞれxyzのサイズとなります。指定しない場合、1×2×1の箱型の領域が生成されます。 | ||
* | * '''三行目''':他の領域と結合して複雑な形の領域を作りたい場合、ここに名前を指定できます。必須ではありません。 | ||
* | * '''四行目''':[[Special:MyLanguage/TrainCarts/Signs/Statements|ステートメント]]。同じ名前を指定した複数サインのステートメントは、それぞれリストに追加され、各個処理されます。先頭に&(アンド)や|(パイプ)をつけることで、AND演算かOR演算を選択できます。 | ||
* | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
Revision as of 01:00, 26 June 2026
概要
Mutexサインは排他的な制御、つまり列車が中にある間は他の列車を入らせない領域を展開します。領域が消えると、待機していた列車が入れるようになります。このサインはSwitcherサインと組み合わせて衝突を避けるのに便利です。またMutexサインは、取り付けられたレバーを通じ、領域展開が行われているかどうかの状態を切り替えます。
複数のMutexサインは同じ名前をつけることでくっつけることができ、それぞれの立方体の領域をあわせてより複雑な領域を作ることが可能です。
記法
- 一行目:[train]。Mutexサインは電源を必要としません。
- 二行目:mutexと書きます。引数を指定することができ、個数によって挙動が変化します。一つだけの場合は領域のxyzすべてのサイズが一度に指定され、二つだけの場合はひとつめがxzでふたつめがy、三つ全て指定するとそれぞれxyzのサイズとなります。指定しない場合、1×2×1の箱型の領域が生成されます。
- 三行目:他の領域と結合して複雑な形の領域を作りたい場合、ここに名前を指定できます。必須ではありません。
- 四行目:ステートメント。同じ名前を指定した複数サインのステートメントは、それぞれリストに追加され、各個処理されます。先頭に&(アンド)や|(パイプ)をつけることで、AND演算かOR演算を選択できます。
Smart Mutex
The Smart Mutex is a mutex sign that checks the paths trains (will) take through the mutex zones, allowing trains to pass that don't have a path intersecting with one another. This allows multiple trains to cross an intersection at the same time provided they can safely pass each other.
Prediction
When checking the path a train will take through the smart mutex zone, switchers are taken into account. The current switched state of the rails is then not important.
Pathing Mutex
The pathing mutex attempts to replace the waiter sign in a more reliable fashion. When trains activate the pathing mutex sign, a path is predicted that the train will take from that point. All rails visited along this path become part of a temporary mutex zone. Other trains are blocked from entering this path, and if a train is already on it, the train is stopped in front of the pathing mutex sign.
Syntax
pathmutex / pmutex: Creates a standard mutex zone using the path ahead
spmutex: Creates a smart mutex zone using the path ahead
First number is the path distance ahead to create as a mutex zone. Second number (optional) sets the width, or, distance that trains keep from the path. Setting this to a higher number avoids trains colliding with each other.
Slowing down on approach
By setting the train wait acceleration property, trains will automatically slow down approaching an occupied mutex zone, instead of stopping instantly.
