summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:55:11 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:55:11 +0200
commit96261fcfddba2233a7d801be042839e080f039dd (patch)
tree927f6a1d79cb50ef6b3bf0ee02b3385b422fe5d2
parent02159a92f7ef94fb27d806cde7e27c63122b45cf (diff)
downloadluaatc_envs-96261fcfddba2233a7d801be042839e080f039dd.tar.gz
luaatc_envs-96261fcfddba2233a7d801be042839e080f039dd.tar.bz2
luaatc_envs-96261fcfddba2233a7d801be042839e080f039dd.zip
State at 2021-11-22
-rw-r--r--durt/nodes/(-2077,3,788).lua6
-rw-r--r--durt/nodes/(-2077,3,821).lua1
-rw-r--r--durt/nodes/(-2080,3,787).lua1
-rw-r--r--durt/nodes/(-2080,3,822).lua21
-rw-r--r--durt/nodes/(-2080,3,834).lua3
-rw-r--r--durt/nodes/(-2081,19,690).lua1
-rw-r--r--durt/nodes/(-2083,3,822).lua3
7 files changed, 36 insertions, 0 deletions
diff --git a/durt/nodes/(-2077,3,788).lua b/durt/nodes/(-2077,3,788).lua
new file mode 100644
index 0000000..908f668
--- /dev/null
+++ b/durt/nodes/(-2077,3,788).lua
@@ -0,0 +1,6 @@
+local rc = (get_rc() or "")
+if atc_arrow and rc:match("ArcLoad_around") then
+ if rc:match("ArcLoad_rejoin") then
+ atc_send("S5D5S0WRD1S2CplA0S1")
+ end
+end \ No newline at end of file
diff --git a/durt/nodes/(-2077,3,821).lua b/durt/nodes/(-2077,3,821).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(-2077,3,821).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file
diff --git a/durt/nodes/(-2080,3,787).lua b/durt/nodes/(-2080,3,787).lua
new file mode 100644
index 0000000..7489acc
--- /dev/null
+++ b/durt/nodes/(-2080,3,787).lua
@@ -0,0 +1 @@
+-- \ No newline at end of file
diff --git a/durt/nodes/(-2080,3,822).lua b/durt/nodes/(-2080,3,822).lua
new file mode 100644
index 0000000..3101881
--- /dev/null
+++ b/durt/nodes/(-2080,3,822).lua
@@ -0,0 +1,21 @@
+local indicator = POS(-2080,6,826)
+local rc = (get_rc() or "")
+
+if rc:match("ArcLoad_NOSHUNT") then return end
+
+if event.train and atc_arrow then
+ if
+ if getstate(indicator) == "green" then
+ F.remove_rc({"ArcLoad_split","ArcLoad_around","ArcLoad_rejoin"},true)
+ atc_send("S0WRD1A1S2D10SM")
+ setstate(indicator,"red")
+ set_rc(rc.." ArcLoad_exit")
+ else
+ local o_text = atc_get_text_outside() or ""
+ atc_set_text_outside("Waiting for Locomotive")
+ split_off_locomotive("A0B0",1)
+ atc_set_text_outside(o_text)
+ set_rc(rc.." ArcLoad_split ArcLoad_around ArcLoad_rejoin")
+ setstate(indicator,"green")
+ end
+end \ No newline at end of file
diff --git a/durt/nodes/(-2080,3,834).lua b/durt/nodes/(-2080,3,834).lua
new file mode 100644
index 0000000..c983a88
--- /dev/null
+++ b/durt/nodes/(-2080,3,834).lua
@@ -0,0 +1,3 @@
+if event.train then
+ atc_send("S0I+WR;D2S3")
+end \ No newline at end of file
diff --git a/durt/nodes/(-2081,19,690).lua b/durt/nodes/(-2081,19,690).lua
new file mode 100644
index 0000000..703d4e4
--- /dev/null
+++ b/durt/nodes/(-2081,19,690).lua
@@ -0,0 +1 @@
+F.remove_rc({"ArcLoad_exit"},true) \ No newline at end of file
diff --git a/durt/nodes/(-2083,3,822).lua b/durt/nodes/(-2083,3,822).lua
new file mode 100644
index 0000000..b04d445
--- /dev/null
+++ b/durt/nodes/(-2083,3,822).lua
@@ -0,0 +1,3 @@
+if event.punch then
+ print(getstate(POS(-2080,6,826)))
+end \ No newline at end of file