TrainCarts/Signs/Mutex [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "Mutexサインは排他的な制御、つまり列車が中にある間は他の列車を入らせない領域を展開します。領域が消えると、待機していた列車が入れるようになります。このサインはSwitcherサインと組み合わせて衝突を避けるのに便利です。またMutexサインは、取り付けられたレバーを通じ、領域展開が行われているかどうかの状態を切り替えます。")
(Created page with "== デバッグ == thumb|/train debug mutexコマンドを利用して表示された、スマートミューテックスの境界 '''/train debug mutext'''を使用すると、付近の領域の境界を見やすく表示できます。")
 
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
Mutexサインは排他的な制御、つまり列車が中にある間は他の列車を入らせない領域を展開します。領域が消えると、待機していた列車が入れるようになります。このサインはSwitcherサインと組み合わせて衝突を避けるのに便利です。またMutexサインは、取り付けられたレバーを通じ、領域展開が行われているかどうかの状態を切り替えます。
Mutexサインは排他的な制御、つまり列車が中にある間は他の列車を入らせない領域を展開します。領域が消えると、待機していた列車が入れるようになります。このサインはSwitcherサインと組み合わせて衝突を避けるのに便利です。またMutexサインは、取り付けられたレバーを通じ、領域展開が行われているかどうかの状態を切り替えます。


<div lang="en" dir="ltr" class="mw-content-ltr">
複数のMutexサインは同じ名前をつけることでくっつけることができ、それぞれの立方体の領域をあわせてより複雑な領域を作ることが可能です。
Multiple mutex signs can be combined by naming them the same, combining the cuboid areas of effect they occupy. This way more complex zones can be created.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== 記法 ==
== Syntax ==
</div>


{{sign|[train]|mutex}}
{{sign|[train]|mutex}}
Line 28: Line 24:




<div lang="en" dir="ltr" class="mw-content-ltr">
* '''一行目''':[train]。Mutexサインは電源を必要としません。
* First line: [train]. The sign does not have to be powered.
* '''二行目''':''mutex''と書きます。引数を指定することができ、個数によって挙動が変化します。一つだけの場合は領域のxyzすべてのサイズが一度に指定され、二つだけの場合はひとつめがxzでふたつめがy、三つ全て指定するとそれぞれxyzのサイズとなります。指定しない場合、1×2×1の箱型の領域が生成されます。
* Second line: ''mutex'', which without further arguments will create a cuboid zone around the sign of 1x2x1 (x/y/z). When followed by one number, the number sets all cuboid x/y/z-radius values at once. When followed by a second number, the first number sets the x/z-radius and the second number the y-radius. With 3 parameters, each x/y/z radius can be specified.
* '''三行目''':他の領域と結合して複雑な形の領域を作りたい場合、ここに名前を指定できます。必須ではありません。
* Third line: Name (optional), multiple mutex signs with the same name form a single combined mutex zone
* '''四行目''':[[Special:MyLanguage/TrainCarts/Signs/Statements|ステートメント]]。同じ名前を指定した複数サインのステートメントは、それぞれリストに追加され、各個処理されます。先頭に&(アンド)や|(パイプ)をつけることで、AND演算かOR演算を選択できます。
* Fourth line: [[Special:MyLanguage/TrainCarts/Signs/Statements|Statement]] (optional), each sign with the same name adds to a list of statements. Prepend & or | to switch between AND and OR logic.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
=== スマートミューテックス ===
=== Smart Mutex ===
[[File:Smartmutex.png|thumb|Smart Mutexを用いることで、複数の列車を選択的に、同時に処理することができます。]]
[[File:Smartmutex.png|thumb|Smart Mutex allows two trains to pass while blocking two others]]
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.
</div>


{{sign|[train]|smartmutex 2}}
{{sign|[train]|smartmutex 2}}
Line 46: Line 38:
{{sign|[train]|smutex 5/6/8}}
{{sign|[train]|smutex 5/6/8}}


