diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-10-15 22:37:42 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-10-15 22:37:42 +0200 |
commit | 572b186e28ddc2a630613765c0f0780b4664380f (patch) | |
tree | e93412c97c577b04bbf12749bfe61470e001063a /auto_yards | |
parent | 5c7f77725394d47ce0b907aabf885ea207a507bd (diff) | |
download | luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.gz luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.bz2 luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.zip |
State at 2024-10-15
Diffstat (limited to 'auto_yards')
27 files changed, 0 insertions, 69 deletions
diff --git a/auto_yards/nodes/(-1897,10,-921).lua b/auto_yards/nodes/(-1897,10,-921).lua deleted file mode 100644 index 98955fa..0000000 --- a/auto_yards/nodes/(-1897,10,-921).lua +++ /dev/null @@ -1,16 +0,0 @@ -local function tprint (tbl, indent) - if not indent then indent = 0 end - for k, v in pairs(tbl) do - formatting = string.rep("--", indent) .."[".. k .. "]: " - if type(v) == "table" then - print(formatting) - tprint(v, indent+1) - elseif type(v) == 'boolean' then - print(formatting .. tostring(v)) - else - print(formatting .. v) - end - end -end - -if event.punch then tprint(S) end
\ No newline at end of file diff --git a/auto_yards/nodes/(-1902,10,-893).lua b/auto_yards/nodes/(-1902,10,-893).lua deleted file mode 100644 index a878623..0000000 --- a/auto_yards/nodes/(-1902,10,-893).lua +++ /dev/null @@ -1 +0,0 @@ ---EXIT
\ No newline at end of file diff --git a/auto_yards/nodes/(-1908,16,835).lua b/auto_yards/nodes/(-1908,16,835).lua deleted file mode 100644 index 89349e3..0000000 --- a/auto_yards/nodes/(-1908,16,835).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1909,10,-930).lua b/auto_yards/nodes/(-1909,10,-930).lua deleted file mode 100644 index 90ea19a..0000000 --- a/auto_yards/nodes/(-1909,10,-930).lua +++ /dev/null @@ -1 +0,0 @@ --- HEADSHUNT and EXIT
\ No newline at end of file diff --git a/auto_yards/nodes/(-1909,10,-957).lua b/auto_yards/nodes/(-1909,10,-957).lua deleted file mode 100644 index 3774070..0000000 --- a/auto_yards/nodes/(-1909,10,-957).lua +++ /dev/null @@ -1 +0,0 @@ -F.pickup("BY","N","0")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1909,7,-1017).lua b/auto_yards/nodes/(-1909,7,-1017).lua deleted file mode 100644 index b78dee7..0000000 --- a/auto_yards/nodes/(-1909,7,-1017).lua +++ /dev/null @@ -1 +0,0 @@ -F.pickup("BY","S","0")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1910,16,837).lua b/auto_yards/nodes/(-1910,16,837).lua deleted file mode 100644 index 89349e3..0000000 --- a/auto_yards/nodes/(-1910,16,837).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1912,10,-928).lua b/auto_yards/nodes/(-1912,10,-928).lua deleted file mode 100644 index afbdcef..0000000 --- a/auto_yards/nodes/(-1912,10,-928).lua +++ /dev/null @@ -1 +0,0 @@ --- ENTRY and WAITING
\ No newline at end of file diff --git a/auto_yards/nodes/(-1912,10,-957).lua b/auto_yards/nodes/(-1912,10,-957).lua deleted file mode 100644 index 68f24bb..0000000 --- a/auto_yards/nodes/(-1912,10,-957).lua +++ /dev/null @@ -1 +0,0 @@ -F.EOL("BY","N","1")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1912,16,839).lua b/auto_yards/nodes/(-1912,16,839).lua deleted file mode 100644 index 89349e3..0000000 --- a/auto_yards/nodes/(-1912,16,839).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1912,7,-1017).lua b/auto_yards/nodes/(-1912,7,-1017).lua deleted file mode 100644 index 572ed50..0000000 --- a/auto_yards/nodes/(-1912,7,-1017).lua +++ /dev/null @@ -1 +0,0 @@ -F.EOL("BY","S","1")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1915,10,-957).lua b/auto_yards/nodes/(-1915,10,-957).lua deleted file mode 100644 index 40a85b3..0000000 --- a/auto_yards/nodes/(-1915,10,-957).lua +++ /dev/null @@ -1 +0,0 @@ -F.EOL("BY","N","2")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1915,7,-1017).lua b/auto_yards/nodes/(-1915,7,-1017).lua deleted file mode 100644 index 217f0f4..0000000 --- a/auto_yards/nodes/(-1915,7,-1017).lua +++ /dev/null @@ -1 +0,0 @@ -F.EOL("BY","S","2")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1918,10,-957).lua b/auto_yards/nodes/(-1918,10,-957).lua deleted file mode 100644 index f4f335b..0000000 --- a/auto_yards/nodes/(-1918,10,-957).lua +++ /dev/null @@ -1 +0,0 @@ -F.EOL("BY","N","3")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1918,7,-1017).lua b/auto_yards/nodes/(-1918,7,-1017).lua deleted file mode 100644 index 6c9c7d1..0000000 --- a/auto_yards/nodes/(-1918,7,-1017).lua +++ /dev/null @@ -1 +0,0 @@ -F.EOL("BY","S","3")
\ No newline at end of file diff --git a/auto_yards/nodes/(-1925,16,833).lua b/auto_yards/nodes/(-1925,16,833).lua deleted file mode 100644 index 2d94f29..0000000 --- a/auto_yards/nodes/(-1925,16,833).lua +++ /dev/null @@ -1 +0,0 @@ -F.classification("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1928,16,834).lua b/auto_yards/nodes/(-1928,16,834).lua deleted file mode 100644 index 89349e3..0000000 --- a/auto_yards/nodes/(-1928,16,834).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1932,3,-1053).lua b/auto_yards/nodes/(-1932,3,-1053).lua deleted file mode 100644 index 2970f21..0000000 --- a/auto_yards/nodes/(-1932,3,-1053).lua +++ /dev/null @@ -1 +0,0 @@ ---HEADSHUNT and EXIT
\ No newline at end of file diff --git a/auto_yards/nodes/(-1933,16,833).lua b/auto_yards/nodes/(-1933,16,833).lua deleted file mode 100644 index 89349e3..0000000 --- a/auto_yards/nodes/(-1933,16,833).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1933,3,-1050).lua b/auto_yards/nodes/(-1933,3,-1050).lua deleted file mode 100644 index afbdcef..0000000 --- a/auto_yards/nodes/(-1933,3,-1050).lua +++ /dev/null @@ -1 +0,0 @@ --- ENTRY and WAITING
\ No newline at end of file diff --git a/auto_yards/nodes/(-1936,16,834).lua b/auto_yards/nodes/(-1936,16,834).lua deleted file mode 100644 index 89349e3..0000000 --- a/auto_yards/nodes/(-1936,16,834).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",false)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1958,16,808).lua b/auto_yards/nodes/(-1958,16,808).lua deleted file mode 100644 index 4503e25..0000000 --- a/auto_yards/nodes/(-1958,16,808).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",true)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1959,16,811).lua b/auto_yards/nodes/(-1959,16,811).lua deleted file mode 100644 index 4503e25..0000000 --- a/auto_yards/nodes/(-1959,16,811).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("ARC",true)
\ No newline at end of file diff --git a/auto_yards/nodes/(-1982,3,-1079).lua b/auto_yards/nodes/(-1982,3,-1079).lua deleted file mode 100644 index a878623..0000000 --- a/auto_yards/nodes/(-1982,3,-1079).lua +++ /dev/null @@ -1 +0,0 @@ ---EXIT
\ No newline at end of file diff --git a/auto_yards/nodes/(-2006,3,-1099).lua b/auto_yards/nodes/(-2006,3,-1099).lua deleted file mode 100644 index d774476..0000000 --- a/auto_yards/nodes/(-2006,3,-1099).lua +++ /dev/null @@ -1,2 +0,0 @@ -if event.digiline then return end -print("Notification Sent")
\ No newline at end of file diff --git a/auto_yards/nodes/(-2035,3,-1091).lua b/auto_yards/nodes/(-2035,3,-1091).lua deleted file mode 100644 index cbce1da..0000000 --- a/auto_yards/nodes/(-2035,3,-1091).lua +++ /dev/null @@ -1 +0,0 @@ -F.lane_EOL("BY",false)
\ No newline at end of file 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 |