<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.traincarts.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saionji+Rin</id>
	<title>BergerHealer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.traincarts.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Saionji+Rin"/>
	<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/p/Special:Contributions/Saionji_Rin"/>
	<updated>2026-04-26T00:49:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1880</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1880"/>
		<updated>2021-12-30T23:26:02Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。所以我们需要在某些路段人为规定行车方向。例如，如果我们希望列车在复线轨道上只朝一个方向行驶，这时可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
首先，将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
之后，手动把列车推向下方有switcher控制牌的道岔，您现在能观察到插件是如何自动地改变轨道方向，并将列车调度到不同轨道上的。同样，您可以继续使用之前提到过的命令为列车设置新的路径点，然后再将它们推向道岔，重复观察自动寻路系统的运作机制。当您熟悉了以后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。当潜行时手持调试棒右键轨道，插件就会重新计算以点击位置为起点，前往各个可达路径点的路径。如果服务器中有多个小规模铁路网络，这么做可以比手动输入/train reroute更有效率，因为这个指令是将全地图的整个路网都重新计算一次。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/20/zh&amp;diff=1879</id>
		<title>Translations:TrainCarts/PathFinding/20/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/20/zh&amp;diff=1879"/>
		<updated>2021-12-30T23:25:20Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。当潜行时手持调试棒右键轨道，插件就会重新计算以点击位置为起点，前往各个可达路径点的路径。如果服务器中有多个小规模铁路网络，这么做可以比手动输入/train reroute更有效率，因为这个指令是将全地图的整个路网都重新计算一次。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1878</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1878"/>
		<updated>2021-12-30T23:22:11Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。所以我们需要在某些路段人为规定行车方向。例如，如果我们希望列车在复线轨道上只朝一个方向行驶，这时可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
首先，将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
之后，手动把列车推向下方有switcher控制牌的道岔，您现在能观察到插件是如何自动地改变轨道方向，并将列车调度到不同轨道上的。同样，您可以继续使用之前提到过的命令为列车设置新的路径点，然后再将它们推向道岔，重复观察自动寻路系统的运作机制。当您熟悉了以后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1877</id>
		<title>Translations:TrainCarts/PathFinding/12/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1877"/>
		<updated>2021-12-30T23:22:09Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。所以我们需要在某些路段人为规定行车方向。例如，如果我们希望列车在复线轨道上只朝一个方向行驶，这时可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1876</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1876"/>
		<updated>2021-12-30T23:14:50Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
首先，将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
之后，手动把列车推向下方有switcher控制牌的道岔，您现在能观察到插件是如何自动地改变轨道方向，并将列车调度到不同轨道上的。同样，您可以继续使用之前提到过的命令为列车设置新的路径点，然后再将它们推向道岔，重复观察自动寻路系统的运作机制。当您熟悉了以后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/14/zh&amp;diff=1875</id>
		<title>Translations:TrainCarts/PathFinding/14/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/14/zh&amp;diff=1875"/>
		<updated>2021-12-30T23:14:45Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;首先，将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
之后，手动把列车推向下方有switcher控制牌的道岔，您现在能观察到插件是如何自动地改变轨道方向，并将列车调度到不同轨道上的。同样，您可以继续使用之前提到过的命令为列车设置新的路径点，然后再将它们推向道岔，重复观察自动寻路系统的运作机制。当您熟悉了以后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1874</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1874"/>
		<updated>2021-12-30T23:14:09Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
现在，手动把列车推向下方有switcher控制牌的道岔，您能观察到插件是如何自动地改变轨道方向，并将列车调度到不同轨道上的。您可以继续使用之前提到过的命令为列车设置新的路径点，然后再将它们推向道岔，观察自动寻路系统的运作机制。当您熟悉了以后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/14/zh&amp;diff=1873</id>
		<title>Translations:TrainCarts/PathFinding/14/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/14/zh&amp;diff=1873"/>
		<updated>2021-12-30T23:14:00Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
