summaryrefslogtreecommitdiff
path: root/auto_yards/nodes/(416,17,5).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
commit572b186e28ddc2a630613765c0f0780b4664380f (patch)
treee93412c97c577b04bbf12749bfe61470e001063a /auto_yards/nodes/(416,17,5).lua
parent5c7f77725394d47ce0b907aabf885ea207a507bd (diff)
downloadluaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.gz
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.bz2
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.zip
State at 2024-10-15HEADmaster
Diffstat (limited to 'auto_yards/nodes/(416,17,5).lua')
-rw-r--r--auto_yards/nodes/(416,17,5).lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/auto_yards/nodes/(416,17,5).lua b/auto_yards/nodes/(416,17,5).lua
deleted file mode 100644
index e8c1b0e..0000000
--- a/auto_yards/nodes/(416,17,5).lua
+++ /dev/null
@@ -1,27 +0,0 @@
-local stack = function(t,channel,num_screens)
- for i=0,math.ceil(#t/4) do
- local calc = i*4
- local working_t = {t[calc+1],t[calc+2],t[calc+3],t[calc+4]}
- local message = table.concat(working_t,"\n")
- if i+1 > num_screens then return end
- digiline_send(channel..i+1,message)
- end
-end
-
-if event.channel=="clock" or event.punch then
- local txt = {"-- AUTOMATIC YARD STATUS --","Railway Time: "..rwt.to_string(rwt.now(),true),"LHF Trains: 719814"," ========================"}
- local s
- for yard_id,info in pairs(S.yards) do
- table.insert(txt, yard_id.." - Active: " .. tostring(F.indicator(info.active_indicator_pos)))
- table.insert(txt," Direction: " .. tostring(F.indicator(info.dir_indicator_pos)))
- table.insert(txt," Error: ".. tostring(F.indicator(info.error_indicator_pos)))
- if info.notify and info.notify[1] then
- table.insert(txt,"Notify: "..table.concat(info.notify,", "))
- else
- table.insert(txt,"Notify: N/A")
- end
- end
-
- stack(txt,"yard_status",4)
- return
-end \ No newline at end of file