summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:58:25 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:58:25 +0200
commit72b5cc792208fcc6fcfd103b909ce69bdef12c8b (patch)
treedb6c6848f1a402a9a7d83f15ac2803a780f2d1e7
parentfe5294d1d13441071f6cb58c2594062875b4439d (diff)
downloadluaatc_envs-72b5cc792208fcc6fcfd103b909ce69bdef12c8b.tar.gz
luaatc_envs-72b5cc792208fcc6fcfd103b909ce69bdef12c8b.tar.bz2
luaatc_envs-72b5cc792208fcc6fcfd103b909ce69bdef12c8b.zip
State at 2023-04-11
-rw-r--r--Tyard/nodes/(-4256,20,-3084).lua14
-rw-r--r--auto_yards/nodes/(-1946,16,840).lua27
-rw-r--r--ers/nodes/(1670,2,1259).lua14
-rw-r--r--il_timetable/nodes/(-1925,13,-4577).lua16
4 files changed, 71 insertions, 0 deletions
diff --git a/Tyard/nodes/(-4256,20,-3084).lua b/Tyard/nodes/(-4256,20,-3084).lua
new file mode 100644
index 0000000..8803dac
--- /dev/null
+++ b/Tyard/nodes/(-4256,20,-3084).lua
@@ -0,0 +1,14 @@
+local rc = get_rc() or ""
+if rc:match("ERSTAZISHOP") then
+ -- do erstazi's stuff here
+ return
+elseif rc:match("TSTSHOP") then
+ split_at_index(2,"B0")
+ set_rc("RUNAROUND FREIGHT")
+ set_autocouple()
+ return
+elseif rc:match("RUNAROUND") then
+ set_rc("FREIGHT TSTSHOP TYARD TY_RTS TY_COLLECT_MMF")
+ atc_send("B0WRD300SMA1") -- wait 5 minutes before departing to lessen the yard usage
+ return
+end \ No newline at end of file
diff --git a/auto_yards/nodes/(-1946,16,840).lua b/auto_yards/nodes/(-1946,16,840).lua
new file mode 100644
index 0000000..def9136
--- /dev/null
+++ b/auto_yards/nodes/(-1946,16,840).lua
@@ -0,0 +1,27 @@
+local yard_id = "ARC"
+
+if not S.yards[yard_id].notify then return end
+
+local subs = {
+--[[
+ A list of FC subscribers to send out notifications for.
+ Each entry must have a coresponding Lua Track / Operators Panel to trigger (using event.ext_int)
+ Used to alert a shunter locomotive or other yard that there's wagons available to collect from this yard.
+]]--
+
+ ['S27'] = {['pos'] = POS(-1515,7,-2625), ['msg'] = "notify"},
+ ['ARC_SB'] = {['pos'] = POS(-1973,16,800), ['msg'] = "notify"},
+ ['CANNERY'] = {['pos'] = POS(-630,26,2454), ['msg'] = "notify"},
+}
+
+if event.ext_int or event.punch then
+ local list = "Notify: "
+ for fc, sub in pairs(subs) do
+ if S.yards[yard_id].notify[fc] then
+ interrupt_pos(sub.pos,sub.msg or "notify")
+ list = list .. fc .. ", "
+ end
+ end
+ digiline_send("lcd",list)
+ S.yards[yard_id].notify = {}
+end \ No newline at end of file
diff --git a/ers/nodes/(1670,2,1259).lua b/ers/nodes/(1670,2,1259).lua
new file mode 100644
index 0000000..5cc4761
--- /dev/null
+++ b/ers/nodes/(1670,2,1259).lua
@@ -0,0 +1,14 @@
+-- luaatctrack_spot_check_01.lua
+-- POS(1670,2,1259)
+
+local show_print = false
+if event.train then
+ F.save_train()
+ if atc_arrow then
+ atc_send("B0 W R")
+ -- atc_send("S5")
+ -- else
+ -- atc_send("B3 S3")
+ end
+ return
+end \ No newline at end of file
diff --git a/il_timetable/nodes/(-1925,13,-4577).lua b/il_timetable/nodes/(-1925,13,-4577).lua
new file mode 100644
index 0000000..fa700e6
--- /dev/null
+++ b/il_timetable/nodes/(-1925,13,-4577).lua
@@ -0,0 +1,16 @@
+F.ttp_begin({
+ stn = "Melinka", -- station name
+ tt = "E1_N", -- timetable ID
+-- depint = "02;30", --departure slot interval
+-- depoff = "00;45", --departure slot offset
+ depint = "05;00",
+ depoff = "02;30",
+ doorside = "R",
+ reverse = true,
+ only_lines = { E1 = true },
+ force_tt_reset = false,
+})
+
+if event.train then
+ set_rc("")
+end \ No newline at end of file