Difference between revisions of "TrainCarts/Signs/Blocker"

From BergerHealer Wiki
Jump to navigation Jump to search
Bergerhealer Wiki>RyanDo
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[TrainCarts/Signs|« Go back]]
+
<languages/>
 +
<translate>
 +
<!--T:1-->
 +
[[Special:MyLanguage/TrainCarts/Signs|« Go back]]
  
== Introduction ==
+
 
 +
== Introduction == <!--T:2-->
 +
 
 +
<!--T:3-->
 
[[File:TrainCarts-Blocker-Ramped.gif|frame|right]]
 
[[File:TrainCarts-Blocker-Ramped.gif|frame|right]]
 
The blocker sign allows you to block trains coming from a certain direction. It is also used during path finding to block certain routes from being used. For example, if your trains are getting sent into the wrong direction, possibly colliding with other trains, you can use the blocker sign to prevent this.
 
The blocker sign allows you to block trains coming from a certain direction. It is also used during path finding to block certain routes from being used. For example, if your trains are getting sent into the wrong direction, possibly colliding with other trains, you can use the blocker sign to prevent this.
  
 +
<!--T:4-->
 
The sign needs to be powered for it to function. It does not have to be powered for it to be used during path finding. It operates on both flat and ramped rails, so it allows you to stop a train while it slides down a ramp. Players cannot push the train past the blocker sign, but they can push it the other way since that direction is not blocked.
 
The sign needs to be powered for it to function. It does not have to be powered for it to be used during path finding. It operates on both flat and ramped rails, so it allows you to stop a train while it slides down a ramp. Players cannot push the train past the blocker sign, but they can push it the other way since that direction is not blocked.
  
 +
<!--T:5-->
 
Therefore, blocker signs do not indefinitely freeze the train until power is removed, you can still push it in the other direction.
 
Therefore, blocker signs do not indefinitely freeze the train until power is removed, you can still push it in the other direction.
  
== Sign syntax ==
 
  
 +
== Sign syntax == <!--T:6-->
 +
 +
</translate>
 
{{sign|[+train:north]|blocker}}
 
{{sign|[+train:north]|blocker}}
 +
<translate>
  
=== First line ===
 
  
 +
=== First line === <!--T:7-->
 +
 +
<!--T:8-->
 
After train or cart, you can specify the direction to block. (just like you can with every other sign)
 
After train or cart, you can specify the direction to block. (just like you can with every other sign)
  
 +
<!--T:9-->
 
You can use the types defined below. If left empty (''[train]''), the train has to face the text-side of the sign to be blocked. The type is defined by the first letter, so instead of '''r'''ight you can also use '''r''' on the line.
 
You can use the types defined below. If left empty (''[train]''), the train has to face the text-side of the sign to be blocked. The type is defined by the first letter, so instead of '''r'''ight you can also use '''r''' on the line.
  
 +
<!--T:10-->
 
For use with path finding, always use the always-powered ''[+train]'' syntax on blocker signs, otherwise it does not work.
 
For use with path finding, always use the always-powered ''[+train]'' syntax on blocker signs, otherwise it does not work.
  
 +
<!--T:11-->
 
{|class="wikitable" style="width: 498px; height: 171px;"
 
{|class="wikitable" style="width: 498px; height: 171px;"
 
|-
 
|-
Line 27: Line 43:
 
|-
 
|-
 
| '''n'''orth
 
| '''n'''orth
| Trains coming from the north are blocked
+
| Trains moving from south to north are blocked
 
|-
 
|-
 
| '''s'''outh
 
| '''s'''outh
| Trains coming from the south are blocked
+
| Trains moving from north to south are blocked
 
|-
 
|-
 
| '''e'''ast
 
| '''e'''ast
| Trains coming from the east are blocked
+
| Trains moving from west to east are blocked
 
|-
 
|-
 
| '''w'''est
 
| '''w'''est
| Trains coming from the west are blocked
+
| Trains moving from east to west are blocked
 
|-
 
|-
 
| '''l'''eft
 
| '''l'''eft
| Trains coming from the left (relative to the sign) are blocked
+
| Trains moving from left to right (relative to the sign) are blocked
 
|-
 
|-
 
| '''r'''ight
 
| '''r'''ight
| Trains coming from the right (relative to the sign) are blocked
+
| Trains moving from right to left (relative to the sign) are blocked
 
|-
 
|-
 
| '''b'''ackwards
 
| '''b'''ackwards
| Trains coming from the back (relative to the sign) are blocked
+
| Trains moving from the back to the front (relative to the sign) are blocked
 
|-
 
|-
 
| '''f'''orwards
 
| '''f'''orwards
Line 52: Line 68:
 
|}
 
|}
  
