summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-12-16 00:00:02 +0100
committerautocommitter <autocommitter@linux-forks.de>2024-12-16 00:00:02 +0100
commit491d9e6345c1fc3df828743fb906150b3187892e (patch)
tree23cd073c3486a24dd96c5da46d04904c66450866
parent9fbdc88203ca646c82e19eca812a102f9e537175 (diff)
downloadluaatc_envs-491d9e6345c1fc3df828743fb906150b3187892e.tar.gz
luaatc_envs-491d9e6345c1fc3df828743fb906150b3187892e.tar.bz2
luaatc_envs-491d9e6345c1fc3df828743fb906150b3187892e.zip
State at 2024-12-16
-rw-r--r--durt/nodes/(1720,19,4657).lua1
-rw-r--r--m4/init_code.lua2
-rw-r--r--m4/nodes/(4049,24,5652).lua19
3 files changed, 19 insertions, 3 deletions
diff --git a/durt/nodes/(1720,19,4657).lua b/durt/nodes/(1720,19,4657).lua
deleted file mode 100644
index 7489acc..0000000
--- a/durt/nodes/(1720,19,4657).lua
+++ /dev/null
@@ -1 +0,0 @@
--- \ No newline at end of file
diff --git a/m4/init_code.lua b/m4/init_code.lua
index c137758..d32be9f 100644
--- a/m4/init_code.lua
+++ b/m4/init_code.lua
@@ -108,8 +108,6 @@ F.indicator = function(indicator,set)
return (getstate(indicator) == "on") or false
end
-F.dir = F.indicator -- legacy alias, to be updated to F.indicator
-
F.get_rc_safe = function()
return get_rc() or ""
end
diff --git a/m4/nodes/(4049,24,5652).lua b/m4/nodes/(4049,24,5652).lua
new file mode 100644
index 0000000..037b135
--- /dev/null
+++ b/m4/nodes/(4049,24,5652).lua
@@ -0,0 +1,19 @@
+do return end
+-- delete above line to re-enable reversing into Factory
+if event.schedule then
+ if atc_id and atc_id == event.msg then
+ schedule_in("0;04",atc_id)
+ print("ping")
+ return
+ end
+ atc_send_to_train(event.msg, "B0WRS3")
+ setstate(POS(4051,24,5653),"cr")
+ print("end: "..event.msg)
+ return
+end
+if event.train and atc_arrow and get_line() == "E8" then
+ atc_send("B2")
+ schedule_in("0;04",atc_id)
+ print("Start "..atc_id)
+ return
+end \ No newline at end of file