现在，手动把列车推向下方有switcher控制牌的道岔，您能观察到插件是如何自动地改变轨道方向，并将列车调度到不同轨道上的。您可以继续使用之前提到过的命令为列车设置新的路径点，然后再将它们推向道岔，观察自动寻路系统的运作机制。当您熟悉了以后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1872</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1872"/>
		<updated>2021-12-30T23:13:31Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;将矿车放在轨道上，然后输入路径点指令来为其设置一个路径点： &amp;lt;pre&amp;gt;/train destination [路径...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
现在手动把列车推向下方有switcher控制牌的道岔，您能观察到插件是如何自动地改变轨道方向并将列车调度到不同轨道上的。您可以继续使用之前命令为列车设置新的路径点，然后将它们推向道岔，观察它们的运作机制。当您熟悉了它的运作方式后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/14/zh&amp;diff=1871</id>
		<title>Translations:TrainCarts/PathFinding/14/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/14/zh&amp;diff=1871"/>
		<updated>2021-12-30T23:13:16Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;将矿车放在轨道上，然后输入路径点指令来为其设置一个路径点： &amp;lt;pre&amp;gt;/train destination [路径...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;将矿车放在轨道上，然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点：&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [路径点名称]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
现在手动把列车推向下方有switcher控制牌的道岔，您能观察到插件是如何自动地改变轨道方向并将列车调度到不同轨道上的。您可以继续使用之前命令为列车设置新的路径点，然后将它们推向道岔，观察它们的运作机制。当您熟悉了它的运作方式后，您可以在轨道上加入更多的switcher，blocker和destination控制牌并进行大规模试验。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1870</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1870"/>
		<updated>2021-12-30T18:28:25Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/5/zh&amp;diff=1869</id>
		<title>Translations:TrainCarts/PathFinding/5/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/5/zh&amp;diff=1869"/>
		<updated>2021-12-30T18:26:45Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1868</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1868"/>
		<updated>2021-12-30T15:57:05Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;Displays the destinations with a distance to them TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/20/zh&amp;diff=1867</id>
		<title>Translations:TrainCarts/PathFinding/20/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/20/zh&amp;diff=1867"/>
		<updated>2021-12-30T15:56:25Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;Displays the destinations with a distance to them TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
TC插件提供了可以在游戏界面显示路径信息的&amp;quot;调试棒&amp;quot;。手持调试棒右键轨道，轨道上方就会为每条路径生成不同颜色的粒子效果。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1866</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1866"/>
		<updated>2021-12-30T15:54:55Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/18/zh&amp;diff=1865</id>
		<title>Translations:TrainCarts/PathFinding/18/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/18/zh&amp;diff=1865"/>
		<updated>2021-12-30T15:54:28Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;上面介绍的是基础功能，接下来还有更多高级功能值得我们讨论。&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1864</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1864"/>
		<updated>2021-12-30T15:45:48Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/10/zh&amp;diff=1863</id>
		<title>Translations:TrainCarts/PathFinding/10/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/10/zh&amp;diff=1863"/>
		<updated>2021-12-30T15:45:08Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1862</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1862"/>
		<updated>2021-12-30T15:42:18Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1861</id>
		<title>Translations:TrainCarts/PathFinding/12/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1861"/>
		<updated>2021-12-30T15:42:00Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。 &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1860</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1860"/>
		<updated>2021-12-30T15:41:43Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1859</id>
		<title>Translations:TrainCarts/PathFinding/12/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1859"/>
		<updated>2021-12-30T15:41:35Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1858</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1858"/>
		<updated>2021-12-30T15:41:24Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1857</id>
		<title>Translations:TrainCarts/PathFinding/12/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1857"/>
		<updated>2021-12-30T15:40:50Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1856</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1856"/>
		<updated>2021-12-30T15:40:21Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1855</id>
		<title>Translations:TrainCarts/PathFinding/12/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/12/zh&amp;diff=1855"/>
		<updated>2021-12-30T15:40:10Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;因为插件在自动寻路时会设定最短路径，但有时候这个路径会造成进路冲突。举个例子，如果希望列车在复线轨道上只朝一个方向行驶，可以使用blocker控制牌，让插件计算路径时把可能造成反向行车的路径排除在外。&lt;br /&gt;
File:Pathfinding_Blocker.png|在第一行写入 &#039;&#039;[+train:left]&#039;&#039; 可以阻挡左侧开过来的列车，只让列车从右往左走。同样地， &#039;&#039;[+train:right]&#039;&#039; 就是让列车只能从左往右走，阻挡右侧开过来的列车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1854</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1854"/>
		<updated>2021-12-30T15:31:48Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/10/zh&amp;diff=1853</id>
		<title>Translations:TrainCarts/PathFinding/10/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/10/zh&amp;diff=1853"/>
		<updated>2021-12-30T15:31:46Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。需要注意的是，这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方，列车会被“弹回去”。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&lt;br /&gt;
File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1852</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1852"/>
		<updated>2021-12-30T15:30:15Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/13/zh&amp;diff=1851</id>
		<title>Translations:TrainCarts/PathFinding/13/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/13/zh&amp;diff=1851"/>
		<updated>2021-12-30T15:29:55Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== 来试试吧 ===&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1850</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1850"/>
		<updated>2021-12-30T15:27:58Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/3/zh&amp;diff=1849</id>
		<title>Translations:TrainCarts/PathFinding/3/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/3/zh&amp;diff=1849"/>
		<updated>2021-12-30T15:27:54Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/3/zh&amp;diff=1848</id>
		<title>Translations:TrainCarts/PathFinding/3/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/3/zh&amp;diff=1848"/>
		<updated>2021-12-30T15:27:50Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding.png|设置三个路径点，switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1847</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1847"/>
		<updated>2021-12-30T15:26:10Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/Image:Pathfinding.png|thumb|right|Setup of 3 destinations and a switcher sign to route trains between them]]&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/8/zh&amp;diff=1846</id>
		<title>Translations:TrainCarts/PathFinding/8/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/8/zh&amp;diff=1846"/>
		<updated>2021-12-30T15:26:05Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|一个拥有destination控制牌的车站，自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1845</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1845"/>
		<updated>2021-12-30T15:23:27Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/Image:Pathfinding.png|thumb|right|Setup of 3 destinations and a switcher sign to route trains between them]]&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|Station with destination sign. Trains can go here, are stopped for 30 seconds, then move on to the right.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/10/zh&amp;diff=1844</id>
		<title>Translations:TrainCarts/PathFinding/10/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/10/zh&amp;diff=1844"/>
		<updated>2021-12-30T15:23:21Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;在道岔处放置一个一直激活的switcher控制牌，TC插件会将道岔识别为路网节点。当一列火车驶入道岔时，插件会根据线路情况自动计算出一条路径，并按照此路径切换轨道，把列车引导到对应的轨道上。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1843</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1843"/>
		<updated>2021-12-30T15:20:47Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/Image:Pathfinding.png|thumb|right|Setup of 3 destinations and a switcher sign to route trains between them]]&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|Station with destination sign. Trains can go here, are stopped for 30 seconds, then move on to the right.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Places where the track should be switched need to have an always-powered switcher sign placed. Now when a train moves over it that has a destination set, a route will be calculated and then the track is switched.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/8/zh&amp;diff=1842</id>
		<title>Translations:TrainCarts/PathFinding/8/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/8/zh&amp;diff=1842"/>
		<updated>2021-12-30T15:20:22Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;首先将destination控制牌放置在轨道下方，在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点（这一行可以留空，列车经过此路径点之后destination属性清空）。&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|Station with destination sign. Trains can go here, are stopped for 30 seconds, then move on to the right.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1841</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1841"/>
		<updated>2021-12-30T15:12:35Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;=== 故障处理 ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/Image:Pathfinding.png|thumb|right|Setup of 3 destinations and a switcher sign to route trains between them]]&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Start by placing down destination signs with a name for the destination on the third line. The fourth line can be used to set a new destination to go to once a train goes over the sign, but can be left empty.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|Station with destination sign. Trains can go here, are stopped for 30 seconds, then move on to the right.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置新的道岔节点 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Places where the track should be switched need to have an always-powered switcher sign placed. Now when a train moves over it that has a destination set, a route will be calculated and then the track is switched.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设置单行线路 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 来试试吧 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 高级功能 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 故障处理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 所有路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 单一路径点 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 路径管理 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== 指令 ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/9/zh&amp;diff=1840</id>
		<title>Translations:TrainCarts/PathFinding/9/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/9/zh&amp;diff=1840"/>
		<updated>2021-12-30T15:12:25Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;=== 设置新的道岔节点 ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== 设置新的道岔节点 ===&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/11/zh&amp;diff=1839</id>
		<title>Translations:TrainCarts/PathFinding/11/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/11/zh&amp;diff=1839"/>
		<updated>2021-12-30T15:12:05Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;=== 设置单行线路 ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== 设置单行线路 ===&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/13/zh&amp;diff=1838</id>
		<title>Translations:TrainCarts/PathFinding/13/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/13/zh&amp;diff=1838"/>
		<updated>2021-12-30T15:11:38Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;== 来试试吧 ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 来试试吧 ===&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/17/zh&amp;diff=1837</id>
		<title>Translations:TrainCarts/PathFinding/17/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/17/zh&amp;diff=1837"/>
		<updated>2021-12-30T15:11:25Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;== 高级功能 ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 高级功能 ==&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/19/zh&amp;diff=1836</id>
		<title>Translations:TrainCarts/PathFinding/19/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/19/zh&amp;diff=1836"/>
		<updated>2021-12-30T15:11:17Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;=== 故障处理 ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== 故障处理 ===&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/21/zh&amp;diff=1835</id>
		<title>Translations:TrainCarts/PathFinding/21/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/21/zh&amp;diff=1835"/>
		<updated>2021-12-30T15:11:08Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;==== 所有路径点 ====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== 所有路径点 ====&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/23/zh&amp;diff=1834</id>
		<title>Translations:TrainCarts/PathFinding/23/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/23/zh&amp;diff=1834"/>
		<updated>2021-12-30T15:10:58Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;==== 单一路径点 ====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== 单一路径点 ====&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/25/zh&amp;diff=1833</id>
		<title>Translations:TrainCarts/PathFinding/25/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/25/zh&amp;diff=1833"/>
		<updated>2021-12-30T15:10:47Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;=== 路径管理 ===&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== 路径管理 ===&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/27/zh&amp;diff=1832</id>
		<title>Translations:TrainCarts/PathFinding/27/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=Translations:TrainCarts/PathFinding/27/zh&amp;diff=1832"/>
		<updated>2021-12-30T15:10:34Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;==== 指令 ====&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==== 指令 ====&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
	<entry>
		<id>https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1782</id>
		<title>TrainCarts/PathFinding/zh</title>
		<link rel="alternate" type="text/html" href="https://wiki.traincarts.net/index.php?title=TrainCarts/PathFinding/zh&amp;diff=1782"/>
		<updated>2021-12-28T21:28:22Z</updated>

		<summary type="html">&lt;p&gt;Saionji Rin: Created page with &amp;quot;== 配置方法 ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
