diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 15:00:34 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 15:00:34 +0200 |
commit | 7b0eb477e679926a1a27cb76436849e2bd382637 (patch) | |
tree | 8ee214cb57bdba7a1e976b666f22453ec0d1aa7b /far/nodes | |
parent | e03d888a00e52d12b992456a646e79bef2873418 (diff) | |
download | luaatc_envs-7b0eb477e679926a1a27cb76436849e2bd382637.tar.gz luaatc_envs-7b0eb477e679926a1a27cb76436849e2bd382637.tar.bz2 luaatc_envs-7b0eb477e679926a1a27cb76436849e2bd382637.zip |
State at 2023-07-21
Diffstat (limited to 'far/nodes')
-rw-r--r-- | far/nodes/(2049,9,1480).lua | 2 | ||||
-rw-r--r-- | far/nodes/(30785,15,1711).lua | 21 | ||||
-rw-r--r-- | far/nodes/(30919,13,1814).lua | 4 | ||||
-rw-r--r-- | far/nodes/(30919,13,1815).lua | 5 |
4 files changed, 27 insertions, 5 deletions
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 |