summaryrefslogtreecommitdiff
path: root/il_timetable
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:42 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:52:42 +0200
commit37204846dc93cc059bbea8cbfc88832a9c72e91c (patch)
tree157ab8f7bd34e23bec5adc670746b2b2da07d925 /il_timetable
parentd4d35c0304fae463e87508662e7f88323b78be52 (diff)
downloadluaatc_envs-37204846dc93cc059bbea8cbfc88832a9c72e91c.tar.gz
luaatc_envs-37204846dc93cc059bbea8cbfc88832a9c72e91c.tar.bz2
luaatc_envs-37204846dc93cc059bbea8cbfc88832a9c72e91c.zip
State at 2021-04-11
Diffstat (limited to 'il_timetable')
-rw-r--r--il_timetable/init_code.lua6
-rw-r--r--il_timetable/nodes/(1020,11,1021).lua8
-rw-r--r--il_timetable/nodes/(662,14,1014).lua2
-rw-r--r--il_timetable/nodes/(981,15,1041).lua9
4 files changed, 21 insertions, 4 deletions
diff --git a/il_timetable/init_code.lua b/il_timetable/init_code.lua
index 2cda3a3..c9acd9e 100644
--- a/il_timetable/init_code.lua
+++ b/il_timetable/init_code.lua
@@ -435,7 +435,7 @@ local function is_past_station(tstn, stnorder)
end
return true
end
-local function add_train(deptime, line, train)
+local function add_train(deptime, line, train, tid)
local tent = {dep = deptime, text =
rwt.to_string(deptime,true).." "..F.ttp[line].stn_display
.." +"..train.last_delay}
@@ -456,7 +456,7 @@ for _,line in ipairs(p.lines) do
if train.timetable == line then
if train.location == p.station and not train.actual_dep then
-- the train is currently standing at this station
- add_train(train.planned_dep, line, train)
+ add_train(train.planned_dep, line, train, id)
elseif not is_past_station(train.location, sttp.station_order) then
-- train is still approaching, calculate arrival time
local trav_dep = rwt.add(train.initial_dep, (sttp.travel_times[p.station] or 0) + STOP_TIME)
@@ -467,7 +467,7 @@ for _,line in ipairs(p.lines) do
act_dep = plan_dep
end
end
- add_train(act_dep, line, train)
+ add_train(act_dep, line, train, id)
end
end
end
diff --git a/il_timetable/nodes/(1020,11,1021).lua b/il_timetable/nodes/(1020,11,1021).lua
new file mode 100644
index 0000000..dc3083a
--- /dev/null
+++ b/il_timetable/nodes/(1020,11,1021).lua
@@ -0,0 +1,8 @@
+F.ttp_station_display({
+ lines = {"S12_S"},
+ departure = {},
+ station = "Ehlodex",
+ title = "Ehlodex",
+ interval = 30,
+ display1 = "d",
+}) \ No newline at end of file
diff --git a/il_timetable/nodes/(662,14,1014).lua b/il_timetable/nodes/(662,14,1014).lua
index 4a62729..0ed504e 100644
--- a/il_timetable/nodes/(662,14,1014).lua
+++ b/il_timetable/nodes/(662,14,1014).lua
@@ -1,5 +1,5 @@
F.ttp_stop({
stn = "Gardon Street",
- doorside = "L",
+ doorside = "R",
only_lines={S12=true},
}) \ No newline at end of file
diff --git a/il_timetable/nodes/(981,15,1041).lua b/il_timetable/nodes/(981,15,1041).lua
new file mode 100644
index 0000000..ac1112f
--- /dev/null
+++ b/il_timetable/nodes/(981,15,1041).lua
@@ -0,0 +1,9 @@
+F.ttp_station_display({
+ lines = {"S12_S", "E1_S"},
+ departure = {},
+ station = "Ehlodex",
+ title = "Ehlodex",
+ interval = 30,
+ display1 = "d1",
+ display2 = "d2",
+}) \ No newline at end of file