From 5c7f77725394d47ce0b907aabf885ea207a507bd Mon Sep 17 00:00:00 2001 From: autocommitter Date: Tue, 15 Oct 2024 22:37:32 +0200 Subject: State at 2024-10-15 --- ers_mtn/nodes/(1790,3,1241).lua | 36 ++++++++++++++++++++++++++++++++++++ ers_mtn/nodes/(1872,116,1249).lua | 11 +++++++++++ ers_mtn/nodes/(1872,116,1253).lua | 11 +++++++++++ ers_mtn/nodes/(1920,133,1239).lua | 11 +++++++++++ 4 files changed, 69 insertions(+) create mode 100644 ers_mtn/nodes/(1790,3,1241).lua create mode 100644 ers_mtn/nodes/(1872,116,1249).lua create mode 100644 ers_mtn/nodes/(1872,116,1253).lua create mode 100644 ers_mtn/nodes/(1920,133,1239).lua (limited to 'ers_mtn/nodes') diff --git a/ers_mtn/nodes/(1790,3,1241).lua b/ers_mtn/nodes/(1790,3,1241).lua new file mode 100644 index 0000000..88270da --- /dev/null +++ b/ers_mtn/nodes/(1790,3,1241).lua @@ -0,0 +1,36 @@ +-- +-- +-- 1790,3,1241 + +-- far_luaatctrack_spot_check_01.lua + +if event.type == "train" then +--[[ + if atc_arrow then + F.print("ers_mtn " .. atc_id .. " up") + else + F.print("ers_mtn " .. atc_id .. " down") + end +]] + local posTable = POS( 1790,3,1241 ) + F.save_train(posTable) + digiline_send("display", "update") + return +end + +if event.type == "ext_int" then + if event.message == "display" then + interrupt(3,"update_display") + end + return +end + + +if event.type == "int" then + if event.msg == "update_display" then + if S.stop_display == true then return end + digiline_send("display", "update") + interrupt(60,"update_display") + end + return +end \ No newline at end of file diff --git a/ers_mtn/nodes/(1872,116,1249).lua b/ers_mtn/nodes/(1872,116,1249).lua new file mode 100644 index 0000000..18eb4fb --- /dev/null +++ b/ers_mtn/nodes/(1872,116,1249).lua @@ -0,0 +1,11 @@ +-- +-- +-- 1872,116,1249 + +-- far_luaatctrack_spot_check_01.lua + +if event.train then + local posTable = POS( 1872,116,1249 ) + F.save_train(posTable) + return +end diff --git a/ers_mtn/nodes/(1872,116,1253).lua b/ers_mtn/nodes/(1872,116,1253).lua new file mode 100644 index 0000000..fa99b8b --- /dev/null +++ b/ers_mtn/nodes/(1872,116,1253).lua @@ -0,0 +1,11 @@ +-- +-- +-- 1872,116,1253 + +-- far_luaatctrack_spot_check_01.lua + +if event.train then + local posTable = POS( 1872,116,1253 ) + F.save_train(posTable) + return +end diff --git a/ers_mtn/nodes/(1920,133,1239).lua b/ers_mtn/nodes/(1920,133,1239).lua new file mode 100644 index 0000000..1e6bc3a --- /dev/null +++ b/ers_mtn/nodes/(1920,133,1239).lua @@ -0,0 +1,11 @@ +-- +-- +-- 1920,133,1239 + +-- far_luaatctrack_spot_check_01.lua + +if event.train then + local posTable = POS( 1920,133,1239 ) + F.save_train(posTable) + return +end -- cgit v1.2.3