=== Third and Fourth line ===
+
=== Third and Fourth line === <!--T:12-->
  
 +
<!--T:13-->
 
Similar to the station sign, you can add an optional action to perform after the blocker sign loses power. Options are '''left''', '''right''', '''continue''' and '''reverse'''. If left empty, the train is not moved at all. All actions launch with the same velocity as the train had when entering the blocker sign, no actual launching is performed. The third line is used for a delay, the fourth specifies the direction to launch to.
 
Similar to the station sign, you can add an optional action to perform after the blocker sign loses power. Options are '''left''', '''right''', '''continue''' and '''reverse'''. If left empty, the train is not moved at all. All actions launch with the same velocity as the train had when entering the blocker sign, no actual launching is performed. The third line is used for a delay, the fourth specifies the direction to launch to.
  
== Media ==
+
== Slowing down on approach == <!--T:16-->
 +
By setting the [[Special:MyLanguage/TrainCarts/Signs/Property#Wait_Property|train wait acceleration property]], trains will automatically slow down approaching an active blocker sign, instead of stopping instantly.
 +
 
 +
== Media == <!--T:14-->
  
 +
<!--T:15-->
 
https://www.youtube.com/watch?v=S1ERZDwJnZk
 
https://www.youtube.com/watch?v=S1ERZDwJnZk
 
'''Important:''' Syntax has changed over time. Use [train:left] to block trains coming from the left. The third line no longer defines the direction!
 
'''Important:''' Syntax has changed over time. Use [train:left] to block trains coming from the left. The third line no longer defines the direction!
 +
</translate>

Latest revision as of 15:16, 23 September 2024

Other languages:

« Go back


Introduction

TrainCarts-Blocker-Ramped.gif

The blocker sign allows you to block trains coming from a certain direction. It is also used during path finding to block certain routes from being used. For example, if your trains are getting sent into the wrong direction, possibly colliding with other trains, you can use the blocker sign to prevent this.

The sign needs to be powered for it to function. It does not have to be powered for it to be used during path finding. It operates on both flat and ramped rails, so it allows you to stop a train while it slides down a ramp. Players cannot push the train past the blocker sign, but they can push it the other way since that direction is not blocked.

Therefore, blocker signs do not indefinitely freeze the train until power is removed, you can still push it in the other direction.


Sign syntax

Signtemplate.png
[+train:north]
blocker


First line

After train or cart, you can specify the direction to block. (just like you can with every other sign)

You can use the types defined below. If left empty ([train]), the train has to face the text-side of the sign to be blocked. The type is defined by the first letter, so instead of right you can also use r on the line.

For use with path finding, always use the always-powered [+train] syntax on blocker signs, otherwise it does not work.

Text Result
north Trains moving from south to north are blocked
south Trains moving from north to south are blocked
east Trains moving from west to east are blocked
west Trains moving from east to west are blocked
left Trains moving from left to right (relative to the sign) are blocked
right Trains moving from right to left (relative to the sign) are blocked
backwards Trains moving from the back to the front (relative to the sign) are blocked
forwards Same result as if you keep the line empty

Third and Fourth line

Similar to the station sign, you can add an optional action to perform after the blocker sign loses power. Options are left, right, continue and reverse. If left empty, the train is not moved at all. All actions launch with the same velocity as the train had when entering the blocker sign, no actual launching is performed. The third line is used for a delay, the fourth specifies the direction to launch to.

Slowing down on approach

By setting the train wait acceleration property, trains will automatically slow down approaching an active blocker sign, instead of stopping instantly.

Media

https://www.youtube.com/watch?v=S1ERZDwJnZk Important: Syntax has changed over time. Use [train:left] to block trains coming from the left. The third line no longer defines the direction!