diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:51 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:51 +0200 |
commit | 3ec5fcd5781184ab379185fbba6b46fc11066a55 (patch) | |
tree | d86624947d6444019af7ed0a67fc0a9cace3169c | |
parent | eeec3d8d41e0e50a6c07502b55fe0a7c4fb305ed (diff) | |
download | luaatc_envs-3ec5fcd5781184ab379185fbba6b46fc11066a55.tar.gz luaatc_envs-3ec5fcd5781184ab379185fbba6b46fc11066a55.tar.bz2 luaatc_envs-3ec5fcd5781184ab379185fbba6b46fc11066a55.zip |
State at 2021-04-28
-rw-r--r-- | il_timetable/nodes/(286,4,206).lua | 2 | ||||
-rw-r--r-- | subway/nodes/(-14,3,4).lua | 11 | ||||
-rw-r--r-- | subway/nodes/(-29,3,-80).lua | 20 | ||||
-rw-r--r-- | subway/nodes/(10,0,-10).lua | 9 | ||||
-rw-r--r-- | subwayis/nodes/(8,-2,48).lua | 6 |
5 files changed, 43 insertions, 5 deletions
diff --git a/il_timetable/nodes/(286,4,206).lua b/il_timetable/nodes/(286,4,206).lua index 8713687..2bcca64 100644 --- a/il_timetable/nodes/(286,4,206).lua +++ b/il_timetable/nodes/(286,4,206).lua @@ -6,7 +6,7 @@ end doors = "L" if event.train then local time_now = rwt.now() - local next_dep_time = rwt.next_rpt(rwt.add(time_now, 10), 240, 0) + local next_dep_time = rwt.next_rpt(rwt.add(time_now, 10), 120, 0) if flip then atc_set_text_outside("4 - Showroom") digiline_send("monitor", "4 Showroom "..rwt.to_string(next_dep_time, true)) diff --git a/subway/nodes/(-14,3,4).lua b/subway/nodes/(-14,3,4).lua index 825989c..2a14ddc 100644 --- a/subway/nodes/(-14,3,4).lua +++ b/subway/nodes/(-14,3,4).lua @@ -11,6 +11,12 @@ if event.ext_int then nwaiting = nnwaiting nnwaiting = nil setint=true + elseif event.message == "dep44" then + next_appr = 44 + appr_tmr = appr_time[4] + nwaiting = nnwaiting + nnwaiting = nil + setint=true elseif event.message == "dep1" then next_appr = 1 appr_tmr = appr_time[1] @@ -21,6 +27,8 @@ if event.ext_int then if nwaiting then nnwaiting = 1 else nwaiting = 1 end elseif event.message == "arr4" then if nwaiting then nnwaiting = 4 else nwaiting = 4 end + elseif event.message == "arr44" then + if nwaiting then nnwaiting = 44 else nwaiting = 44 end elseif event.message == "depo" then next_appr = nil end @@ -47,7 +55,8 @@ if appr_tmr <= 0 then end local txt = { [1] = "Palm Bay", - [4] = "Apple Grove", + [4] = "Ice Mntn", + [44] = "Showroom", } local line1, line2, line3 = "", "", "" if next_appr then diff --git a/subway/nodes/(-29,3,-80).lua b/subway/nodes/(-29,3,-80).lua index e10cb8f..c1c1488 100644 --- a/subway/nodes/(-29,3,-80).lua +++ b/subway/nodes/(-29,3,-80).lua @@ -1,7 +1,23 @@ F.stn_ilk("Erd4E", "iob4E", "Ori4E", "R") if event.train then -interrupt_pos(POS(10,0,-10), "arr"..S.line[atc_id]) +if get_line()=="4" then + if get_rc()=="NY" then + interrupt_pos(POS(10,0,-10), "arr44") + else + interrupt_pos(POS(10,0,-10), "arr4") + end +else + interrupt_pos(POS(10,0,-10), "arr1") +end end if depart then -interrupt_pos(POS(10,0,-10), "dep"..S.line[atc_id]) +if get_line()=="4" then + if get_rc()=="NY" then + interrupt_pos(POS(10,0,-10), "dep44") + else + interrupt_pos(POS(10,0,-10), "dep4") + end +else + interrupt_pos(POS(10,0,-10), "dep1") +end end
\ No newline at end of file diff --git a/subway/nodes/(10,0,-10).lua b/subway/nodes/(10,0,-10).lua index 9121a78..447cb5f 100644 --- a/subway/nodes/(10,0,-10).lua +++ b/subway/nodes/(10,0,-10).lua @@ -17,10 +17,18 @@ if event.ext_int then n_wait = nil appr_tmr = appr_time setint=true + elseif event.message == "dep44" then + if n_appr then in_stn = n_appr + 0 end + n_appr = 44 + n_wait = nil + appr_tmr = appr_time + setint=true elseif event.message == "arr1" then n_wait = 1 elseif event.message == "arr4" then n_wait = 4 + elseif event.message == "arr44" then + n_wait = 44 elseif event.message == "arro" and not in_stn then in_stn = n_appr n_appr = nil @@ -74,6 +82,7 @@ end local txt = { [1] = "Windy Mtns.", [4] = "Schwarzs.", + [44] = "NYE Sq.", } local line1, line2, line3 = "", "", "" if du_line then diff --git a/subwayis/nodes/(8,-2,48).lua b/subwayis/nodes/(8,-2,48).lua index 9fef105..b74d6e7 100644 --- a/subwayis/nodes/(8,-2,48).lua +++ b/subwayis/nodes/(8,-2,48).lua @@ -1 +1,5 @@ -interrupt_pos(POS(-14,3,4), "dep4")
\ No newline at end of file +if get_rc()=="SH" then +interrupt_pos(POS(-14,3,4), "dep44") +else +interrupt_pos(POS(-14,3,4), "dep4") +end
\ No newline at end of file |