From cfa65d94f1bc9d9e9efe13791711a9ad044a4a67 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:52:38 +0200 Subject: State at 2021-04-04 --- il_timetable/nodes/(-1023,21,-108).lua | 1 + il_timetable/nodes/(-1023,21,-150).lua | 1 + il_timetable/nodes/(-1023,21,-190).lua | 1 + il_timetable/nodes/(-1023,21,-88).lua | 1 + il_timetable/nodes/(-1477,9,-83).lua | 29 +++++++++++++++++++++++++++++ il_timetable/nodes/(-1481,3,1160).lua | 10 ++++++++++ il_timetable/nodes/(-2091,9,-4569).lua | 1 + il_timetable/nodes/(-640,14,-426).lua | 3 +++ il_timetable/nodes/(1103,23,3014).lua | 8 ++++++++ il_timetable/nodes/(1103,23,3027).lua | 8 ++++++++ il_timetable/nodes/(1106,19,3007).lua | 6 ++++++ il_timetable/nodes/(1106,23,1943).lua | 9 +++++++++ il_timetable/nodes/(1107,16,1951).lua | 5 +++++ il_timetable/nodes/(142,8,164).lua | 1 + il_timetable/nodes/(1524,21,2656).lua | 4 ++++ il_timetable/nodes/(159,11,846).lua | 28 ++++++++++++++++++++++++++++ il_timetable/nodes/(1604,-1,7982).lua | 10 ++++++++++ il_timetable/nodes/(1618,-1,7982).lua | 10 ++++++++++ il_timetable/nodes/(1725,28,2912).lua | 1 + il_timetable/nodes/(1730,26,2915).lua | 12 ++++++++++++ il_timetable/nodes/(1730,26,2926).lua | 5 +++++ il_timetable/nodes/(1734,26,2922).lua | 10 ++++++++++ il_timetable/nodes/(1899,19,8223).lua | 4 ++++ il_timetable/nodes/(1932,8,9112).lua | 19 +++++++++++++++++++ il_timetable/nodes/(1936,7,9131).lua | 11 +++++++++++ il_timetable/nodes/(1953,19,8220).lua | 4 ++++ il_timetable/nodes/(1971,5,7353).lua | 8 ++++++++ il_timetable/nodes/(1973,42,8384).lua | 9 +++++++++ il_timetable/nodes/(1973,5,6132).lua | 8 ++++++++ il_timetable/nodes/(1976,5,7914).lua | 8 ++++++++ il_timetable/nodes/(1977,3,7354).lua | 4 ++++ il_timetable/nodes/(1980,3,6129).lua | 4 ++++ il_timetable/nodes/(1980,3,7922).lua | 4 ++++ il_timetable/nodes/(1980,41,8381).lua | 5 +++++ il_timetable/nodes/(1980,41,8395).lua | 10 ++++++++++ il_timetable/nodes/(2648,13,4352).lua | 4 ++++ il_timetable/nodes/(286,4,206).lua | 27 +++++++++++++++++++++++++++ il_timetable/nodes/(767,10,3484).lua | 10 ++++++++++ il_timetable/nodes/(790,8,-109).lua | 5 +++++ il_timetable/nodes/(941,18,-571).lua | 5 +++++ il_timetable/nodes/(957,14,1047).lua | 6 +++++- il_timetable/nodes/(960,14,1067).lua | 3 +++ il_timetable/nodes/(972,14,1053).lua | 5 ++++- 43 files changed, 325 insertions(+), 2 deletions(-) create mode 100644 il_timetable/nodes/(-1023,21,-108).lua create mode 100644 il_timetable/nodes/(-1023,21,-150).lua create mode 100644 il_timetable/nodes/(-1023,21,-190).lua create mode 100644 il_timetable/nodes/(-1023,21,-88).lua create mode 100644 il_timetable/nodes/(-1477,9,-83).lua create mode 100644 il_timetable/nodes/(-1481,3,1160).lua create mode 100644 il_timetable/nodes/(-2091,9,-4569).lua create mode 100644 il_timetable/nodes/(-640,14,-426).lua create mode 100644 il_timetable/nodes/(1103,23,3014).lua create mode 100644 il_timetable/nodes/(1103,23,3027).lua create mode 100644 il_timetable/nodes/(1106,19,3007).lua create mode 100644 il_timetable/nodes/(1106,23,1943).lua create mode 100644 il_timetable/nodes/(1107,16,1951).lua create mode 100644 il_timetable/nodes/(142,8,164).lua create mode 100644 il_timetable/nodes/(1524,21,2656).lua create mode 100644 il_timetable/nodes/(159,11,846).lua create mode 100644 il_timetable/nodes/(1604,-1,7982).lua create mode 100644 il_timetable/nodes/(1618,-1,7982).lua create mode 100644 il_timetable/nodes/(1725,28,2912).lua create mode 100644 il_timetable/nodes/(1730,26,2915).lua create mode 100644 il_timetable/nodes/(1730,26,2926).lua create mode 100644 il_timetable/nodes/(1734,26,2922).lua create mode 100644 il_timetable/nodes/(1899,19,8223).lua create mode 100644 il_timetable/nodes/(1932,8,9112).lua create mode 100644 il_timetable/nodes/(1936,7,9131).lua create mode 100644 il_timetable/nodes/(1953,19,8220).lua create mode 100644 il_timetable/nodes/(1971,5,7353).lua create mode 100644 il_timetable/nodes/(1973,42,8384).lua create mode 100644 il_timetable/nodes/(1973,5,6132).lua create mode 100644 il_timetable/nodes/(1976,5,7914).lua create mode 100644 il_timetable/nodes/(1977,3,7354).lua create mode 100644 il_timetable/nodes/(1980,3,6129).lua create mode 100644 il_timetable/nodes/(1980,3,7922).lua create mode 100644 il_timetable/nodes/(1980,41,8381).lua create mode 100644 il_timetable/nodes/(1980,41,8395).lua create mode 100644 il_timetable/nodes/(2648,13,4352).lua create mode 100644 il_timetable/nodes/(286,4,206).lua create mode 100644 il_timetable/nodes/(767,10,3484).lua create mode 100644 il_timetable/nodes/(790,8,-109).lua create mode 100644 il_timetable/nodes/(941,18,-571).lua create mode 100644 il_timetable/nodes/(960,14,1067).lua (limited to 'il_timetable/nodes') diff --git a/il_timetable/nodes/(-1023,21,-108).lua b/il_timetable/nodes/(-1023,21,-108).lua new file mode 100644 index 0000000..51ee459 --- /dev/null +++ b/il_timetable/nodes/(-1023,21,-108).lua @@ -0,0 +1 @@ +F.ttp_stop("testing", "Mitte 1", "L") \ No newline at end of file diff --git a/il_timetable/nodes/(-1023,21,-150).lua b/il_timetable/nodes/(-1023,21,-150).lua new file mode 100644 index 0000000..ea2b0c2 --- /dev/null +++ b/il_timetable/nodes/(-1023,21,-150).lua @@ -0,0 +1 @@ +F.ttp_stop("testing", "Mitte 2", "L") \ No newline at end of file diff --git a/il_timetable/nodes/(-1023,21,-190).lua b/il_timetable/nodes/(-1023,21,-190).lua new file mode 100644 index 0000000..c524004 --- /dev/null +++ b/il_timetable/nodes/(-1023,21,-190).lua @@ -0,0 +1 @@ +F.ttp_end("testing", "Sued", "L", 2) \ No newline at end of file diff --git a/il_timetable/nodes/(-1023,21,-88).lua b/il_timetable/nodes/(-1023,21,-88).lua new file mode 100644 index 0000000..62a70b4 --- /dev/null +++ b/il_timetable/nodes/(-1023,21,-88).lua @@ -0,0 +1 @@ +F.ttp_begin("testing", "Nord", "01;00", "00;30", "L") \ No newline at end of file diff --git a/il_timetable/nodes/(-1477,9,-83).lua b/il_timetable/nodes/(-1477,9,-83).lua new file mode 100644 index 0000000..21d7954 --- /dev/null +++ b/il_timetable/nodes/(-1477,9,-83).lua @@ -0,0 +1,29 @@ +if event.train then +st_name = "Shouwroom" +flip = not flip +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) +if flip then + atc_set_text_outside("4 - Schwarzschild Street") + digiline_send("monitor", "4 Schwarzschild St . "..rwt.to_string(next_dep_time, true)) + set_rc("SC") +else + digiline_send("monitor", "4 NYE Square "..rwt.to_string(next_dep_time, true)) + atc_set_text_outside("4 - NYE Square") + set_rc("NY") +end + atc_set_text_inside(st_name.."\nDeparture: "..rwt.to_string(next_dep_time, true)) + atc_send("B0 W O"..doors) + schedule(next_dep_time, "depart") + elseif event.schedule then + atc_send("OCD1SM") + set_route("shrdep", "*") + digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true)) + atc_set_text_inside("") + depart = true + end +-- \ No newline at end of file diff --git a/il_timetable/nodes/(-1481,3,1160).lua b/il_timetable/nodes/(-1481,3,1160).lua new file mode 100644 index 0000000..8055b7a --- /dev/null +++ b/il_timetable/nodes/(-1481,3,1160).lua @@ -0,0 +1,10 @@ +if atc_arrow then +if flip then + atc_set_text_outside("4 - Schwarzschild Street") + set_rc("SC") +else + atc_set_text_outside("4 - NYE Square") + set_rc("NY") +end +flip = not flip +end \ No newline at end of file diff --git a/il_timetable/nodes/(-2091,9,-4569).lua b/il_timetable/nodes/(-2091,9,-4569).lua new file mode 100644 index 0000000..293832f --- /dev/null +++ b/il_timetable/nodes/(-2091,9,-4569).lua @@ -0,0 +1 @@ +F.stop_sd_sched("Melinka", "L", "RSM", 10, 120, 0) diff --git a/il_timetable/nodes/(-640,14,-426).lua b/il_timetable/nodes/(-640,14,-426).lua new file mode 100644 index 0000000..0a32291 --- /dev/null +++ b/il_timetable/nodes/(-640,14,-426).lua @@ -0,0 +1,3 @@ +if event.train then + F.timetake_end("E1-Psh-Ehl") +end \ No newline at end of file diff --git a/il_timetable/nodes/(1103,23,3014).lua b/il_timetable/nodes/(1103,23,3014).lua new file mode 100644 index 0000000..0ea53b2 --- /dev/null +++ b/il_timetable/nodes/(1103,23,3014).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"CFE_S", "NX_S"}, + departure = {CFE_S="15;00", NX_S="02;30"}, + station = "Personhood West", + title = "PH West - Track 4", + interval = 30, + display1 = "track4", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1103,23,3027).lua b/il_timetable/nodes/(1103,23,3027).lua new file mode 100644 index 0000000..0ea53b2 --- /dev/null +++ b/il_timetable/nodes/(1103,23,3027).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"CFE_S", "NX_S"}, + departure = {CFE_S="15;00", NX_S="02;30"}, + station = "Personhood West", + title = "PH West - Track 4", + interval = 30, + display1 = "track4", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1106,19,3007).lua b/il_timetable/nodes/(1106,19,3007).lua new file mode 100644 index 0000000..ff8b71e --- /dev/null +++ b/il_timetable/nodes/(1106,19,3007).lua @@ -0,0 +1,6 @@ +F.ttp_stop({ + stn = "Personhood West", + doorside = "R", +-- end_of_tt = {CFE_S=true, NX_S=true}, + departure = {CFE_S="15;00", NX_S="02;30"}, +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1106,23,1943).lua b/il_timetable/nodes/(1106,23,1943).lua new file mode 100644 index 0000000..84a52d0 --- /dev/null +++ b/il_timetable/nodes/(1106,23,1943).lua @@ -0,0 +1,9 @@ +F.ttp_station_display({ + lines = {"CFE_S", "NX_S", "E1_S"}, + departure = {}, + station = "The Cube", + title = "The Cube (Track 2)", + interval = 15, + display1 = "display1", + display2 = "display2", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1107,16,1951).lua b/il_timetable/nodes/(1107,16,1951).lua new file mode 100644 index 0000000..1d7d775 --- /dev/null +++ b/il_timetable/nodes/(1107,16,1951).lua @@ -0,0 +1,5 @@ +F.ttp_stop({ + stn = "The Cube", + doorside = "R", + end_of_tt = {CFE_S=true,NX_S=true,E1_S=true}, +}) \ No newline at end of file diff --git a/il_timetable/nodes/(142,8,164).lua b/il_timetable/nodes/(142,8,164).lua new file mode 100644 index 0000000..acced81 --- /dev/null +++ b/il_timetable/nodes/(142,8,164).lua @@ -0,0 +1 @@ +atc_set_text_outside("[CFE] Warmoneaye\nvia Ehlodex, Personhood West, Crystal Farms") \ No newline at end of file diff --git a/il_timetable/nodes/(1524,21,2656).lua b/il_timetable/nodes/(1524,21,2656).lua new file mode 100644 index 0000000..9b7580d --- /dev/null +++ b/il_timetable/nodes/(1524,21,2656).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "Personhood South", + doorside = "R", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(159,11,846).lua b/il_timetable/nodes/(159,11,846).lua new file mode 100644 index 0000000..49e1131 --- /dev/null +++ b/il_timetable/nodes/(159,11,846).lua @@ -0,0 +1,28 @@ +if event.train then +st_name = "Schwarzschild Street" +set_line("4") +flip = not flip +end + +doors = "L" + if event.train then + local time_now = rwt.now() + 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)) + set_rc("SH") +else + digiline_send("monitor", "4 Ice Mountain "..rwt.to_string(next_dep_time, true)) + atc_set_text_outside("4 - Ice Mountain") + set_rc("IM") +end + atc_set_text_inside(st_name.."\nDeparture: "..rwt.to_string(next_dep_time, true)) + atc_send("B0 W O"..doors) + schedule(next_dep_time, "depart") + elseif event.schedule then + atc_send("OCD1SM") + digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true)) + atc_set_text_inside("") + depart = true + end diff --git a/il_timetable/nodes/(1604,-1,7982).lua b/il_timetable/nodes/(1604,-1,7982).lua new file mode 100644 index 0000000..1326eab --- /dev/null +++ b/il_timetable/nodes/(1604,-1,7982).lua @@ -0,0 +1,10 @@ +F.ttp_begin({ + stn = "New Roses Gardens", -- station name + tt = "NRG_E", -- timetable ID + depint = "10;00", --departure slot interval + depoff = "01;30", --departure slot offset + doorside = "L", + reverse = true, + only_lines = nil, + force_tt_reset = false, -- force reset of travel times for this timetable +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1618,-1,7982).lua b/il_timetable/nodes/(1618,-1,7982).lua new file mode 100644 index 0000000..c1b0bce --- /dev/null +++ b/il_timetable/nodes/(1618,-1,7982).lua @@ -0,0 +1,10 @@ +F.ttp_begin({ + stn = "New Roses Gardens", -- station name + tt = "NRG_E", -- timetable ID + depint = "10;00", --departure slot interval + depoff = "06;30", --departure slot offset + doorside = "R", + reverse = true, + only_lines = nil, + force_tt_reset = false, -- force reset of travel times for this timetable +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1725,28,2912).lua b/il_timetable/nodes/(1725,28,2912).lua new file mode 100644 index 0000000..6c2907f --- /dev/null +++ b/il_timetable/nodes/(1725,28,2912).lua @@ -0,0 +1 @@ +F.timedisplay() \ No newline at end of file diff --git a/il_timetable/nodes/(1730,26,2915).lua b/il_timetable/nodes/(1730,26,2915).lua new file mode 100644 index 0000000..44b483e --- /dev/null +++ b/il_timetable/nodes/(1730,26,2915).lua @@ -0,0 +1,12 @@ +-- d_int: Departure every n seconds (epoch modulo) +-- d_off: Departure time offset +-- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off) +F.stop_sd_sched("Personhood Main", "L", "RSM", 10, 120, 70) +atc_set_text_outside("E1: Personhood <-> Spawn <-> Melinka Town") +if event.train then + F.stat("E1", false) + F.timetake_end("E1-Ehl-Psh") +end +if depart then + F.timetake_start("E1-Psh-Ehl") +end diff --git a/il_timetable/nodes/(1730,26,2926).lua b/il_timetable/nodes/(1730,26,2926).lua new file mode 100644 index 0000000..b2341c2 --- /dev/null +++ b/il_timetable/nodes/(1730,26,2926).lua @@ -0,0 +1,5 @@ +-- d_int: Departure every n seconds (epoch modulo) +-- d_off: Departure time offset +-- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off) +atc_set_text_outside("E11 - Oasis") +F.stop_sd_sched("Personhood Main Station", "R", "RSM", 10, 300, 0) \ No newline at end of file diff --git a/il_timetable/nodes/(1734,26,2922).lua b/il_timetable/nodes/(1734,26,2922).lua new file mode 100644 index 0000000..36913b1 --- /dev/null +++ b/il_timetable/nodes/(1734,26,2922).lua @@ -0,0 +1,10 @@ +F.ttp_begin({ + stn = "Personhood Main", -- station name + tt = "E1_S", -- timetable ID + depint = "02;30", --departure slot interval + depoff = "00;00", --departure slot offset + doorside = "R", + reverse = true, + only_lines = { E1 = true }, + force_tt_reset = false, +}) diff --git a/il_timetable/nodes/(1899,19,8223).lua b/il_timetable/nodes/(1899,19,8223).lua new file mode 100644 index 0000000..c07fbb8 --- /dev/null +++ b/il_timetable/nodes/(1899,19,8223).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "Krasnograd", + doorside = "R", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1932,8,9112).lua b/il_timetable/nodes/(1932,8,9112).lua new file mode 100644 index 0000000..ab5f43e --- /dev/null +++ b/il_timetable/nodes/(1932,8,9112).lua @@ -0,0 +1,19 @@ +--S.ttp["CFE_S"].travel_times["Personhood West"] = 890 + +lines = F.ttp_info_times("CFE_S", "00;00") +linestr = F.ttp_info_trains("CFE_S", "00;00") +local li = lines +for i=1,#linestr do li[#li+1] = linestr[i] end +print(" CFE\n"..table.concat(li, "\n")) + +lines = F.ttp_info_times("NX_S", "00;00") +linestr = F.ttp_info_trains("NX_S", "00;00") +li = lines +for i=1,#linestr do li[#li+1] = linestr[i] end +print(" NX\n"..table.concat(li, "\n")) + +lines = F.ttp_info_times("E1_S", "00;00") +linestr = F.ttp_info_trains("E1_S", "00;00") +li = lines +for i=1,#linestr do li[#li+1] = linestr[i] end +print(" E1\n"..table.concat(li, "\n")) \ No newline at end of file diff --git a/il_timetable/nodes/(1936,7,9131).lua b/il_timetable/nodes/(1936,7,9131).lua new file mode 100644 index 0000000..815f30a --- /dev/null +++ b/il_timetable/nodes/(1936,7,9131).lua @@ -0,0 +1,11 @@ +F.ttp_begin({ + stn = "Warmoneaye", -- station name + tt = "CFE_S", -- timetable ID + depint = "05;00", --departure slot interval + depoff = "00;00", --departure slot offset + doorside = "L", + reverse = true, + only_lines = nil, + force_tt_reset = false, +}) +F.stat("CFE") \ No newline at end of file diff --git a/il_timetable/nodes/(1953,19,8220).lua b/il_timetable/nodes/(1953,19,8220).lua new file mode 100644 index 0000000..c07fbb8 --- /dev/null +++ b/il_timetable/nodes/(1953,19,8220).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "Krasnograd", + doorside = "R", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1971,5,7353).lua b/il_timetable/nodes/(1971,5,7353).lua new file mode 100644 index 0000000..d9f6da9 --- /dev/null +++ b/il_timetable/nodes/(1971,5,7353).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"CFE_S"}, + departure = {}, + station = "Crystal Farms", + title = "Crystal Farms", + interval = 60, + display1 = "disp1", +}) diff --git a/il_timetable/nodes/(1973,42,8384).lua b/il_timetable/nodes/(1973,42,8384).lua new file mode 100644 index 0000000..8fe1919 --- /dev/null +++ b/il_timetable/nodes/(1973,42,8384).lua @@ -0,0 +1,9 @@ +F.ttp_station_display({ + lines = {"CFE_S", "NRG_W", "NRG_E"}, + departure = {}, + station = "Azena Transirejo", + title = "Azena Transirejo", + interval = 30, + display1 = "display1", + display2 = "display2", +}) diff --git a/il_timetable/nodes/(1973,5,6132).lua b/il_timetable/nodes/(1973,5,6132).lua new file mode 100644 index 0000000..451a05c --- /dev/null +++ b/il_timetable/nodes/(1973,5,6132).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"CFE_S"}, + departure = {}, + station = "Grootshad - X Nihilo", + title = "Grootshad-XNihilo", + interval = 60, + display1 = "disp1", +}) diff --git a/il_timetable/nodes/(1976,5,7914).lua b/il_timetable/nodes/(1976,5,7914).lua new file mode 100644 index 0000000..313ac90 --- /dev/null +++ b/il_timetable/nodes/(1976,5,7914).lua @@ -0,0 +1,8 @@ +F.ttp_station_display({ + lines = {"CFE_S"}, + departure = {}, + station = "Malvarma Akvo", + title = "Malvarma Akvo", + interval = 60, + display1 = "disp1", +}) diff --git a/il_timetable/nodes/(1977,3,7354).lua b/il_timetable/nodes/(1977,3,7354).lua new file mode 100644 index 0000000..61e267f --- /dev/null +++ b/il_timetable/nodes/(1977,3,7354).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "Crystal Farms", + doorside = "R", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1980,3,6129).lua b/il_timetable/nodes/(1980,3,6129).lua new file mode 100644 index 0000000..438b60f --- /dev/null +++ b/il_timetable/nodes/(1980,3,6129).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "Grootshad - X Nihilo", + doorside = "R", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1980,3,7922).lua b/il_timetable/nodes/(1980,3,7922).lua new file mode 100644 index 0000000..9e91259 --- /dev/null +++ b/il_timetable/nodes/(1980,3,7922).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "Malvarma Akvo", + doorside = "R", +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1980,41,8381).lua b/il_timetable/nodes/(1980,41,8381).lua new file mode 100644 index 0000000..bad022d --- /dev/null +++ b/il_timetable/nodes/(1980,41,8381).lua @@ -0,0 +1,5 @@ +F.ttp_stop({ + stn = "Azena Transirejo", + doorside = "R", + only_lines = {CFE=true} +}) \ No newline at end of file diff --git a/il_timetable/nodes/(1980,41,8395).lua b/il_timetable/nodes/(1980,41,8395).lua new file mode 100644 index 0000000..c763b43 --- /dev/null +++ b/il_timetable/nodes/(1980,41,8395).lua @@ -0,0 +1,10 @@ +F.ttp_begin({ + stn = "Azena Transirejo", -- station name + tt = "NRG_W", -- timetable ID + depint = "05;00", --departure slot interval + depoff = "00;30", --departure slot offset + doorside = "L", + reverse = true, + only_lines = {["CFE-NRG"] = true}, + force_tt_reset = false, -- force reset of travel times for this timetable +}) \ No newline at end of file diff --git a/il_timetable/nodes/(2648,13,4352).lua b/il_timetable/nodes/(2648,13,4352).lua new file mode 100644 index 0000000..565febb --- /dev/null +++ b/il_timetable/nodes/(2648,13,4352).lua @@ -0,0 +1,4 @@ +F.ttp_stop({ + stn = "GRUB Valley (GVMER)", + doorside = "R" +}) \ No newline at end of file diff --git a/il_timetable/nodes/(286,4,206).lua b/il_timetable/nodes/(286,4,206).lua new file mode 100644 index 0000000..8713687 --- /dev/null +++ b/il_timetable/nodes/(286,4,206).lua @@ -0,0 +1,27 @@ +if event.train then +st_name = "NYE Square" +flip = not flip +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) +if flip then + atc_set_text_outside("4 - Showroom") + digiline_send("monitor", "4 Showroom "..rwt.to_string(next_dep_time, true)) + set_rc("SH") +else + digiline_send("monitor", "4 Ice Mountain "..rwt.to_string(next_dep_time, true)) + atc_set_text_outside("4 - Ice Mountain") + set_rc("IM") +end + atc_set_text_inside(st_name.."\nDeparture: "..rwt.to_string(next_dep_time, true)) + atc_send("B0 W O"..doors) + schedule(next_dep_time, "depart") + elseif event.schedule then + atc_send("OCD1SM") + digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true)) + atc_set_text_inside("") + depart = true + end diff --git a/il_timetable/nodes/(767,10,3484).lua b/il_timetable/nodes/(767,10,3484).lua new file mode 100644 index 0000000..1b4f884 --- /dev/null +++ b/il_timetable/nodes/(767,10,3484).lua @@ -0,0 +1,10 @@ +F.ttp_begin({ + stn = "Stopsleyhood Town Hall", -- station name + tt = "NX_S", -- timetable ID + depint = "05;00", --departure slot interval + depoff = "00;00", --departure slot offset + doorside = "L", + reverse = false, + only_lines = { XN = true }, + force_tt_reset = false, +}) diff --git a/il_timetable/nodes/(790,8,-109).lua b/il_timetable/nodes/(790,8,-109).lua new file mode 100644 index 0000000..78cf1f7 --- /dev/null +++ b/il_timetable/nodes/(790,8,-109).lua @@ -0,0 +1,5 @@ +-- d_int: Departure every n seconds (epoch modulo) +-- d_off: Departure time offset +-- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off) +atc_set_text_outside("Line 1 - Palm Bay") +F.stop_sd_sched("Szymon's Dam Regional", "L", "RSM", 10, 120, 0) \ No newline at end of file diff --git a/il_timetable/nodes/(941,18,-571).lua b/il_timetable/nodes/(941,18,-571).lua new file mode 100644 index 0000000..38f1073 --- /dev/null +++ b/il_timetable/nodes/(941,18,-571).lua @@ -0,0 +1,5 @@ +atc_set_text_outside("Line 1 - Palm Bay") +-- d_int: Departure every n seconds (epoch modulo) +-- d_off: Departure time offset +-- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off) +F.stop_sd_sched("Windy Mountains", "R", "RSM", 10, 240, 60) \ No newline at end of file diff --git a/il_timetable/nodes/(957,14,1047).lua b/il_timetable/nodes/(957,14,1047).lua index 74760fd..d28a823 100644 --- a/il_timetable/nodes/(957,14,1047).lua +++ b/il_timetable/nodes/(957,14,1047).lua @@ -2,6 +2,10 @@ -- d_off: Departure time offset -- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off) F.stop_sd_sched("Ehlodex", "R", "SM", 10, 60, 0) + +if event.train then + F.timetake_end("E1-Psh-Ehl") +end if depart then - setstate("Ehl6ARSPreventer", "st") + F.timetake_start("E1-Ehl-Spn") end \ No newline at end of file diff --git a/il_timetable/nodes/(960,14,1067).lua b/il_timetable/nodes/(960,14,1067).lua new file mode 100644 index 0000000..43e2d7d --- /dev/null +++ b/il_timetable/nodes/(960,14,1067).lua @@ -0,0 +1,3 @@ +if event.train then +F.timetake_start("E1-Ehl-Psh") +end \ No newline at end of file diff --git a/il_timetable/nodes/(972,14,1053).lua b/il_timetable/nodes/(972,14,1053).lua index fde413c..c316b90 100644 --- a/il_timetable/nodes/(972,14,1053).lua +++ b/il_timetable/nodes/(972,14,1053).lua @@ -1,4 +1,7 @@ -- d_int: Departure every n seconds (epoch modulo) -- d_off: Departure time offset -- function F.stop_sd(st_name, doors, departcommand, minstoptime, d_int, d_off) -F.stop_sd_sched("Ehlodex", "R", "RSM", 10, 240, 75) \ No newline at end of file +F.stop_sd_sched("Ehlodex", "R", "RSM", 10, 240, 65) +if event.train then +atc_set_text_outside("S12 - Spawn Main Station\nvia Schwarzschild Street, Anju Crossing") +end \ No newline at end of file -- cgit v1.2.3 class="hl opt">; class MapBlock; class NodeMetadata; class IGameDef; class IRollbackManager; class EmergeManager; class ServerEnvironment; struct BlockMakeData; struct MapgenParams; /* MapEditEvent */ #define MAPTYPE_BASE 0 #define MAPTYPE_SERVER 1 #define MAPTYPE_CLIENT 2 enum MapEditEventType{ // Node added (changed from air or something else to something) MEET_ADDNODE, // Node removed (changed to air) MEET_REMOVENODE, // Node swapped (changed without metadata change) MEET_SWAPNODE, // Node metadata of block changed (not knowing which node exactly) // p stores block coordinate MEET_BLOCK_NODE_METADATA_CHANGED, // Anything else (modified_blocks are set unsent) MEET_OTHER }; struct MapEditEvent { MapEditEventType type; v3s16 p; MapNode n; std::set<v3s16> modified_blocks; u16 already_known_by_peer; MapEditEvent(): type(MEET_OTHER), n(CONTENT_AIR), already_known_by_peer(0) { } MapEditEvent * clone() { MapEditEvent *event = new MapEditEvent(); event->type = type; event->p = p; event->n = n; event->modified_blocks = modified_blocks; return event; } VoxelArea getArea() { switch(type){ case MEET_ADDNODE: return VoxelArea(p); case MEET_REMOVENODE: return VoxelArea(p); case MEET_SWAPNODE: return VoxelArea(p); case MEET_BLOCK_NODE_METADATA_CHANGED: { v3s16 np1 = p*MAP_BLOCKSIZE; v3s16 np2 = np1 + v3s16(1,1,1)*MAP_BLOCKSIZE - v3s16(1,1,1); return VoxelArea(np1, np2); } case MEET_OTHER: { VoxelArea a; for(std::set<v3s16>::iterator i = modified_blocks.begin(); i != modified_blocks.end(); ++i) { v3s16 p = *i; v3s16 np1 = p*MAP_BLOCKSIZE; v3s16 np2 = np1 + v3s16(1,1,1)*MAP_BLOCKSIZE - v3s16(1,1,1); a.addPoint(np1); a.addPoint(np2); } return a; } } return VoxelArea(); } }; class MapEventReceiver { public: // event shall be deleted by caller after the call. virtual void onMapEditEvent(MapEditEvent *event) = 0; }; class Map /*: public NodeContainer*/ { public: Map(std::ostream &dout, IGameDef *gamedef); virtual ~Map(); /*virtual u16 nodeContainerId() const { return NODECONTAINER_ID_MAP; }*/ virtual s32 mapType() const { return MAPTYPE_BASE; } /* Drop (client) or delete (server) the map. */ virtual void drop() { delete this; } void addEventReceiver(MapEventReceiver *event_receiver); void removeEventReceiver(MapEventReceiver *event_receiver); // event shall be deleted by caller after the call. void dispatchEvent(MapEditEvent *event); // On failure returns NULL MapSector * getSectorNoGenerateNoExNoLock(v2s16 p2d); // Same as the above (there exists no lock anymore) MapSector * getSectorNoGenerateNoEx(v2s16 p2d); // On failure throws InvalidPositionException MapSector * getSectorNoGenerate(v2s16 p2d); // Gets an existing sector or creates an empty one //MapSector * getSectorCreate(v2s16 p2d); /* This is overloaded by ClientMap and ServerMap to allow their differing fetch methods. */ virtual MapSector * emergeSector(v2s16 p){ return NULL; } virtual MapSector * emergeSector(v2s16 p, std::map<v3s16, MapBlock*> &changed_blocks){ return NULL; } // Returns InvalidPositionException if not found MapBlock * getBlockNoCreate(v3s16 p); // Returns NULL if not found MapBlock * getBlockNoCreateNoEx(v3s16 p); /* Server overrides */ virtual MapBlock * emergeBlock(v3s16 p, bool create_blank=true) { return getBlockNoCreateNoEx(p); } // Returns InvalidPositionException if not found bool isNodeUnderground(v3s16 p); bool isValidPosition(v3s16 p); // throws InvalidPositionException if not found void setNode(v3s16 p, MapNode & n); // Returns a CONTENT_IGNORE node if not found // If is_valid_position is not NULL then this will be set to true if the // position is valid, otherwise false MapNode getNodeNoEx(v3s16 p, bool *is_valid_position = NULL); void unspreadLight(enum LightBank bank, std::map<v3s16, u8> & from_nodes, std::set<v3s16> & light_sources, std::map<v3s16, MapBlock*> & modified_blocks); void unLightNeighbors(enum LightBank bank, v3s16 pos, u8 lightwas, std::set<v3s16> & light_sources, std::map<v3s16, MapBlock*> & modified_blocks); void spreadLight(enum LightBank bank, std::set<v3s16> & from_nodes, std::map<v3s16, MapBlock*> & modified_blocks); void lightNeighbors(enum LightBank bank, v3s16 pos, std::map<v3s16, MapBlock*> & modified_blocks); v3s16 getBrightestNeighbour(enum LightBank bank, v3s16 p); s16 propagateSunlight(v3s16 start, std::map<v3s16, MapBlock*> & modified_blocks); void updateLighting(enum LightBank bank, std::map<v3s16, MapBlock*> & a_blocks, std::map<v3s16, MapBlock*> & modified_blocks); void updateLighting(std::map<v3s16, MapBlock*> & a_blocks, std::map<v3s16, MapBlock*> & modified_blocks); /* These handle lighting but not faces. */ void addNodeAndUpdate(v3s16 p, MapNode n, std::map<v3s16, MapBlock*> &modified_blocks, bool remove_metadata = true); void removeNodeAndUpdate(v3s16 p, std::map<v3s16, MapBlock*> &modified_blocks); /* Wrappers for the latter ones. These emit events. Return true if succeeded, false if not. */ bool addNodeWithEvent(v3s16 p, MapNode n, bool remove_metadata = true); bool removeNodeWithEvent(v3s16 p); /* Takes the blocks at the edges into account */ bool getDayNightDiff(v3s16 blockpos); //core::aabbox3d<s16> getDisplayedBlockArea(); //bool updateChangedVisibleArea(); // Call these before and after saving of many blocks virtual void beginSave() { return; } virtual void endSave() { return; } virtual void save(ModifiedState save_level) { FATAL_ERROR("FIXME"); } // Server implements these. // Client leaves them as no-op. virtual bool saveBlock(MapBlock *block) { return false; } virtual bool deleteBlock(v3s16 blockpos) { return false; } /* Updates usage timers and unloads unused blocks and sectors. Saves modified blocks before unloading on MAPTYPE_SERVER. */ void timerUpdate(float dtime, float unload_timeout, std::vector<v3s16> *unloaded_blocks=NULL); /* Unloads all blocks with a zero refCount(). Saves modified blocks before unloading on MAPTYPE_SERVER. */ void unloadUnreferencedBlocks(std::vector<v3s16> *unloaded_blocks=NULL); // Deletes sectors and their blocks from memory // Takes cache into account // If deleted sector is in sector cache, clears cache void deleteSectors(std::vector<v2s16> &list); // For debug printing. Prints "Map: ", "ServerMap: " or "ClientMap: " virtual void PrintInfo(std::ostream &out); void transformLiquids(std::map<v3s16, MapBlock*> & modified_blocks); /* Node metadata These are basically coordinate wrappers to MapBlock */ NodeMetadata* getNodeMetadata(v3s16 p); /** * Sets metadata for a node. * This method sets the metadata for a given node. * On success, it returns @c true and the object pointed to * by @p meta is then managed by the system and should * not be deleted by the caller. * * In case of failure, the method returns @c false and the * caller is still responsible for deleting the object! * * @param p node coordinates * @param meta pointer to @c NodeMetadata object * @return @c true on success, false on failure */ bool setNodeMetadata(v3s16 p, NodeMetadata *meta); void removeNodeMetadata(v3s16 p); /* Node Timers These are basically coordinate wrappers to MapBlock */ NodeTimer getNodeTimer(v3s16 p); void setNodeTimer(v3s16 p, NodeTimer t); void removeNodeTimer(v3s16 p); /* Misc. */ std::map<v2s16, MapSector*> *getSectorsPtr(){return &m_sectors;} /* Variables */ void transforming_liquid_add(v3s16 p); s32 transforming_liquid_size(); protected: friend class LuaVoxelManip; std::ostream &m_dout; // A bit deprecated, could be removed IGameDef *m_gamedef; std::set<MapEventReceiver*> m_event_receivers; std::map<v2s16, MapSector*> m_sectors; // Be sure to set this to NULL when the cached sector is deleted MapSector *m_sector_cache; v2s16 m_sector_cache_p; // Queued transforming water nodes UniqueQueue<v3s16> m_transforming_liquid; private: f32 m_transforming_liquid_loop_count_multiplier; u32 m_unprocessed_count; u32 m_inc_trending_up_start_time; // milliseconds bool m_queue_size_timer_started; }; /* ServerMap This is the only map class that is able to generate map. */ class ServerMap : public Map { public: /* savedir: directory to which map data should be saved */ ServerMap(std::string savedir, IGameDef *gamedef, EmergeManager *emerge); ~ServerMap(); s32 mapType() const { return MAPTYPE_SERVER; } /* Get a sector from somewhere. - Check memory - Check disk (doesn't load blocks) - Create blank one */ ServerMapSector * createSector(v2s16 p); /* Blocks are generated by using these and makeBlock(). */ bool initBlockMake(BlockMakeData *data, v3s16 blockpos); void finishBlockMake(BlockMakeData *data, std::map<v3s16, MapBlock*> &changed_blocks); /* Get a block from somewhere. - Memory - Create blank */ MapBlock * createBlock(v3s16 p); /* Forcefully get a block from somewhere. - Memory - Load from disk - Create blank filled with CONTENT_IGNORE */ MapBlock *emergeBlock(v3s16 p, bool create_blank=true); /* Try to get a block. If it does not exist in memory, add it to the emerge queue. - Memory - Emerge Queue (deferred disk or generate) */ MapBlock *getBlockOrEmerge(v3s16 p3d); // Carries out any initialization necessary before block is sent void prepareBlock(MapBlock *block); // Helper for placing objects on ground level s16 findGroundLevel(v2s16 p2d); /* Misc. helper functions for fiddling with directory and file names when saving */ void createDirs(std::string path); // returns something like "map/sectors/xxxxxxxx" std::string getSectorDir(v2s16 pos, int layout = 2); // dirname: final directory name v2s16 getSectorPos(std::string dirname); v3s16 getBlockPos(std::string sectordir, std::string blockfile); static std::string getBlockFilename(v3s16 p); /* Database functions */ static Database *createDatabase(const std::string &name, const std::string &savedir, Settings &conf); // Verify we can read/write to the database void verifyDatabase(); // Returns true if the database file does not exist bool loadFromFolders(); // Call these before and after saving of blocks void beginSave(); void endSave(); void save(ModifiedState save_level); void listAllLoadableBlocks(std::vector<v3s16> &dst); void listAllLoadedBlocks(std::vector<v3s16> &dst); // Saves map seed and possibly other stuff void saveMapMeta(); void loadMapMeta(); /*void saveChunkMeta(); void loadChunkMeta();*/ // The sector mutex should be locked when calling most of these // This only saves sector-specific data such as the heightmap // (no MapBlocks) // DEPRECATED? Sectors have no metadata anymore. void saveSectorMeta(ServerMapSector *sector); MapSector* loadSectorMeta(std::string dirname, bool save_after_load); bool loadSectorMeta(v2s16 p2d); // Full load of a sector including all blocks. // returns true on success, false on failure. bool loadSectorFull(v2s16 p2d); // If sector is not found in memory, try to load it from disk. // Returns true if sector now resides in memory //bool deFlushSector(v2s16 p2d); bool saveBlock(MapBlock *block); static bool saveBlock(MapBlock *block, Database *db); // This will generate a sector with getSector if not found. void loadBlock(std::string sectordir, std::string blockfile, MapSector *sector, bool save_after_load=false); MapBlock* loadBlock(v3s16 p); // Database version void loadBlock(std::string *blob, v3s16 p3d, MapSector *sector, bool save_after_load=false); bool deleteBlock(v3s16 blockpos); void updateVManip(v3s16 pos); // For debug printing virtual void PrintInfo(std::ostream &out); bool isSavingEnabled(){ return m_map_saving_enabled; } u64 getSeed(); s16 getWaterLevel(); private: // Emerge manager EmergeManager *m_emerge; std::string m_savedir; bool m_map_saving_enabled; #if 0 // Chunk size in MapSectors // If 0, chunks are disabled. s16 m_chunksize; // Chunks core::map<v2s16, MapChunk*> m_chunks; #endif /* Metadata is re-written on disk only if this is true. This is reset to false when written on disk. */ bool m_map_metadata_changed; Database *dbase; }; #define VMANIP_BLOCK_DATA_INEXIST 1 #define VMANIP_BLOCK_CONTAINS_CIGNORE 2 class MMVManip : public VoxelManipulator { public: MMVManip(Map *map); virtual ~MMVManip(); virtual void clear() { VoxelManipulator::clear(); m_loaded_blocks.clear(); } void setMap(Map *map) {m_map = map;} void initialEmerge(v3s16 blockpos_min, v3s16 blockpos_max, bool load_if_inexistent = true); // This is much faster with big chunks of generated data void blitBackAll(std::map<v3s16, MapBlock*> * modified_blocks, bool overwrite_generated = true); bool m_is_dirty; protected: bool m_create_area; Map *m_map; /* key = blockpos value = flags describing the block */ std::map<v3s16, u8> m_loaded_blocks; }; #endif