[[Special:MyLanguage/TrainCarts|« 返回上一页]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/Image:Pathfinding.png|thumb|right|Setup of 3 destinations and a switcher sign to route trains between them]]&lt;br /&gt;
&lt;br /&gt;
我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合，实现一个复杂的铁路系统，让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。&lt;br /&gt;
&lt;br /&gt;
TC插件可以在路网中设定路径点，同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中，[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突，可以使用[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]来限制自动寻路的方向。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 配置方法 ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 设定路径点 ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Start by placing down destination signs with a name for the destination on the third line. The fourth line can be used to set a new destination to go to once a train goes over the sign, but can be left empty.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Destination.png|Station with destination sign. Trains can go here, are stopped for 30 seconds, then move on to the right.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
=== Designate the switched nodes ===&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Places where the track should be switched need to have an always-powered switcher sign placed. Now when a train moves over it that has a destination set, a route will be calculated and then the track is switched.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Switcher.png|Switcher sign will automatically switch the track to go from/to any of the 3 directions.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
=== Enforce one direction ===&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
When it is desirable that trains only ever go in one direction over a piece of track, an always-powered blocker sign can be used. This is useful when having two tracks side-by-side, each going in opposing directions. The path finding system will automatically ignore paths that are blocked by blocker signs.&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;slideshow&amp;quot;&amp;gt;&lt;br /&gt;
File:Pathfinding_Blocker.png|With &#039;&#039;[+train:left]&#039;&#039; trains coming from the left are blocked, only allowing movement from right to left. Similarly, &#039;&#039;[+train:right]&#039;&#039; and other directions can be used.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
=== Test it out ===&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Place down a minecart on the track, and use the [[Special:MyLanguage/TrainCarts/Commands#Destination|Destination command]] to set a destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train destination [name]&lt;br /&gt;
/train destination output&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now give the minecart a push towards the switcher sign, and observe how it will automatically switch the track to send the train towards the destination. You can change the destination again and send it to the switcher again. Continue to experiment with multiple switchers, blockers and destinations.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
If you run into a problem where the switcher appears to make a mistake, use the [[Special:MyLanguage/TrainCarts/Commands#Reroute|Reroute command]] to force a recalculation of all routing information:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train reroute&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
It is also possible to use the property sign to set a destination:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|destination|outpost}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
== Advanced ==&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Once the basic system is understood, there are some more complicated features to discuss.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
=== Debugger ===&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]]&lt;br /&gt;
The plugin offers a &#039;&#039;debug stick&#039;&#039; with which path finding information can be displayed. Use the stick item to click on rails to show information about the route(s) that can be taken. Sneak (shift) while clicking performs a &#039;&#039;reroute&#039;&#039;, which recalculates the track reachable from where you clicked. If you have multiple smaller rail networks, this can be more efficient than executing the global reroute command.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== All destinations ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Use the following command to get a stick item that displays all destinations reached from a given track:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination&amp;lt;/pre&amp;gt;&lt;br /&gt;
The track clicked is followed until a &#039;&#039;node&#039;&#039; of the track network is found, after which all routeable destinations are listed. For every destination the total distance to it is listed, and particles are displayed leading into it. If you find that a certain destination is not listed that should be, you can move further along the track clicking occasionally to find where the break is.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== A single destination ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Pathfinding_Debug_Destination_Specific.png|thumb|Displays the precise route to one destination]]&lt;br /&gt;
Use the following command to debug a specific destination:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train debug destination [destination]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now when you click on the track, particles are displayed what route is taken to reach the destination. This is useful when debugging a specific destination so no particles are displayed for routes and destinations that aren&#039;t relevant to you.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
=== Route Manager ===&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
Normally only one destination is set at a time. It is possible to set the next destination to go to on the destination sign itself, but that means you can only have one possible route. With the route manager a list of destinations to visit can be configured, and then applied to trains. Trains will then go down this list, advancing it every time they pass by a destination on it.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Commands ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
First, edit a train, then use the following commands to set a list of destinations:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route set [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route set outpost hillfort dungeon&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
To add additional destinations to the existing route, or to remove them, use these commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route add [destination1] ([destination2] [destination3...])&lt;br /&gt;
/train route remove [destination1] ([destination2] [destination3...])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
You can then use the destination command or property to start the route at a desired destination. Otherwise, the route is started from the beginning the moment the train hits a destination sign. To inspect the route of a train, use the base route command. The current destination the train has is highlighted green.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
==== Persistence ====&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div lang=&amp;quot;en&amp;quot; dir=&amp;quot;ltr&amp;quot; class=&amp;quot;mw-content-ltr&amp;quot;&amp;gt;&lt;br /&gt;
The route of a train can be saved globally under a name so it can later be applied to other trains instantly.&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route save [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
To load a saved route, this command can be used:&lt;br /&gt;
&amp;lt;pre&amp;gt;/train route load [name]&amp;lt;/pre&amp;gt;&lt;br /&gt;
Alternatively, it can be done using a property sign as well:&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{sign|[+train]|property|loadroute|myroute}}&lt;/div&gt;</summary>
		<author><name>Saionji Rin</name></author>
	</entry>
</feed>