<div lang="en" dir="ltr" class="mw-content-ltr">
==== 予測 ====
==== Prediction ====
スマートミューテックスによって列車の通るであろうルートを確認する時、Switcherサインも考慮に入れられます。なのでレールの分岐が現在どちらを向いているかは重要ではありません。
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
=== パシングミューテックス ===
=== Pathing Mutex ===
[[File:Pathingmutex.png|thumb|Pathing Mutexは同時に複数の列車が十字路で激突しないようにしてくれます。]]
[[File:Pathingmutex.png|thumb|Pathing Mutex creates a path that prevents another train from crossing at the same time]]
Pathing Mutexは[[Special:MyLanguage/TrainCarts/Signs/Waiter|Waiterサイン]]の上位互換のようなサインです。列車がパシングミューテックスサインを起動すると、その地点から列車の通るであろう経路を予測し、そのレール上を一時的な閉塞領域として扱います。そのレールを横切ろうとするその他の列車は一時的にせき止められ、また走行中であれば、パシングミューテックスの看板の前で止められます。
The pathing mutex attempts to replace the [[Special:MyLanguage/TrainCarts/Signs/Waiter|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.
</div>


{{sign|[train]|pathmutex 100}}
{{sign|[train]|pathmutex 100}}
Line 65: Line 53:
{{sign|[train]|spmutex 100 3}}
{{sign|[train]|spmutex 100 3}}


<div lang="en" dir="ltr" class="mw-content-ltr">
==== 記法 ====
==== Syntax ====
'''pathmutex'''または'''pmutex'''。指定されたパスを利用して、標準的な閉塞領域を作り出します。
'''pathmutex / pmutex''': Creates a standard mutex zone using the path ahead
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''spmutex''':指定したパスから、スマートミューテックス領域を作ります。
'''spmutex''': Creates a smart mutex zone using the path ahead
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
複数の数字をパスとして指定できます。最初の数字は領域を作るまでの前方の距離で、ふたつめの数字(任意)は幅、つまりどのくらい列車が線路から距離を保って停車するのかを表します。これを大きな数字にすることで、激突を回避することができます。
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.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== 接近時に減速する ==
== Slowing down on approach ==
[[Special:MyLanguage/TrainCarts/Signs/Property#Wait_Property|waitaccelerationプロパティ]]を設定すると、他の列車によって占有済みの閉塞領域へ近づいた時に、列車がパッと止まるのではなく、減速してから停車します。
By setting the [[Special:MyLanguage/TrainCarts/Signs/Property#Wait_Property|train wait acceleration property]], trains will automatically slow down approaching an occupied mutex zone, instead of stopping instantly.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
== デバッグ ==
== Debug ==
[[File:Debugmutex.png|thumb|/train debug mutexコマンドを利用して表示された、スマートミューテックスの境界]]
[[File:Debugmutex.png|thumb|Smart Mutex boundaries displayed using the /train debug mutex command]]
'''/train debug mutext'''を使用すると、付近の領域の境界を見やすく表示できます。
Use '''/train debug mutex''' to temporarily display the exact boundaries of nearby mutex zones.
</div>

Latest revision as of 03:44, 7 July 2026

Other languages:

概要

列車が交差点にある間、Mutexサインが他の列車の進入をせき止めている。

Mutexサインは排他的な制御、つまり列車が中にある間は他の列車を入らせない領域を展開します。領域が消えると、待機していた列車が入れるようになります。このサインはSwitcherサインと組み合わせて衝突を避けるのに便利です。またMutexサインは、取り付けられたレバーを通じ、領域展開が行われているかどうかの状態を切り替えます。

複数のMutexサインは同じ名前をつけることでくっつけることができ、それぞれの立方体の領域をあわせてより複雑な領域を作ることが可能です。

記法

Signtemplate.png
[train]
mutex


Signtemplate.png
[train]
mutex 1/2/1


Signtemplate.png
[train]
mutex 1/2


Signtemplate.png
[train]
mutex 2


Signtemplate.png
[train]
mutex 2
name
d@Station 12


  • 一行目:[train]。Mutexサインは電源を必要としません。
  • 二行目mutexと書きます。引数を指定することができ、個数によって挙動が変化します。一つだけの場合は領域のxyzすべてのサイズが一度に指定され、二つだけの場合はひとつめがxzでふたつめがy、三つ全て指定するとそれぞれxyzのサイズとなります。指定しない場合、1×2×1の箱型の領域が生成されます。
  • 三行目:他の領域と結合して複雑な形の領域を作りたい場合、ここに名前を指定できます。必須ではありません。
  • 四行目ステートメント。同じ名前を指定した複数サインのステートメントは、それぞれリストに追加され、各個処理されます。先頭に&(アンド)や|(パイプ)をつけることで、AND演算かOR演算を選択できます。

スマートミューテックス

Smart Mutexを用いることで、複数の列車を選択的に、同時に処理することができます。

Smart Mutexサインはそれぞれの列車の通る経路を考慮し、衝突が起きそうにないのであれば、複数の列車を通過させます。

Signtemplate.png
[train]
smartmutex 2


Signtemplate.png
[train]
smutex 5/6/8


予測

スマートミューテックスによって列車の通るであろうルートを確認する時、Switcherサインも考慮に入れられます。なのでレールの分岐が現在どちらを向いているかは重要ではありません。

パシングミューテックス

Pathing Mutexは同時に複数の列車が十字路で激突しないようにしてくれます。

Pathing MutexはWaiterサインの上位互換のようなサインです。列車がパシングミューテックスサインを起動すると、その地点から列車の通るであろう経路を予測し、そのレール上を一時的な閉塞領域として扱います。そのレールを横切ろうとするその他の列車は一時的にせき止められ、また走行中であれば、パシングミューテックスの看板の前で止められます。

Signtemplate.png
[train]
pathmutex 100


Signtemplate.png
[train]
pmutex 100


Signtemplate.png
[train]
spmutex 100 3


記法

pathmutexまたはpmutex。指定されたパスを利用して、標準的な閉塞領域を作り出します。

spmutex:指定したパスから、スマートミューテックス領域を作ります。

複数の数字をパスとして指定できます。最初の数字は領域を作るまでの前方の距離で、ふたつめの数字(任意)は幅、つまりどのくらい列車が線路から距離を保って停車するのかを表します。これを大きな数字にすることで、激突を回避することができます。

接近時に減速する

waitaccelerationプロパティを設定すると、他の列車によって占有済みの閉塞領域へ近づいた時に、列車がパッと止まるのではなく、減速してから停車します。

デバッグ

/train debug mutexコマンドを利用して表示された、スマートミューテックスの境界

/train debug mutextを使用すると、付近の領域の境界を見やすく表示できます。