From 7b0eb477e679926a1a27cb76436849e2bd382637 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 15:00:34 +0200 Subject: State at 2023-07-21 --- far/nodes/(2049,9,1480).lua | 2 +- far/nodes/(30785,15,1711).lua | 21 +++++++++++++++++++++ far/nodes/(30919,13,1814).lua | 4 ++-- far/nodes/(30919,13,1815).lua | 5 +++-- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 far/nodes/(30785,15,1711).lua (limited to 'far/nodes') diff --git a/far/nodes/(2049,9,1480).lua b/far/nodes/(2049,9,1480).lua index 3c361d0..08e6c2a 100644 --- a/far/nodes/(2049,9,1480).lua +++ b/far/nodes/(2049,9,1480).lua @@ -5,4 +5,4 @@ if event.train then local posTable = POS(2049,9,1480) F.save_train(posTable) return -endv \ No newline at end of file +end \ No newline at end of file diff --git a/far/nodes/(30785,15,1711).lua b/far/nodes/(30785,15,1711).lua new file mode 100644 index 0000000..06bdb5c --- /dev/null +++ b/far/nodes/(30785,15,1711).lua @@ -0,0 +1,21 @@ +-- far_luaatctrack_findopenroute_01.lua +local signal_pos = "FareastEndEntrySignal" +local last_route = "3" +local proposed_route_name = "" + +if event.type == "train" then + if not atc_id then return end + if atc_arrow then + atc_send("B0") + end + for i = 1, last_route, 1 do + l = tostring(i) + proposed_route_name = "Far East End (Platform " .. l .. ")" + if can_set_route(signal_pos, proposed_route_name) then + set_route(signal_pos, proposed_route_name) + F.print("Train ID " .. atc_id .. " going on " .. proposed_route_name) + atc_send("SM") + end + end +end + diff --git a/far/nodes/(30919,13,1814).lua b/far/nodes/(30919,13,1814).lua index 0aa072d..0bf4df5 100644 --- a/far/nodes/(30919,13,1814).lua +++ b/far/nodes/(30919,13,1814).lua @@ -2,8 +2,8 @@ local show_print = false if event.type == "punch" then --- F.delete_train_info("450511") +-- F.delete_train_info("595542") - F.list_trains(6) + F.list_trains(15) return end \ No newline at end of file diff --git a/far/nodes/(30919,13,1815).lua b/far/nodes/(30919,13,1815).lua index c8cd423..dee866e 100644 --- a/far/nodes/(30919,13,1815).lua +++ b/far/nodes/(30919,13,1815).lua @@ -1,8 +1,9 @@ local show_print = false if event.type == "punch" then --- trainID = 999999999 --- F.slow_train_down(trainID) + + F.slow_train_down("458503") + F.clear_main_depot_displays() return end \ No newline at end of file -- cgit v1.2.3