From e455ab51a3bdb8cca33bf0a3906575aa9177d8df Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:52:29 +0200 Subject: State at 2020-11-06 --- durt/nodes/(-3588,8,-2277).lua | 2 +- durt/nodes/(-3776,11,-4340).lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'durt/nodes') diff --git a/durt/nodes/(-3588,8,-2277).lua b/durt/nodes/(-3588,8,-2277).lua index cc91e4a..0cb4557 100644 --- a/durt/nodes/(-3588,8,-2277).lua +++ b/durt/nodes/(-3588,8,-2277).lua @@ -1 +1 @@ - --West End of Loading Road local siding_id = "TreeFarm" local control_interface = POS(-3553,18,-2261) local hs_sig = POS(-3594,9,-2277) local hs_route = "Shunt Around Via Loop" if not S[siding_id] then S[siding_id] = {} end if not atc_arrow then atc_send("B1") end if not S[siding_id].yard_active then if atc_arrow then S[siding_id].yard_active = true S[siding_id].info = { ['rc'] = get_rc() or "", ['line'] = get_line() or "" } -- set_rc("AROUND") split_off_locomotive("B0WR") set_autocouple() set_route(hs_sig,hs_route) end else if atc_arrow then -- train has rejoined atc_send("B0WD2RS1") -- reverse and load train set_rc(S[siding_id].info.rc) set_line(S[siding_id].info.line) unset_autocouple() interrupt_pos(control_interface,"Train Shunted||Now Loading") S[siding_id].info.rc = nil S[siding_id].info.line = nil S[siding_id].yard_active = nil end end \ No newline at end of file + --West End of Loading Road local siding_id = "TreeFarm" local control_interface = POS(-3553,18,-2261) local hs_sig = POS(-3594,9,-2277) local hs_route = "Shunt Around Via Loop" if not S[siding_id] then S[siding_id] = {} end if not atc_arrow then atc_send("B1") end if not S[siding_id].yard_active then if atc_arrow then S[siding_id].yard_active = true S[siding_id].info = { ['rc'] = get_rc() or "", ['line'] = get_line() or "" } -- set_rc("AROUND") split_off_locomotive("B0WR") set_autocouple() set_route(hs_sig,hs_route) atc_send("S4") end else if atc_arrow then -- train has rejoined atc_send("B0WD2RS1") -- reverse and load train set_rc(S[siding_id].info.rc) set_line(S[siding_id].info.line) unset_autocouple() interrupt_pos(control_interface,"Train Shunted||Now Loading") S[siding_id].info.rc = nil S[siding_id].info.line = nil S[siding_id].yard_active = nil end end \ No newline at end of file diff --git a/durt/nodes/(-3776,11,-4340).lua b/durt/nodes/(-3776,11,-4340).lua index 25cab54..228f4d3 100644 --- a/durt/nodes/(-3776,11,-4340).lua +++ b/durt/nodes/(-3776,11,-4340).lua @@ -1 +1 @@ -if event.train then if atc_arrow then atc_send("B1") atc_set_text_outside("Unloading Cargo") F.M27_tracking("Storage Entry") else atc_send("SM") atc_set_text_outside("M27 Foundries Inc.") --set_rc("FREIGHT M27 Tanh_loop M27_Foundry autorun M27_tracking") set_rc("FREIGHT M27 M27_Quarry autorun M27_tracking") F.M27_tracking("Storage Exit") end end \ No newline at end of file +if event.train then if atc_arrow then atc_send("B1") --atc_set_text_outside("Unloading Cargo") F.M27_tracking("Storage Entry") else atc_send("SM") --atc_set_text_outside("M27 Foundries Inc.") --set_rc("FREIGHT M27 Tanh_loop M27_Foundry autorun M27_tracking") --set_rc("FREIGHT M27 M27_Quarry autorun M27_tracking") F.M27_tracking("Storage Exit") end end \ No newline at end of file -- cgit v1.2.3