diff options
-rw-r--r-- | ers_mtn/init_code.lua | 4 | ||||
-rw-r--r-- | ers_mtn/nodes/(1780,10,1235).lua | 32 | ||||
-rw-r--r-- | far/nodes/(30785,15,1711).lua | 2 | ||||
-rw-r--r-- | far/nodes/(30836,16,1863).lua | 13 | ||||
-rw-r--r-- | far/nodes/(30848,15,1852).lua | 2 | ||||
-rw-r--r-- | far/nodes/(4725,11,2214).lua | 8 |
6 files changed, 57 insertions, 4 deletions
diff --git a/ers_mtn/init_code.lua b/ers_mtn/init_code.lua index 6f346c5..fe140c3 100644 --- a/ers_mtn/init_code.lua +++ b/ers_mtn/init_code.lua @@ -63,12 +63,12 @@ F.save_train = function(pos) else pos_string = pos["x"] .. "," .. pos["y"] .. "," .. pos["z"] end - if F.has_rc("FAREAST", F.get_rc_safe()) then + -- if F.has_rc("FAREAST", F.get_rc_safe()) then S.trains[atc_id] = { ["id"] = atc_id, ["rc"] = F.get_rc_safe(), ["ln"] = F.get_line_safe(), ["cars_count"] = F.get_train_length_safe(), ["pos"] = pos_string } -- F.print("Train ID: " .. S.trains[atc_id]["id"] .. " at " .. S.trains[atc_id]["pos"]) -- remote_track = POS(30919,13,1812) -- interrupt_pos(remote_track, "display") - end + -- end end end diff --git a/ers_mtn/nodes/(1780,10,1235).lua b/ers_mtn/nodes/(1780,10,1235).lua new file mode 100644 index 0000000..6712883 --- /dev/null +++ b/ers_mtn/nodes/(1780,10,1235).lua @@ -0,0 +1,32 @@ +-- far_luaatctrack_farcom_op_01.lua + +if event.type == "punch" then +-- F.delete_train_info("298909") + S.stop_display = true + + F.send_update_displays() + + if S.stop_display then + date = F.date_formatted() + time = F.time_formatted() + digiline_send("time", " FAR COM\n\n " .. date .. "\n " .. time) + F.list_trains(true) + else + local pos = POS( 1790,3,1241 ) + interrupt_pos(pos, "display") + end + + return +end + +if event.type == "digiline" then + if event.channel == "display" then + if event.msg == "update" then + date = F.date_formatted() + time = F.time_formatted() + digiline_send("time", " FAR COM\n\n " .. date .. "\n " .. time) + F.list_trains(false) + end + end + return +end diff --git a/far/nodes/(30785,15,1711).lua b/far/nodes/(30785,15,1711).lua index 3097ac1..668b0c7 100644 --- a/far/nodes/(30785,15,1711).lua +++ b/far/nodes/(30785,15,1711).lua @@ -17,7 +17,7 @@ if event.type == "train" then 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) + -- F.print("Train ID " .. atc_id .. " going on " .. proposed_route_name) atc_send("SM") end end diff --git a/far/nodes/(30836,16,1863).lua b/far/nodes/(30836,16,1863).lua new file mode 100644 index 0000000..d478fb1 --- /dev/null +++ b/far/nodes/(30836,16,1863).lua @@ -0,0 +1,13 @@ + +if event.type == "punch" then +-- F.delete_train_info("240661") + +-- F.slow_train_down("010765") +-- F.slow_train_down("264353") +-- F.slow_train_down("403053") +-- F.slow_train_down("428934") + + F.clear_main_depot_displays() + F.print("Cleared displays at FARCOM") + return +end
\ No newline at end of file diff --git a/far/nodes/(30848,15,1852).lua b/far/nodes/(30848,15,1852).lua index e55e17b..0f5348e 100644 --- a/far/nodes/(30848,15,1852).lua +++ b/far/nodes/(30848,15,1852).lua @@ -9,7 +9,7 @@ end if event.type == "ext_int" then if event.message == "display" then - interrupt(30,"update_display") + interrupt(3,"update_display") end return end diff --git a/far/nodes/(4725,11,2214).lua b/far/nodes/(4725,11,2214).lua new file mode 100644 index 0000000..ca726c1 --- /dev/null +++ b/far/nodes/(4725,11,2214).lua @@ -0,0 +1,8 @@ +-- far_luaatctrack_spot_check_01.lua + +local show_print = false +if event.train then + local posTable = POS(4725,11,2214) + F.save_train(posTable) + return +end
\ No newline at end of file |