summaryrefslogtreecommitdiff
path: root/durt
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:55:30 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:55:30 +0200
commita8fceffcbc8df02719981bc8ba101aca350295cb (patch)
treec5611056ea1f7f61f4fb63b520dba2d4687b3018 /durt
parentf680d326304e8f1efb43a01dbcc609bcbfd198fc (diff)
downloadluaatc_envs-a8fceffcbc8df02719981bc8ba101aca350295cb.tar.gz
luaatc_envs-a8fceffcbc8df02719981bc8ba101aca350295cb.tar.bz2
luaatc_envs-a8fceffcbc8df02719981bc8ba101aca350295cb.zip
State at 2021-12-21
Diffstat (limited to 'durt')
-rw-r--r--durt/nodes/(-4129,16,-5745).lua20
-rw-r--r--durt/nodes/(-4129,16,-5802).lua6
-rw-r--r--durt/nodes/(-4142,17,-5841).lua17
3 files changed, 29 insertions, 14 deletions
diff --git a/durt/nodes/(-4129,16,-5745).lua b/durt/nodes/(-4129,16,-5745).lua
index 23d7e85..7ba350f 100644
--- a/durt/nodes/(-4129,16,-5745).lua
+++ b/durt/nodes/(-4129,16,-5745).lua
@@ -1,16 +1,14 @@
local signal = POS(-4128,16,-5754)
if event.train and atc_arrow then
- for _,key in pairs({"DLG_shunt_platforms"}) do
- local rc = (get_rc() or "")
- if rc:match(key) then
- atc_send("B0WD2A0RS3CplS1")
- if rc:match("DLG_shunt_Platform1") then
- set_route(signal,"SHUNT Platform 1")
- return
- elseif rc:match("DLG_shunt_Platform2") then
- set_route(signal,"SHUNT Platform 2")
- return
- end
+ local rc = (get_rc() or "")
+ if rc:match("DLG_shunt_platforms") then
+ atc_send("B0WD2A0RS3CplS1")
+ if rc:match("DLG_shunt_Platform1") then
+ set_route(signal,"SHUNT Platform 1")
+ return
+ elseif rc:match("DLG_shunt_Platform2") then
+ set_route(signal,"SHUNT Platform 2")
+ return
end
end
end \ No newline at end of file
diff --git a/durt/nodes/(-4129,16,-5802).lua b/durt/nodes/(-4129,16,-5802).lua
index 5e0892e..e0cacb0 100644
--- a/durt/nodes/(-4129,16,-5802).lua
+++ b/durt/nodes/(-4129,16,-5802).lua
@@ -17,10 +17,10 @@ if event.train then
atc_send("S3")
atc_set_ars_disable(false)
setstate(split_indicator,"green")
- set_rc((get_rc() or "").." DLG_around DLG_shunt_platforms DLG_shunt_Platform2")
+ set_rc((get_rc() or "").." DLG_headshunt_south DLG_around_short DLG_shunt_platforms DLG_shunt_Platform2")
elseif state == "green" then
- atc_send("B0WRA1D2S4D10SM")
+ atc_send("B0WROCA1D2S4D10SM")
setstate(split_indicator,"red")
- F.remove_rc({"DLG_around","DLG_shunt_platforms","DLG_shunt_Platform2"})
+ F.remove_rc({"DLG_headshunt_south","DLG_around_short","DLG_shunt_platforms","DLG_shunt_Platform2"})
end
end \ No newline at end of file
diff --git a/durt/nodes/(-4142,17,-5841).lua b/durt/nodes/(-4142,17,-5841).lua
new file mode 100644
index 0000000..8d26b0c
--- /dev/null
+++ b/durt/nodes/(-4142,17,-5841).lua
@@ -0,0 +1,17 @@
+if event.train and atc_arrow then
+ local rc = get_rc() or ""
+ if rc:match("DLG_headshunt_south") then
+ schedule_in(";01",atc_id)
+ return
+ end
+end
+
+if event.schedule then
+ if event.msg == atc_id then
+ schedule_in(";01",event.msg)
+ return
+ else
+ atc_send_to_train(event.msg,"S0WRS3")
+ return
+ end
+end \ No newline at end of file