Export translations
Jump to navigation
Jump to search
Settings
Group
Main Page
Map Display
Map Display/API
MyWorlds
MyWorlds/ManagingWorlds
SignLink
TC-Coasters/Signs
TC-Coasters/Track-Objects
TrainCarts
TrainCarts/ActionBlocks
TrainCarts/API
TrainCarts/API/SignAction
TrainCarts/Attachments
TrainCarts/Attachments/Appearance
TrainCarts/Attachments/Entity
TrainCarts/Attachments/General
TrainCarts/Attachments/Item
TrainCarts/Attachments/Model
TrainCarts/Attachments/Physical
TrainCarts/Attachments/Seat
TrainCarts/Attachments/Sequence/PianoRoll
TrainCarts/Attachments/Sequencer
TrainCarts/Attachments/Sequencer/PianoRoll
TrainCarts/Attachments/Sound
TrainCarts/Commands
TrainCarts/Commands/Selectors
TrainCarts/Lag
TrainCarts/MobEntering
TrainCarts/PathFinding
TrainCarts/Permissions
TrainCarts/Physical
TrainCarts/Signs
TrainCarts/Signs/Animate
TrainCarts/Signs/Announce
TrainCarts/Signs/BlockChanger
TrainCarts/Signs/Blocker
TrainCarts/Signs/Crafter
TrainCarts/Signs/Destination
TrainCarts/Signs/Destroyer
TrainCarts/Signs/Detector
TrainCarts/Signs/Direction
TrainCarts/Signs/Effect
TrainCarts/Signs/Ejector
TrainCarts/Signs/Elevator
TrainCarts/Signs/Enter
TrainCarts/Signs/Items
TrainCarts/Signs/Launcher
TrainCarts/Signs/Mutex
TrainCarts/Signs/Property
TrainCarts/Signs/Skip
TrainCarts/Signs/Sound
TrainCarts/Signs/Spawner
TrainCarts/Signs/Statements
TrainCarts/Signs/Station
TrainCarts/Signs/Switcher
TrainCarts/Signs/Teleporter
TrainCarts/Signs/Ticket
TrainCarts/Signs/Transfer
TrainCarts/Signs/Trigger
TrainCarts/Signs/Waiter
TrainCarts/Spawning
TrainCarts/Tickets
TrainCarts/Train Spawn Chest
TrainCarts/TrainProperties
TrainCarts/VanillaMinecarts
Language
aa - Afar
ab - Abkhazian
abs - Ambonese Malay
ace - Achinese
ady - Adyghe
ady-cyrl - Adyghe (Cyrillic script)
aeb - Tunisian Arabic
aeb-arab - Tunisian Arabic (Arabic script)
aeb-latn - Tunisian Arabic (Latin script)
af - Afrikaans
ak - Akan
aln - Gheg Albanian
alt - Southern Altai
am - Amharic
ami - Amis
an - Aragonese
ang - Old English
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba (Latin script)
bcc - Southern Balochi
bcl - Central Bikol
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bg - Bulgarian
bgn - Western Balochi
bh - Bhojpuri
bho - Bhojpuri
bi - Bislama
bjn - Banjar
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cr - Cree
crh - Crimean Turkish
crh-cyrl - Crimean Tatar (Cyrillic script)
crh-latn - Crimean Tatar (Latin script)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-419 - Latin American Spanish
es-formal - español (formal)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
ff - Fulah
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gag - Gagauz
gan - Gan Chinese
gan-hans - Gan (Simplified)
gan-hant - Gan (Traditional)
gcr - Guianan Creole
gd - Scottish Gaelic
gl - Galician
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
grc - Ancient Greek
gsw - Swiss German
gu - Gujarati
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
ht - Haitian Creole
hu - Hungarian
hu-formal - magyar (formal)
hy - Armenian
hyw - Western Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kbd - Kabardian
kbd-cyrl - Kabardian (Cyrillic script)
kbp - Kabiye
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kjp - Eastern Pwo
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - Korean (North Korea)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ku - Kurdish
ku-arab - Kurdish (Arabic script)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lld - Ladin
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Maori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mni - Manipuri
mnw - Mon
mo - Moldovan
mr - Marathi
mrj - Western Mari
ms - Malay
mt - Maltese
mus - Muscogee
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
niu - Niuean
nl - Dutch
nl-informal - Nederlands (informeel)
nn - Norwegian Nynorsk
no - Norwegian
nov - Novial
nqo - N’Ko
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nys - Nyungar
oc - Occitan
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
qqq - Message documentation
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rm - Romansh
rmy - Vlax Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
sa - Sanskrit
sah - Sakha
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
shi - Tachelhit
shi-latn - Tachelhit (Latin script)
shi-tfng - Tachelhit (Tifinagh script)
shn - Shan
shy-latn - Shawiya (Latin script)
si - Sinhala
simple - Simple English
sk - Slovak
skr - Saraiki
skr-arab - Saraiki (Arabic script)
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
smn - Inari Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - себертатар
su - Sundanese
sv - Swedish
sw - Swahili
szl - Silesian
szy - Sakizaya
ta - Tamil
tay - Tayal
tcy - Tulu
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tn - Tswana
to - Tongan
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
trv - Taroko
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - Uzbek (Cyrillic script)
uz-latn - Uzbek (Latin script)
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
war - Waray
wo - Wolof
wuu - Wu Chinese
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
xsy - Saisiyat
yi - Yiddish
yo - Yoruba
yue - Cantonese
za - Zhuang
zea - Zeelandic
zgh - Standard Moroccan Tamazight
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - Chinese (Macau)
zh-my - Chinese (Malaysia)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
Format
Export for off-line translation
Export in native format
Fetch
{{DISPLAYTITLE:TC插件/自动寻路}}<languages/> [[Special:MyLanguage/TrainCarts|« 返回上一页]] ==简介== <div class="mw-translate-fuzzy"> <gallery mode="slideshow"> File:Pathfinding.png|设置三个路径点,switcher控制牌会将列车按照各自的destination属性调度到不同轨道上。 </gallery> </div> 我们可以通过TC插件的switcher、blocker和destination控制牌的相互配合,实现一个复杂的铁路系统,让不同列车前往不同的目的地。在本页面中将介绍自动寻路系统的工作原理以及配置方式。 TC插件可以在路网中设定路径点,同时通过列车自身的路径点属性将列车导向不同的方向。配置路径点的信息请参阅[[Special:MyLanguage/TrainCarts/Signs/Destination|此界面]]。在路网中,[[Special:MyLanguage/TrainCarts/Signs/Destination|道岔]]以及路径点的位置被称为“节点”。为了避免列车冲突,[[Special:MyLanguage/TrainCarts/Signs/Blocker|路阻]]控制牌能限制自动寻路的方向。 == 配置方法 == === 设定路径点 === 首先将destination控制牌放置在轨道下方,在第三行写上这个路径点的名称。第四行可以为经过的列车设置一个新的路径点(这一行可以留空,列车经过此路径点之后destination属性清空)。 <gallery mode="slideshow"> File:Pathfinding_Destination.png|一个拥有destination控制牌的车站,自动寻路系统会将对应的列车导向这个车站。列车停靠30秒之后向右发车。 </gallery> === 设置新的道岔节点 === 在道岔处放置一个一直激活的switcher控制牌,TC插件会将道岔识别为路网节点。当一列火车驶入道岔时,插件会根据线路情况自动计算出一条路径,并按照此路径切换轨道,把列车引导到对应的轨道上。需要注意的是,这个节点和现实中的道岔并不完全相同。如果给列车设定的路径点在驶入方向的后方,列车会被“弹回去”。 <gallery mode="slideshow"> File:Pathfinding_Switcher.png|switcher控制牌会将列车调度至三个方向的轨道上。 </gallery> === 设置单行线路 === 因为插件在自动寻路时会设定最短路径,但有时候这个路径会造成进路冲突。所以我们需要在某些路段人为规定行车方向。例如,如果我们希望列车在复线轨道上只朝一个方向行驶,这时可以使用blocker控制牌,让插件计算路径时把可能造成反向行车的路径排除在外。 <gallery mode="slideshow"> File:Pathfinding_Blocker.png|在第一行写入 ''[+train:left]'' 可以阻挡左侧开过来的列车,只让列车从右往左走。同样地, ''[+train:right]'' 就是让列车只能从左往右走,阻挡右侧开过来的列车。 </gallery> === 来试试吧 === 首先,将矿车放在轨道上,然后输入[[Special:MyLanguage/TrainCarts/Commands#Destination|路径点指令]]来为其设置一个路径点: <pre>/train destination [路径点名称] /train destination output</pre> 之后,手动把列车推向下方有switcher控制牌的道岔,您现在能观察到插件是如何自动地改变轨道方向,并将列车调度到不同轨道上的。同样,您可以继续使用之前提到过的命令为列车设置新的路径点,然后再将它们推向道岔,重复观察自动寻路系统的运作机制。当您熟悉了以后,您可以在轨道上加入更多的switcher,blocker和destination控制牌并进行大规模试验。 <div lang="en" dir="ltr" class="mw-content-ltr"> 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: <pre>/train reroute</pre> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> It is also possible to use the property sign to set a destination: </div> {{sign|[+train]|property|destination|outpost}} == 高级功能 == 上面介绍的是基础功能,接下来还有更多高级功能值得我们讨论。 <div lang="en" dir="ltr" class="mw-content-ltr"> === Useful Side-Features === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Keep Chunks Loaded ==== Prevent trains unloading when no player is nearby or in the train, by enabling the train [[Special:MyLanguage/TrainCarts/Signs/Property|keep chunks loaded property]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can use this property sign to set it: {{sign|[+train]|property|keepchunksloaded|true}} </div> <div lang="en" dir="ltr" class="mw-content-ltr"> Or you can create your train, use <code>/train keeploaded true</code> and save it under a saved train name using <code>/train save name</code>. You can then automatically spawn it by this name using the [[Special:MyLanguage/TrainCarts/Signs/Spawner#Automated_spawning|spawner sign]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Wait Distance ==== To maintain distance between trains and avoid collisions over long stretches, use the [[Special:MyLanguage/TrainCarts/Signs/Property#Wait_Property|wait distance property]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Mutex Zones ==== Protects intersections against collisions with [[Special:MyLanguage/TrainCarts/Signs/Mutex|mutex zones]]. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Station Routing ==== [[Special:MyLanguage/TrainCarts/Signs/Station|Station signs]] can launch the train into the direction of the next destination. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> {{sign|[!train]|station||route}} </div> === 故障处理 === <div class="mw-translate-fuzzy"> [[File:Pathfinding_Debug_Destinations.png|thumb|Displays the destinations with a distance to them]] TC插件提供了可以在游戏界面显示路径信息的"调试棒"。手持调试棒右键轨道,轨道上方就会为每条路径生成不同颜色的粒子效果。当潜行时手持调试棒右键轨道,插件就会重新计算以点击位置为起点,前往各个可达路径点的路径。如果服务器中有多个小规模铁路网络,这么做可以比手动输入/train reroute更有效率,因为这个指令是将全地图的整个路网都重新计算一次。 </div> ==== 所有路径点 ==== <div lang="en" dir="ltr" class="mw-content-ltr"> Use the following command to get a stick item that displays all destinations reached from a given track: <pre>/train debug destination</pre> The track clicked is followed until a ''node'' 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. </div> ==== 单一路径点 ==== <div lang="en" dir="ltr" class="mw-content-ltr"> [[File:Pathfinding_Debug_Destination_Specific_One.png|thumb|Displays the precise route to one destination]] Use the following command to debug a specific destination: <pre>/train debug destination [destination]</pre> 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't relevant to you. </div> === 路径管理 === <div lang="en" dir="ltr" class="mw-content-ltr"> 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. </div> ==== 指令 ==== <div lang="en" dir="ltr" class="mw-content-ltr"> First, edit a train, then use the following commands to set a list of destinations: <pre>/train route set [destination1] ([destination2] [destination3...]) /train route set outpost hillfort dungeon</pre> [[File:Pathfinding_routes_set.png|File:Pathfinding_routes_set.png]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> To add additional destinations to the existing route, or to remove them, use these commands: <pre>/train route add [destination1] ([destination2] [destination3...]) /train route remove [destination1] ([destination2] [destination3...])</pre> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> 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. <pre>/train route</pre> [[File:Pathfinding_route_info.png|File:Pathfinding_route_info.png]] </div> <div lang="en" dir="ltr" class="mw-content-ltr"> ==== Persistence ==== </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The route of a train can be saved globally under a name so it can later be applied to other trains instantly. <pre>/train route save [name]</pre> To load a saved route, this command can be used: <pre>/train route load [name]</pre> Alternatively, it can be done using a property sign as well: </div> {{sign|[+train]|property|loadroute|myroute}}
Navigation menu
Personal tools
English
Log in
Dark mode
Namespaces
Special page
Variants
Views
More
Search
Navigation
Main page
Recent changes
Plugins
BKCommonLib
TrainCarts
TC-Coasters
MyWorlds
Maplands
BergerHealer Links/Contact
Discord
Spigot
GitHub
Paste site
Tools
Special pages
Printable version