summaryrefslogtreecommitdiff
path: root/auto_yards/init_code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'auto_yards/init_code.lua')
-rw-r--r--auto_yards/init_code.lua16
1 files changed, 13 insertions, 3 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua
index 0a4312c..f3b4282 100644
--- a/auto_yards/init_code.lua
+++ b/auto_yards/init_code.lua
@@ -83,6 +83,16 @@ if event.init then
-- error_indicator_pos = POS(-4025,13,-2671),
-- },
}
+ S.known_trains = {
+ ['120684'] = "LHF #1", --Maverick2797
+ ['249165'] = "LHF #2", --Maverick2797
+ ['734206'] = "ARC-BY", --Maverick2797
+ ['588750'] = "MMF-TY", --survivalg/erstazi
+ ['543381'] = "WOA-IP", --Maverick2797
+ ['834721'] = "S27-ARC", --Maverick2797
+ ['513598'] = "S27EX-ARC", --Maverick2797
+ ['590988'] = "CAN-ARC", --Maverick2797
+ }
end
------------------------------------------------------------------------------------
-- Utility Functions
@@ -220,7 +230,7 @@ F.yard_arrival = function(yard_id,this_dir, force_rts) -- arrow points towards y
if S.print_debug then
print(rwt.to_string(rwt.now()))
- print("YARD "..yard_id..": Train "..atc_id.." enters from the "..tostring(this_dir).." direction and will exit in the "..tostring(rts).." direction")
+ print("YARD "..yard_id..": Train "..atc_id.." ("..(S.known_trains[atc_id] or "Unknown")..") enters from the "..tostring(this_dir).." direction and will exit in the "..tostring(rts).." direction")
print("YARD "..yard_id..": Length "..train_length())
end
return
@@ -237,7 +247,7 @@ F.yard_arrival = function(yard_id,this_dir, force_rts) -- arrow points towards y
if F.indicator(yard.active_indicator_pos) then
if S.print_debug then
print(rwt.to_string(rwt.now()))
- print("YARD "..yard_id..": Train "..atc_id.." has arrived from the "..tostring(this_dir).." direction and has to wait for the yard to deactivate.")
+ print("YARD "..yard_id..": Train "..atc_id.." ("..(S.known_trains[atc_id] or "Unknown")..") has arrived from the "..tostring(this_dir).." direction and has to wait for the yard to deactivate.")
end
schedule_in(";10","recheck")
return
@@ -410,7 +420,7 @@ F.headshunt_exit = function(yard_id,this_dir) -- arrow points out of yard
if F.has_rc(yard_id.."_DEPART") then
if S.print_debug then
print(rwt.to_string(rwt.now()))
- print("YARD "..yard_id..": Train "..atc_id.." has a length of "..train_length())
+ print("YARD "..yard_id..": Train "..atc_id.." ("..(S.known_trains[atc_id] or "Unknown")..") has a length of "..train_length())
print("YARD "..yard_id..": It will depart in the "..tostring(this_dir).." direction.")
end
S.yards[yard_id].departure_length = train_length()