summaryrefslogtreecommitdiff
path: root/il_timetable
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
commit5c7f77725394d47ce0b907aabf885ea207a507bd (patch)
treea1ff9c67ef8f225a259e4c6f4c163a45c58bb870 /il_timetable
parentb435d1b1b26db6f7c4f3eb589ecf1ed3bb79b57e (diff)
downloadluaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.gz
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.bz2
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.zip
State at 2024-10-15
Diffstat (limited to 'il_timetable')
-rw-r--r--il_timetable/init_code.lua93
-rw-r--r--il_timetable/nodes/(-1109,5,-3256).lua4
-rw-r--r--il_timetable/nodes/(-1725,-1,-4420).lua3
-rw-r--r--il_timetable/nodes/(-1735,-1,-4398).lua1
-rw-r--r--il_timetable/nodes/(-640,14,-426).lua1
-rw-r--r--il_timetable/nodes/(-699,1,-426).lua4
-rw-r--r--il_timetable/nodes/(-863,14,-492).lua2
-rw-r--r--il_timetable/nodes/(1074,14,3409).lua4
-rw-r--r--il_timetable/nodes/(1191,16,6141).lua10
-rw-r--r--il_timetable/nodes/(1199,18,6127).lua2
-rw-r--r--il_timetable/nodes/(152,11,892).lua1
-rw-r--r--il_timetable/nodes/(1531,24,2649).lua7
-rw-r--r--il_timetable/nodes/(1531,24,2660).lua7
-rw-r--r--il_timetable/nodes/(158,16,871).lua8
-rw-r--r--il_timetable/nodes/(159,11,846).lua46
-rw-r--r--il_timetable/nodes/(1633,9,4628).lua4
-rw-r--r--il_timetable/nodes/(1722,30,2933).lua9
-rw-r--r--il_timetable/nodes/(1722,30,2937).lua6
-rw-r--r--il_timetable/nodes/(1725,28,2915).lua2
-rw-r--r--il_timetable/nodes/(1728,28,3000).lua1
-rw-r--r--il_timetable/nodes/(1734,26,2929).lua11
-rw-r--r--il_timetable/nodes/(1739,28,2910).lua9
-rw-r--r--il_timetable/nodes/(1806,13,-217).lua3
-rw-r--r--il_timetable/nodes/(1936,7,9131).lua2
-rw-r--r--il_timetable/nodes/(2253,25,4412).lua4
-rw-r--r--il_timetable/nodes/(2514,7,5027).lua10
-rw-r--r--il_timetable/nodes/(2635,13,4369).lua1
-rw-r--r--il_timetable/nodes/(2655,15,4359).lua3
-rw-r--r--il_timetable/nodes/(2716,8,4326).lua7
-rw-r--r--il_timetable/nodes/(2716,8,4338).lua7
-rw-r--r--il_timetable/nodes/(2739,6,4330).lua4
-rw-r--r--il_timetable/nodes/(288,4,206).lua28
-rw-r--r--il_timetable/nodes/(3974,7,4046).lua4
-rw-r--r--il_timetable/nodes/(4100,4,5242).lua4
-rw-r--r--il_timetable/nodes/(4393,-2,1947).lua10
-rw-r--r--il_timetable/nodes/(4587,7,2174).lua10
-rw-r--r--il_timetable/nodes/(4622,12,6795).lua3
-rw-r--r--il_timetable/nodes/(788,8,-109).lua5
-rw-r--r--il_timetable/nodes/(957,14,1047).lua1
-rw-r--r--il_timetable/nodes/(981,22,1053).lua11
-rw-r--r--il_timetable/nodes/(982,22,1053).lua6
-rw-r--r--il_timetable/nodes/(999,16,1034).lua7
42 files changed, 296 insertions, 69 deletions
diff --git a/il_timetable/init_code.lua b/il_timetable/init_code.lua
index 70d25e4..322b0a4 100644
--- a/il_timetable/init_code.lua
+++ b/il_timetable/init_code.lua
@@ -147,8 +147,11 @@ S.ttt[train_id] = { - trains
]]
local STOP_TIME = 10
+local STOPCMD="B0WO"
local DEPCMD="A1OCD1SM"
local RDEPCMD="RA1OCD1SM"
+local DYNAMIC_THR = 10
+local DYNAMIC_EN = false
if not S.ttp then S.ttp = {} end
if not S.ttt then S.ttt = {} end
@@ -161,7 +164,7 @@ F.ttp={
CFE_S = {
outside_text = "[CFE] Origin\nvia Crystal Farms, Personhood West, Ehlodex",
inside_line_desc = "CFE to Origin",
- stn_display = "CFE Origin ",
+ stn_display = "CFE Origin North",
},
NRG_E = {
outside_text = "[NRG] Azena Transirejo",
@@ -203,35 +206,35 @@ F.ttp={
inside_line_desc = "S12 to Silver Coast",
stn_display = "S12 Silver Coast",
},
- E84_N = {
- outside_text = "[E84] Namespace Mountains",
- inside_line_desc = "E84 to Namespace Mountains",
- stn_display = "E84 Namespace M.",
- },
- E84_S = {
- outside_text = "[E84] Personhood Main",
- inside_line_desc = "E84 to Personhood Main",
- stn_display = "E84 Personhood ",
- },
E85_N = {
- outside_text = "[E85] Namespace Mountains",
- inside_line_desc = "E85 to Namespace Mountains",
- stn_display = "E85 Namespace M.",
+ outside_text = "[BAK] Namespace Mountains",
+ inside_line_desc = "Baka Express (BAK) to Namespace Mountains",
+ stn_display = "BAK Namespace M.",
},
E85_S = {
- outside_text = "[E85] BRIC / Morija North",
- inside_line_desc = "E85 to BRIC / Morija North",
- stn_display = "E85 BRIC/Morija ",
+ outside_text = "[BAK] Morija North",
+ inside_line_desc = "Baka Express (BAK) to Morija North",
+ stn_display = "BAK Morija North",
},
E11_E = {
- outside_text = "[E11] Oasis",
- inside_line_desc = "E11 to Oasis",
- stn_display = "E11 Oasis ",
+ outside_text = "[OEX] Oasis",
+ inside_line_desc = "OEX to Oasis",
+ stn_display = "OEX Oasis ",
},
E11_W = {
- outside_text = "[E11] Personhood",
- inside_line_desc = "E11 to Personhood",
- stn_display = "E11 Personhood ",
+ outside_text = "[OEX] Personhood",
+ inside_line_desc = "OEX to Personhood",
+ stn_display = "OEX Personhood ",
+ },
+ E16_E = {
+ outside_text = "[E16] Cat-o-Land (By The Way)\nC&C Rail",
+ inside_line_desc = "E16 to Cat-o-Land (By The Way)",
+ stn_display = "E16 Cat-o-Land ",
+ },
+ E16_W = {
+ outside_text = "[E16] Personhood\nC&C Rail",
+ inside_line_desc = "E16 to Personhood",
+ stn_display = "E16 Personhood ",
},
}
@@ -255,7 +258,11 @@ function F.ttp_begin(p)
__approach_callback_mode = 1
if not F.ttp[p.tt] then error("No TT instance "..p.tt) end
- if not atc_id or not atc_arrow then return end
+ if not atc_id then
+ print(p.stn,"missing train!",event)
+ return
+ end
+ if not atc_arrow then return end
if p.only_lines and not p.only_lines[get_line()] then return end
if not S.ttp[p.tt] then S.ttp[p.tt] = {} end
local tti = S.ttp[p.tt]
@@ -268,7 +275,7 @@ function F.ttp_begin(p)
end
if event.train then
-- train arrived, planning departure
- atc_send("B0 W O"..p.doorside)
+ atc_send(STOPCMD..p.doorside)
local time_now = rwt.now()
-- Train might have had another TT before, do the cleanup from ttp_end here.
@@ -339,7 +346,10 @@ F.ttp_stop({
]]function F.ttp_stop(p)
-- set my approach callback mode
__approach_callback_mode = 1
- if not atc_id or not atc_arrow then return end
+ if not atc_id then
+ print(p.stn,"missing train!",event)
+ return
+ end
if not S.ttt[atc_id] then return end
if p.only_lines and not p.only_lines[get_line()] then return end
local trn = S.ttt[atc_id]
@@ -356,9 +366,17 @@ F.ttp_stop({
atc_set_lzb_tsr(2)
atc_set_text_inside("Next stop: "..p.stn)
end
+
+--!-- disaster recovery --!--
+-- if event.approach and event.has_entered then
+-- print(atc_id,p.stn,"Disaster Recovery...")
+-- atc_send(DEPCMD)
+-- end
+
+
if event.train then
-- train arrived, planning departure
- atc_send("B0 W O"..p.doorside)
+ atc_send(STOPCMD..p.doorside)
local time_now = rwt.now()
-- update our location and determine desired and planned departure
--L200
@@ -374,6 +392,17 @@ F.ttp_stop({
elseif tti.travel_times[p.stn] then
trn.desired_dep = rwt.add(trn.initial_dep or 0,
tti.travel_times[p.stn] + STOP_TIME)
+ -- dyn travel time
+ if DYNAMIC_EN then
+ local ttpd = rwt.diff(next_dep_time, trn.desired_dep)
+ if ttpd > DYNAMIC_THR then
+ local new_trav = rwt.diff(trn.initial_dep, time_now) + DYNAMIC_THR
+ print(atc_id,tt,"arrived at",p.stn,ttpd,"s early, TT",tti.travel_times[p.stn],"->",new_trav)
+ tti.travel_times[p.stn] = new_trav
+ trn.desired_dep = rwt.add(trn.initial_dep or 0,
+ new_trav + STOP_TIME)
+ end
+ end
end
if trn.desired_dep then
@@ -435,11 +464,11 @@ function F.ttp_info_times(tt, starttime)
if tti.recording_train then
p[#p+1] = ("recording "..tti.recording_train)
end
- p[#p+1] = ("Di "..rwt.to_string(starttime, true).." "..tti.station_order[1])
+ p[#p+1] = ("Di "..rwt.to_string(starttime, false).." "..tti.station_order[1])
for i=2,#tti.station_order do
local ap = rwt.add(starttime, tti.travel_times[tti.station_order[i]])
p[#p+1] = ("Ap "..rwt.to_string(ap, true)..
- " Dp "..rwt.to_string(rwt.add(ap, STOP_TIME), true)..
+ " Dp "..rwt.to_string(rwt.add(ap, STOP_TIME), false)..
" "..tti.station_order[i])
end
return p
@@ -454,13 +483,13 @@ function F.ttp_info_trains(tt, starttime)
if trn.actual_dep then
p[#p+1] = ("Trn "..tid..
" after "..trn.location..
- " Dd "..rwt.to_string(trn.desired_dep or 0, true)..
- " Da "..rwt.to_string(trn.actual_dep, true)..
+ " Dd "..rwt.to_string(trn.desired_dep or 0, false)..
+ " Da "..rwt.to_string(trn.actual_dep, false)..
" Delay "..rwt.to_string(trn.last_delay or "59;59"))
else
p[#p+1] = ("Trn "..tid..
" at "..trn.location..
- " Dd "..rwt.to_string(trn.desired_dep or 0, true)..
+ " Dd "..rwt.to_string(trn.desired_dep or 0, false)..
" Delay "..rwt.to_string(trn.last_delay or "59;59"))
end
end
diff --git a/il_timetable/nodes/(-1109,5,-3256).lua b/il_timetable/nodes/(-1109,5,-3256).lua
new file mode 100644
index 0000000..98df9b1
--- /dev/null
+++ b/il_timetable/nodes/(-1109,5,-3256).lua
@@ -0,0 +1,4 @@
+F.ttp_stop({
+ stn = "Padrana Peninsula",
+ doorside = "R",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(-1725,-1,-4420).lua b/il_timetable/nodes/(-1725,-1,-4420).lua
new file mode 100644
index 0000000..2a9ff56
--- /dev/null
+++ b/il_timetable/nodes/(-1725,-1,-4420).lua
@@ -0,0 +1,3 @@
+if event.train and get_line() == "E1" then
+ atc_send("B1")
+end \ No newline at end of file
diff --git a/il_timetable/nodes/(-1735,-1,-4398).lua b/il_timetable/nodes/(-1735,-1,-4398).lua
new file mode 100644
index 0000000..2e1f620
--- /dev/null
+++ b/il_timetable/nodes/(-1735,-1,-4398).lua
@@ -0,0 +1 @@
+-- You forgot to change the env from ers so I did it for you. you had it as ers. It was blank as well. - erstazi \ No newline at end of file
diff --git a/il_timetable/nodes/(-640,14,-426).lua b/il_timetable/nodes/(-640,14,-426).lua
index a67254f..72669e1 100644
--- a/il_timetable/nodes/(-640,14,-426).lua
+++ b/il_timetable/nodes/(-640,14,-426).lua
@@ -1,5 +1,4 @@
F.ttp_stop({
stn = "Spawn Main",
doorside = "L",
- end_of_tt = {CFE_S=true,NX_S=true,E1_S=true},
}) \ No newline at end of file
diff --git a/il_timetable/nodes/(-699,1,-426).lua b/il_timetable/nodes/(-699,1,-426).lua
new file mode 100644
index 0000000..908ee47
--- /dev/null
+++ b/il_timetable/nodes/(-699,1,-426).lua
@@ -0,0 +1,4 @@
+if get_line()=="KVE" then
+ set_rc("KVE_E")
+ atc_set_text_outside("[KVE] Kangasvarkaa Express\n-> KANGASVARKAA\nvia Sameary, Morija")
+end \ No newline at end of file
diff --git a/il_timetable/nodes/(-863,14,-492).lua b/il_timetable/nodes/(-863,14,-492).lua
index d86cc4c..9e9453c 100644
--- a/il_timetable/nodes/(-863,14,-492).lua
+++ b/il_timetable/nodes/(-863,14,-492).lua
@@ -3,7 +3,7 @@ if flip then
atc_set_text_outside("E3 - BigFishCity\n via Trisiston")
set_rc("E3_Sra")
else
- atc_set_text_outside("E3 - Shanielle Inlet\n via Trisiston")
+ atc_set_text_outside("E3 - Shanielle Park\n via Trisiston, Shn. Inlet")
set_rc("E3_Edf")
end
flip = not flip \ No newline at end of file
diff --git a/il_timetable/nodes/(1074,14,3409).lua b/il_timetable/nodes/(1074,14,3409).lua
new file mode 100644
index 0000000..c276192
--- /dev/null
+++ b/il_timetable/nodes/(1074,14,3409).lua
@@ -0,0 +1,4 @@
+F.ttp_stop({
+ stn = "Manaugh Memorial",
+ doorside = "R",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1191,16,6141).lua b/il_timetable/nodes/(1191,16,6141).lua
index 17e1b2f..8a8c0f9 100644
--- a/il_timetable/nodes/(1191,16,6141).lua
+++ b/il_timetable/nodes/(1191,16,6141).lua
@@ -1,10 +1,10 @@
F.ttp_begin({
stn = "Namespace Mountains", -- station name
- tt = "E84_S", -- timetable ID
- depint = "10;00", --departure slot interval
- depoff = "07;30", --departure slot offset
+ tt = "E85_S", -- timetable ID
+ depint = "05;00", --departure slot interval
+ depoff = "02;30", --departure slot offset
doorside = "L",
reverse = true,
- only_lines = { E84 = true },
+ only_lines = { E85 = true },
force_tt_reset = false,
-})
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1199,18,6127).lua b/il_timetable/nodes/(1199,18,6127).lua
index 377e020..47bed36 100644
--- a/il_timetable/nodes/(1199,18,6127).lua
+++ b/il_timetable/nodes/(1199,18,6127).lua
@@ -1,5 +1,5 @@
F.ttp_station_display({
- lines = {"E84_N", "E84_S", "E85_N", "E85_S", },
+ lines = {"E85_N", "E85_S", },
departure = {},
station = "Namespace Mountains",
title = "Namespace Mtns",
diff --git a/il_timetable/nodes/(152,11,892).lua b/il_timetable/nodes/(152,11,892).lua
index a00ccff..c96a8e5 100644
--- a/il_timetable/nodes/(152,11,892).lua
+++ b/il_timetable/nodes/(152,11,892).lua
@@ -2,4 +2,5 @@ F.ttp_stop({
stn = "Schwarzschild Street",
doorside = "L",
only_lines={E1=true},
+ no_disable_ars = true,
}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1531,24,2649).lua b/il_timetable/nodes/(1531,24,2649).lua
new file mode 100644
index 0000000..b35ef0a
--- /dev/null
+++ b/il_timetable/nodes/(1531,24,2649).lua
@@ -0,0 +1,7 @@
+F.ttp_station_display({
+ lines = {"E1_N"},
+ departure = {},
+ station = "Personhood South",
+ title = "Personhood South",
+ display1 = "d1",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1531,24,2660).lua b/il_timetable/nodes/(1531,24,2660).lua
new file mode 100644
index 0000000..d24be5f
--- /dev/null
+++ b/il_timetable/nodes/(1531,24,2660).lua
@@ -0,0 +1,7 @@
+F.ttp_station_display({
+ lines = {"E1_S"},
+ departure = {},
+ station = "Personhood South",
+ title = "Personhood South",
+ display1 = "d1",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(158,16,871).lua b/il_timetable/nodes/(158,16,871).lua
new file mode 100644
index 0000000..dc89043
--- /dev/null
+++ b/il_timetable/nodes/(158,16,871).lua
@@ -0,0 +1,8 @@
+F.ttp_station_display({
+ lines = {"E1_N", "E1_S", "S12_N", "S12_S"},
+ departure = {},
+ station = "Schwarzschild Street",
+ title = "Schwarzschild St.",
+ display1 = "d1",
+ display2 = "d2",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(159,11,846).lua b/il_timetable/nodes/(159,11,846).lua
index 49e1131..6932523 100644
--- a/il_timetable/nodes/(159,11,846).lua
+++ b/il_timetable/nodes/(159,11,846).lua
@@ -1,28 +1,28 @@
if event.train then
-st_name = "Schwarzschild Street"
-set_line("4")
-flip = not flip
+ 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")
+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
- 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/(1633,9,4628).lua b/il_timetable/nodes/(1633,9,4628).lua
new file mode 100644
index 0000000..96203b7
--- /dev/null
+++ b/il_timetable/nodes/(1633,9,4628).lua
@@ -0,0 +1,4 @@
+F.ttp_stop({
+ stn = "Intercal",
+ doorside = "L",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1722,30,2933).lua b/il_timetable/nodes/(1722,30,2933).lua
new file mode 100644
index 0000000..e5f5896
--- /dev/null
+++ b/il_timetable/nodes/(1722,30,2933).lua
@@ -0,0 +1,9 @@
+F.ttp_station_display({
+ lines = {"E1_N", "E11_W", "E16_W"},
+ departure = {},
+ station = "Personhood Main",
+ title = "Arrivals",
+ interval = 15,
+ display1 = "d1",
+ --display2 = "d2",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1722,30,2937).lua b/il_timetable/nodes/(1722,30,2937).lua
index 2d9fed2..560dfbe 100644
--- a/il_timetable/nodes/(1722,30,2937).lua
+++ b/il_timetable/nodes/(1722,30,2937).lua
@@ -1,9 +1,9 @@
F.ttp_station_display({
- lines = {"E1_N", "E1_S", "E84_N", "E84_S", "E11_W", "E11_E"},
+ lines = {"E1_S", "E11_E", "E16_E"},
departure = {},
station = "Personhood Main",
- title = "Personhood Main",
+ title = "Departures",
interval = 15,
display1 = "d1",
- display2 = "d2",
+ --display2 = "d2",
}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1725,28,2915).lua b/il_timetable/nodes/(1725,28,2915).lua
index d28bc16..3d97e94 100644
--- a/il_timetable/nodes/(1725,28,2915).lua
+++ b/il_timetable/nodes/(1725,28,2915).lua
@@ -1,5 +1,5 @@
F.ttp_station_display({
- lines = {"E1_N", "E1_S"},
+ lines = {"E1_N", "E1_S", "E11_W", "E11_E"},
departure = {},
station = "Personhood Main",
title = "Personhood Main",
diff --git a/il_timetable/nodes/(1728,28,3000).lua b/il_timetable/nodes/(1728,28,3000).lua
new file mode 100644
index 0000000..d7f7c78
--- /dev/null
+++ b/il_timetable/nodes/(1728,28,3000).lua
@@ -0,0 +1 @@
+S.ttt[atc_id] = nil \ No newline at end of file
diff --git a/il_timetable/nodes/(1734,26,2929).lua b/il_timetable/nodes/(1734,26,2929).lua
new file mode 100644
index 0000000..1d8f85b
--- /dev/null
+++ b/il_timetable/nodes/(1734,26,2929).lua
@@ -0,0 +1,11 @@
+-- mary4: leave this here
+F.ttp_begin({
+ stn = "Personhood Main", -- station name
+ tt = "E16_E", -- timetable ID
+ depint = "05;00", --departure slot interval
+ depoff = "02;30", --departure slot offset
+ doorside = "R",
+ reverse = false,
+ only_lines = { E16 = true },
+ force_tt_reset = false,
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1739,28,2910).lua b/il_timetable/nodes/(1739,28,2910).lua
new file mode 100644
index 0000000..ef59fd3
--- /dev/null
+++ b/il_timetable/nodes/(1739,28,2910).lua
@@ -0,0 +1,9 @@
+F.ttp_station_display({
+ lines = {"E16_W", "E16_E"},
+ departure = {},
+ station = "Personhood Main",
+ title = "Personhood Main",
+ interval = 15,
+ display1 = "d1",
+-- display2 = "d2",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(1806,13,-217).lua b/il_timetable/nodes/(1806,13,-217).lua
new file mode 100644
index 0000000..db11017
--- /dev/null
+++ b/il_timetable/nodes/(1806,13,-217).lua
@@ -0,0 +1,3 @@
+if get_line()=="KVE" then
+ set_rc("KVE_W")
+end \ No newline at end of file
diff --git a/il_timetable/nodes/(1936,7,9131).lua b/il_timetable/nodes/(1936,7,9131).lua
index cef8d24..ce4683f 100644
--- a/il_timetable/nodes/(1936,7,9131).lua
+++ b/il_timetable/nodes/(1936,7,9131).lua
@@ -8,4 +8,4 @@ F.ttp_begin({
only_lines = {['CFE'] = true},
force_tt_reset = false,
})
-F.stat("CFE") \ No newline at end of file
+F.stat("CFE", false) \ No newline at end of file
diff --git a/il_timetable/nodes/(2253,25,4412).lua b/il_timetable/nodes/(2253,25,4412).lua
new file mode 100644
index 0000000..35632c2
--- /dev/null
+++ b/il_timetable/nodes/(2253,25,4412).lua
@@ -0,0 +1,4 @@
+F.ttp_stop({
+ stn = "Hound's Wood",
+ doorside = "L",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(2514,7,5027).lua b/il_timetable/nodes/(2514,7,5027).lua
new file mode 100644
index 0000000..1ab4b5c
--- /dev/null
+++ b/il_timetable/nodes/(2514,7,5027).lua
@@ -0,0 +1,10 @@
+F.ttp_begin({
+ stn = "Overfish Beach", -- station name
+ tt = "E16_W", -- timetable ID
+ depint = "00;30", --departure slot interval
+ depoff = "00;00", --departure slot offset
+ doorside = "L",
+ reverse = false,
+ only_lines = { E16 = true },
+ force_tt_reset = false,
+})
diff --git a/il_timetable/nodes/(2635,13,4369).lua b/il_timetable/nodes/(2635,13,4369).lua
index 56e00a2..cf13114 100644
--- a/il_timetable/nodes/(2635,13,4369).lua
+++ b/il_timetable/nodes/(2635,13,4369).lua
@@ -1,4 +1,5 @@
F.ttp_stop({
stn = "Grub Valley (GVMER)",
doorside = "R",
+ end_of_tt = {E16_E = true},
}) \ No newline at end of file
diff --git a/il_timetable/nodes/(2655,15,4359).lua b/il_timetable/nodes/(2655,15,4359).lua
index b2ab890..b9732b0 100644
--- a/il_timetable/nodes/(2655,15,4359).lua
+++ b/il_timetable/nodes/(2655,15,4359).lua
@@ -1,7 +1,8 @@
F.ttp_station_display({
- lines = {"E84_N", "E84_S", "E85_N", "E85_S"},
+ lines = {"E85_N", "E85_S", "E16_E", "E16_W"},
departure = {},
station = "Grub Valley (GVMER)",
title = "Grub Valley",
display1 = "d1",
+ display2 = "d2",
}) \ No newline at end of file
diff --git a/il_timetable/nodes/(2716,8,4326).lua b/il_timetable/nodes/(2716,8,4326).lua
new file mode 100644
index 0000000..f364e84
--- /dev/null
+++ b/il_timetable/nodes/(2716,8,4326).lua
@@ -0,0 +1,7 @@
+F.ttp_station_display({
+ lines = {"E85_S"},
+ departure = {},
+ station = "Grub Valley",
+ title = "Grub Valley",
+ display1 = "d1",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(2716,8,4338).lua b/il_timetable/nodes/(2716,8,4338).lua
new file mode 100644
index 0000000..bc9576a
--- /dev/null
+++ b/il_timetable/nodes/(2716,8,4338).lua
@@ -0,0 +1,7 @@
+F.ttp_station_display({
+ lines = {"E85_N"},
+ departure = {},
+ station = "Grub Valley",
+ title = "Grub Valley",
+ display1 = "d1",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(2739,6,4330).lua b/il_timetable/nodes/(2739,6,4330).lua
new file mode 100644
index 0000000..73d6fe1
--- /dev/null
+++ b/il_timetable/nodes/(2739,6,4330).lua
@@ -0,0 +1,4 @@
+F.ttp_stop({
+ stn = "Grub Valley",
+ doorside = "R",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(288,4,206).lua b/il_timetable/nodes/(288,4,206).lua
new file mode 100644
index 0000000..8b9e918
--- /dev/null
+++ b/il_timetable/nodes/(288,4,206).lua
@@ -0,0 +1,28 @@
+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), 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("A0 B0 W O"..doors)
+ schedule(next_dep_time, "depart")
+ elseif event.schedule then
+ atc_send("A1OCD1SM")
+ digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true))
+ atc_set_text_inside("")
+ depart = true
+ end
+
diff --git a/il_timetable/nodes/(3974,7,4046).lua b/il_timetable/nodes/(3974,7,4046).lua
new file mode 100644
index 0000000..a43a423
--- /dev/null
+++ b/il_timetable/nodes/(3974,7,4046).lua
@@ -0,0 +1,4 @@
+F.ttp_stop({
+ stn = "Konquest",
+ doorside = "R",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(4100,4,5242).lua b/il_timetable/nodes/(4100,4,5242).lua
new file mode 100644
index 0000000..2c1e7f7
--- /dev/null
+++ b/il_timetable/nodes/(4100,4,5242).lua
@@ -0,0 +1,4 @@
+if get_line()=="KVE" then
+ set_rc("KVE_W")
+ atc_set_text_outside("[KVE] Kangasvarkaa Express\n-> SPAWN\nvia Morija, Sameary, Origin")
+end \ No newline at end of file
diff --git a/il_timetable/nodes/(4393,-2,1947).lua b/il_timetable/nodes/(4393,-2,1947).lua
new file mode 100644
index 0000000..5e9d62c
--- /dev/null
+++ b/il_timetable/nodes/(4393,-2,1947).lua
@@ -0,0 +1,10 @@
+F.ttp_begin({
+ stn = "Morija North", -- station name
+ tt = "E85_N", -- timetable ID
+ depint = "05;00", --departure slot interval
+ depoff = "07;30", --departure slot offset
+ doorside = "L",
+ reverse = true,
+ only_lines = { E85 = true },
+ force_tt_reset = false,
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(4587,7,2174).lua b/il_timetable/nodes/(4587,7,2174).lua
new file mode 100644
index 0000000..5e9d62c
--- /dev/null
+++ b/il_timetable/nodes/(4587,7,2174).lua
@@ -0,0 +1,10 @@
+F.ttp_begin({
+ stn = "Morija North", -- station name
+ tt = "E85_N", -- timetable ID
+ depint = "05;00", --departure slot interval
+ depoff = "07;30", --departure slot offset
+ doorside = "L",
+ reverse = true,
+ only_lines = { E85 = true },
+ force_tt_reset = false,
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(4622,12,6795).lua b/il_timetable/nodes/(4622,12,6795).lua
new file mode 100644
index 0000000..cf6751b
--- /dev/null
+++ b/il_timetable/nodes/(4622,12,6795).lua
@@ -0,0 +1,3 @@
+if event.train and get_line() == "E16" then
+ set_rc("E16_poor_mans_ars")
+end \ No newline at end of file
diff --git a/il_timetable/nodes/(788,8,-109).lua b/il_timetable/nodes/(788,8,-109).lua
new file mode 100644
index 0000000..78cf1f7
--- /dev/null
+++ b/il_timetable/nodes/(788,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/(957,14,1047).lua b/il_timetable/nodes/(957,14,1047).lua
index 5e0be27..d9017d9 100644
--- a/il_timetable/nodes/(957,14,1047).lua
+++ b/il_timetable/nodes/(957,14,1047).lua
@@ -1,3 +1,4 @@
+--print(event,atc_id,"id")
F.ttp_stop({
stn = "Ehlodex",
doorside = "R",
diff --git a/il_timetable/nodes/(981,22,1053).lua b/il_timetable/nodes/(981,22,1053).lua
new file mode 100644
index 0000000..2a52ca4
--- /dev/null
+++ b/il_timetable/nodes/(981,22,1053).lua
@@ -0,0 +1,11 @@
+--S.ttt["901424"] = nil
+--S.ttp["E85_N"] = nil
+
+local tr="E85"
+S.ttp[tr.."_N"].force_tt_reset = true
+S.ttp[tr.."_S"].force_tt_reset = true
+print(tr.." resetting timetable")
+
+
+--print(rwt.get_time())
+--print(rwt.to_secs(rwt.now())) \ No newline at end of file
diff --git a/il_timetable/nodes/(982,22,1053).lua b/il_timetable/nodes/(982,22,1053).lua
new file mode 100644
index 0000000..a30cd5d
--- /dev/null
+++ b/il_timetable/nodes/(982,22,1053).lua
@@ -0,0 +1,6 @@
+
+lines = F.ttp_info_times("E84_S", "00;00")
+linestr = F.ttp_info_trains("E84_S", "00;00")
+local li = lines
+for i=1,#linestr do li[#li+1] = linestr[i] end
+print(" E84\n"..table.concat(li, "\n")) \ No newline at end of file
diff --git a/il_timetable/nodes/(999,16,1034).lua b/il_timetable/nodes/(999,16,1034).lua
new file mode 100644
index 0000000..243ec26
--- /dev/null
+++ b/il_timetable/nodes/(999,16,1034).lua
@@ -0,0 +1,7 @@
+F.ttp_station_display({
+ lines = {"CFE_N", "NX_N"},
+ departure = {},
+ station = "Ehlodex",
+ title = "Ehlodex",
+ display1 = "d1",
+}) \ No newline at end of file