From f2833edacd927c01fcce286c84a7a2bfb9c12fd1 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:56:48 +0200 Subject: State at 2022-04-05 --- durt/nodes/(-2080,3,822).lua | 3 ++- durt/nodes/(-2081,1,811).lua | 3 +++ durt/nodes/(-4144,16,-5792).lua | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 durt/nodes/(-2081,1,811).lua (limited to 'durt/nodes') diff --git a/durt/nodes/(-2080,3,822).lua b/durt/nodes/(-2080,3,822).lua index d450d7d..bc97348 100644 --- a/durt/nodes/(-2080,3,822).lua +++ b/durt/nodes/(-2080,3,822).lua @@ -6,13 +6,14 @@ if type(rc) == "string" then rc = function() return "" end end if rc():match("ArcLoad_NOSHUNT") then return end if event.train and atc_arrow then - print(get_rc()) if getstate(indicator) == "green" then F.remove_rc(shunting_rc,true) atc_send("S0WRD1A1S2D10SM") setstate(indicator,"red") set_rc(rc().." ArcLoad_exit") + print("Arcload departing") else + print("Arcload arrived") local o_text = atc_get_text_outside() or "" atc_set_text_outside("Waiting for Locomotive") split_off_locomotive("A0B0",1) diff --git a/durt/nodes/(-2081,1,811).lua b/durt/nodes/(-2081,1,811).lua new file mode 100644 index 0000000..1ee1917 --- /dev/null +++ b/durt/nodes/(-2081,1,811).lua @@ -0,0 +1,3 @@ +if event.punch then + interrupt_pos(POS(-4144,16,-5792)) +end \ No newline at end of file diff --git a/durt/nodes/(-4144,16,-5792).lua b/durt/nodes/(-4144,16,-5792).lua index b8098f1..369fa2e 100644 --- a/durt/nodes/(-4144,16,-5792).lua +++ b/durt/nodes/(-4144,16,-5792).lua @@ -1,8 +1,12 @@ if event.ext_int then - if not atc_id then return end + if not atc_id then + print("No train") + return + end F.remove_rc({"DLG_north_reverse","DLG_shunt_platforms","DLG_shunt_Freight4"}) F.add_rc("DLG_exit_north") atc_send("I+S0WR;S4D10SM") + print("Train departing DLG") end __approach_callback_mode = 1 -- cgit v1.2.3