summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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