Difference between revisions of "TrainCarts/Signs/Mutex/zh"

From BergerHealer Wiki
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
</div>
 
</div>
  
 +
<div class="mw-translate-fuzzy">
 
闭塞区(mutex)控制牌可以用于生成一个闭塞区域,当某一列车已经占用了这个区域时,它会阻止其它列车继续进入。当前序列车离开闭塞区后,等待的列车就可以按照先来后到的顺序继续进入闭塞区。这个控制牌和Switcher道岔控制牌可以互相配合,防止列车相撞。此控制牌周围可以设置一个拉杆,当有列车在闭塞区的时候,拉杆会输出红石信号。
 
闭塞区(mutex)控制牌可以用于生成一个闭塞区域,当某一列车已经占用了这个区域时,它会阻止其它列车继续进入。当前序列车离开闭塞区后,等待的列车就可以按照先来后到的顺序继续进入闭塞区。这个控制牌和Switcher道岔控制牌可以互相配合,防止列车相撞。此控制牌周围可以设置一个拉杆,当有列车在闭塞区的时候,拉杆会输出红石信号。
 
总体来讲,此功能类似于现实中的半自动闭塞。
 
总体来讲,此功能类似于现实中的半自动闭塞。
 +
</div>
  
 
多个闭塞区可以拥有同一个名称,这样插件会将它们组合为一个闭塞区。一旦有列车进入其中的任何一个区域,其它相同名称的闭塞区也会禁止其它列车进入。这样一来,铁路系统可以拥有更复杂的闭塞区。
 
多个闭塞区可以拥有同一个名称,这样插件会将它们组合为一个闭塞区。一旦有列车进入其中的任何一个区域,其它相同名称的闭塞区也会禁止其它列车进入。这样一来,铁路系统可以拥有更复杂的闭塞区。
Line 34: Line 36:
 
*第四行 条件语句 只有对应符合条件语句的列车会被此控制牌控制。 详见[[Special:MyLanguage/TrainCarts/Signs/Statements|Statement]]
 
*第四行 条件语句 只有对应符合条件语句的列车会被此控制牌控制。 详见[[Special:MyLanguage/TrainCarts/Signs/Statements|Statement]]
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
=== Smart Mutex ===
 
=== Smart Mutex ===
 
[[File:Smartmutex.png|thumb|Smart Mutex allows two trains to pass while blocking two others]]
 
[[File:Smartmutex.png|thumb|Smart Mutex allows two trains to pass while blocking two others]]
 
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.
 
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 43: Line 47:
 
{{sign|[train]|smutex 5/6/8}}
 
{{sign|[train]|smutex 5/6/8}}
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
==== Prediction ====
 
==== 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.
 
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>
  
== Slowing down on approach ==
+
<div lang="en" dir="ltr" class="mw-content-ltr">
By setting the [[TrainCarts/Signs/Property#Wait_Property|train wait acceleration property]], trains will automatically slow down approaching an occupied mutex zone, instead of stopping instantly.
 
 
 
 
=== Pathing Mutex ===
 
=== Pathing Mutex ===
 
[[File:Pathingmutex.png|thumb|Pathing Mutex creates a path that prevents another train from crossing at the same time]]
 
[[File:Pathingmutex.png|thumb|Pathing Mutex creates a path that prevents another train from crossing at the same time]]
The pathing mutex attempts to replace the [[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.
+
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 61: Line 66:
 
{{sign|[train]|spmutex 100 3}}
 
{{sign|[train]|spmutex 100 3}}
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
==== Syntax ====
 
==== Syntax ====
 
'''pathmutex / pmutex''': Creates a standard mutex zone using the path ahead
 
'''pathmutex / pmutex''': Creates a standard mutex zone using the path ahead
 +
</div>
  
 +
<div lang="en" dir="ltr" class="mw-content-ltr">
 
'''spmutex''': Creates a smart mutex zone using the path ahead
 
'''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.
 
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 ==
 +
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 ==
 
== Debug ==
 
[[File:Debugmutex.png|thumb|Smart Mutex boundaries displayed using the /train debug mutex command]]
 
[[File:Debugmutex.png|thumb|Smart Mutex boundaries displayed using the /train debug mutex command]]
 
Use '''/train debug mutex''' to temporarily display the exact boundaries of nearby mutex zones.
 
Use '''/train debug mutex''' to temporarily display the exact boundaries of nearby mutex zones.
 +
</div>

Latest revision as of 15:18, 23 September 2024

Other languages:
English • ‎中文 • ‎中文(中国大陆)‎

» 控制牌


闭塞区(mutex)控制牌可以用于生成一个闭塞区域,当某一列车已经占用了这个区域时,它会阻止其它列车继续进入。当前序列车离开闭塞区后,等待的列车就可以按照先来后到的顺序继续进入闭塞区。这个控制牌和Switcher道岔控制牌可以互相配合,防止列车相撞。此控制牌周围可以设置一个拉杆,当有列车在闭塞区的时候,拉杆会输出红石信号。 总体来讲,此功能类似于现实中的半自动闭塞。

多个闭塞区可以拥有同一个名称,这样插件会将它们组合为一个闭塞区。一旦有列车进入其中的任何一个区域,其它相同名称的闭塞区也会禁止其它列车进入。这样一来,铁路系统可以拥有更复杂的闭塞区。

语法

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 如果不输入更多参数的话,默认是以控制牌所在的格子为坐标中心,生成向x/y/z轴的正负方向分别扩展1/2/1格的长方体闭塞区。当mutex后面跟着一个数字作为参数时,该参数会应用于所有坐标轴,当后面跟着两个数字时,第一个数字用于设置x/z轴上的距离,第二个数字设置y轴上的距离。当后面跟着三个数字时,三个数字分别对应x/y/z轴上的距离。
  • 第三行(可选),第三行代表此闭塞区的名称,多个闭塞区命名为相同名称会组合为一个大的闭塞区。
  • 第四行 条件语句 只有对应符合条件语句的列车会被此控制牌控制。 详见Statement

Smart Mutex

Smart Mutex allows two trains to pass while blocking two others

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.

Signtemplate.png
[train]
smartmutex 2


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

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

Pathing Mutex creates a path that prevents another train from crossing at the same time

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.

Signtemplate.png
[train]
pathmutex 100


Signtemplate.png
[train]
pmutex 100


Signtemplate.png
[train]
spmutex 100 3

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.

Debug

Smart Mutex boundaries displayed using the /train debug mutex command

Use /train debug mutex to temporarily display the exact boundaries of nearby mutex zones.