summaryrefslogtreecommitdiff
path: root/ers
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:55:03 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:55:03 +0200
commitd8fe06ce30b70e3c0744b4e6b7c0fdf83bdc21a9 (patch)
tree33d096f26c7e5e94463a08272206cf6b09beba0d /ers
parent8ea6f01d7499110bddc730cd1916c3c63a1a8a7b (diff)
downloadluaatc_envs-d8fe06ce30b70e3c0744b4e6b7c0fdf83bdc21a9.tar.gz
luaatc_envs-d8fe06ce30b70e3c0744b4e6b7c0fdf83bdc21a9.tar.bz2
luaatc_envs-d8fe06ce30b70e3c0744b4e6b7c0fdf83bdc21a9.zip
State at 2021-11-10
Diffstat (limited to 'ers')
-rw-r--r--ers/nodes/(1657,1,1240).lua30
-rw-r--r--ers/nodes/(1657,6,1237).lua6
2 files changed, 36 insertions, 0 deletions
diff --git a/ers/nodes/(1657,1,1240).lua b/ers/nodes/(1657,1,1240).lua
new file mode 100644
index 0000000..ecabdd1
--- /dev/null
+++ b/ers/nodes/(1657,1,1240).lua
@@ -0,0 +1,30 @@
+-- luaatctrack_main_depot_01.lua
+local show_print = false
+if event.train then
+ if atc_arrow then
+ local passive_name = "ErsDepotTurnaround"
+ local track_route = ""
+ local can_do_route = false
+ F.train_duration("start")
+ F.train_info(passive_name, show_print)
+
+ if F.does_train_have_rc("ERSTAZIDEPOTUNLOAD") then
+ track_route = "03 UNLOADING TRACK"
+ F.send_route(passive_name, track_route, show_print)
+ elseif F.does_train_have_rc("ERSTAZITST") then
+ track_route = "02 LOADING TRACK"
+ F.send_route(passive_name, track_route, show_print)
+ else
+ track_route = "01 EXTRA"
+ can_do_route = F.send_route(passive_name, track_route, show_print)
+ if can_do_route == false then
+ track_route = "04 EXTRA"
+ F.send_route(passive_name, track_route, show_print)
+ end
+ end
+ else
+ local passive_name = "ErsDepotTurnaround"
+ F.train_duration("end")
+ F.train_info(passive_name, show_print)
+ end
+end \ No newline at end of file
diff --git a/ers/nodes/(1657,6,1237).lua b/ers/nodes/(1657,6,1237).lua
new file mode 100644
index 0000000..0cb6ef7
--- /dev/null
+++ b/ers/nodes/(1657,6,1237).lua
@@ -0,0 +1,6 @@
+-- luaoperatingpanel_depot_01.lua
+local show_print = false
+if event.type == "punch" then
+ F.train_info("RESETALL", show_print)
+ return
+end \ No newline at end of file