diff options
Diffstat (limited to 'durt/nodes')
-rw-r--r-- | durt/nodes/(-2044,21,869).lua | 18 | ||||
-rw-r--r-- | durt/nodes/(-4599,7,-6502).lua | 12 | ||||
-rw-r--r-- | durt/nodes/(-4623,7,-6597).lua | 4 | ||||
-rw-r--r-- | durt/nodes/(-4626,7,-6638).lua | 2 |
4 files changed, 21 insertions, 15 deletions
diff --git a/durt/nodes/(-2044,21,869).lua b/durt/nodes/(-2044,21,869).lua index 8219fbc..f5618ac 100644 --- a/durt/nodes/(-2044,21,869).lua +++ b/durt/nodes/(-2044,21,869).lua @@ -1,17 +1,21 @@ -if event.train and atc_arrow then - local rc = get_rc() or "" - if rc:match("ARC_Station_Reverse") then - schedule_in(";01",atc_id) - return +if event.train then + if atc_arrow == true then + if F.has_rc("ARC_Station_Reverse") then + atc_send("S2") + schedule_in(";01",atc_id) + print("Train's id: " ..atc_id) + return + end end end if event.schedule then - if event.msg == atc_id then + print("Msg id: "..event.msg) + if atc_id and event.msg == atc_id then schedule_in(";01",event.msg) return else - atc_send_to_train(event.msg,"B0WRS3") + atc_send_to_train(event.msg,"S0WRS3") return end end
\ No newline at end of file diff --git a/durt/nodes/(-4599,7,-6502).lua b/durt/nodes/(-4599,7,-6502).lua index 6040727..6f7c67c 100644 --- a/durt/nodes/(-4599,7,-6502).lua +++ b/durt/nodes/(-4599,7,-6502).lua @@ -1,14 +1,16 @@ if event.train then - if atc_arrow then + if atc_arrow == true then if F.has_rc("BFT_Mainline_Headshunt") then + atc_send("S2") schedule_in(";01",atc_id) print("Train's id: " ..atc_id) return end else - if not F.has_rc("BFT_rejoin_from_north") then return end - atc_send("CplD1S1") - return + if F.has_rc("BFT_rejoin_from_north") then + atc_send("CplS1") + return + end end end @@ -18,7 +20,7 @@ if event.schedule then schedule_in(";01",event.msg) return else - atc_send_to_train(event.msg,"B0WRS3") + atc_send_to_train(event.msg,"S0WRS3") return end end
\ No newline at end of file diff --git a/durt/nodes/(-4623,7,-6597).lua b/durt/nodes/(-4623,7,-6597).lua index 649ba8b..4a4dcb0 100644 --- a/durt/nodes/(-4623,7,-6597).lua +++ b/durt/nodes/(-4623,7,-6597).lua @@ -1,4 +1,4 @@ -local split_indicator = POS(-4630,8,-6589) +local split_indicator = POS(-4627,8,-6597) __approach_callback_mode = 1 local shunt_actions = { @@ -26,7 +26,7 @@ if event.train then atc_send("S3") atc_set_ars_disable(false) setstate(split_indicator,"on") - set_rc(F.get_rc_safe() .. table.concat(shunt_actions," ")) + set_rc(F.get_rc_safe() .." ".. table.concat(shunt_actions," ")) elseif state == "on" then atc_send("I>1B0ES0;WROCA1D2S4D10SM") setstate(split_indicator,"off") diff --git a/durt/nodes/(-4626,7,-6638).lua b/durt/nodes/(-4626,7,-6638).lua index f602f9b..b22f859 100644 --- a/durt/nodes/(-4626,7,-6638).lua +++ b/durt/nodes/(-4626,7,-6638).lua @@ -1,7 +1,7 @@ local signal = POS(-4626,7,-6616) if event.train and atc_arrow then if F.has_rc("BFT_shunt_platforms") then - local control = {"B0WD2A0R"} + local control = {"A0S0WD2RA1"} if F.has_rc("BFT_shunt_Platform1") then set_route(signal,"SHUNT Platform 1") control[2] = "S3CplS1" |