diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:51 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:51 +0200 |
commit | 59a952d044d64bf188ec02b98d83b1bdc0a08112 (patch) | |
tree | 489400e51fdd60b11f16f6db48cb6291e613404d /durt/nodes | |
parent | 0b14726c5539782a60d2f4beaed2cfca74a50f7a (diff) | |
download | luaatc_envs-59a952d044d64bf188ec02b98d83b1bdc0a08112.tar.gz luaatc_envs-59a952d044d64bf188ec02b98d83b1bdc0a08112.tar.bz2 luaatc_envs-59a952d044d64bf188ec02b98d83b1bdc0a08112.zip |
State at 2020-02-17
Diffstat (limited to 'durt/nodes')
39 files changed, 62 insertions, 3 deletions
diff --git a/durt/nodes/(-131,2,-2018).lua b/durt/nodes/(-131,2,-2018).lua index 90da6e2..3e7c695 100644 --- a/durt/nodes/(-131,2,-2018).lua +++ b/durt/nodes/(-131,2,-2018).lua @@ -1 +1 @@ -F.station("Pav","E")
\ No newline at end of file +F.station("Pav", "E")
\ No newline at end of file diff --git a/durt/nodes/(-149,8,-2208).lua b/durt/nodes/(-149,8,-2208).lua new file mode 100644 index 0000000..88ef73d --- /dev/null +++ b/durt/nodes/(-149,8,-2208).lua @@ -0,0 +1 @@ +F.station("Acm", "E")
\ No newline at end of file diff --git a/durt/nodes/(-151,8,-2197).lua b/durt/nodes/(-151,8,-2197).lua new file mode 100644 index 0000000..9513009 --- /dev/null +++ b/durt/nodes/(-151,8,-2197).lua @@ -0,0 +1 @@ +F.station("Acm", "W")
\ No newline at end of file diff --git a/durt/nodes/(-168,7,-2052).lua b/durt/nodes/(-168,7,-2052).lua new file mode 100644 index 0000000..2e38bb4 --- /dev/null +++ b/durt/nodes/(-168,7,-2052).lua @@ -0,0 +1 @@ +F.station("Ghd", "E")
\ No newline at end of file diff --git a/durt/nodes/(-170,7,-2041).lua b/durt/nodes/(-170,7,-2041).lua new file mode 100644 index 0000000..c578b1d --- /dev/null +++ b/durt/nodes/(-170,7,-2041).lua @@ -0,0 +1 @@ +F.station("Ghd", "W")
\ No newline at end of file diff --git a/durt/nodes/(-1728,10,-1823).lua b/durt/nodes/(-1728,10,-1823).lua index cb8727f..0e7dc6d 100644 --- a/durt/nodes/(-1728,10,-1823).lua +++ b/durt/nodes/(-1728,10,-1823).lua @@ -1,2 +1,4 @@ -atc_set_text_inside("S23 -> Bamboo Hills") -atc_set_text_outside("S23 -> Bamboo Hills")
\ No newline at end of file +if get_line() == "S23" or get_line() == "BH" then + atc_set_text_inside("S23 -> Arcadius") + atc_set_text_outside("S23 -> Arcadius") +end
\ No newline at end of file diff --git a/durt/nodes/(-1924,13,-1692).lua b/durt/nodes/(-1924,13,-1692).lua new file mode 100644 index 0000000..88ad8a6 --- /dev/null +++ b/durt/nodes/(-1924,13,-1692).lua @@ -0,0 +1 @@ +signal = "foundry_roads_sorting"
if (event.train and atc_arrow) or (event.int and event.message == "check_signal") then
if can_set_route(signal,"In Road") then
set_route(signal,"In Road")
elseif can_set_route(signal,"Out Road") then
set_route(signal,"Out Road")
else
if atc_speed > 0 then
atc_send("S0")
else
atc_send("B0")
end
interrupt(5,"check_signal")
return
end
atc_send("S1")
return
end
\ No newline at end of file diff --git a/durt/nodes/(-2011,21,822).lua b/durt/nodes/(-2011,21,822).lua new file mode 100644 index 0000000..ed65c79 --- /dev/null +++ b/durt/nodes/(-2011,21,822).lua @@ -0,0 +1 @@ +local line = "S23"
if event.punch or (event.channel=="clock" and event.msg=="pulse")then
digiline_send("status_update",S.lines[line].monitoring)
end
\ No newline at end of file diff --git a/durt/nodes/(-2084,21,851).lua b/durt/nodes/(-2084,21,851).lua new file mode 100644 index 0000000..18e9eef --- /dev/null +++ b/durt/nodes/(-2084,21,851).lua @@ -0,0 +1,9 @@ +if get_line() == "S23" or get_line() == "BH" then + if atc_arrow then + atc_set_text_inside("S23 -> Redwood") + atc_set_text_outside("S23 -> Redwood") + else + atc_set_text_inside("Terminus: Arcadius/nChange here for S20") + atc_set_text_outside("S23") + end +end
\ No newline at end of file diff --git a/durt/nodes/(-21,8,-2319).lua b/durt/nodes/(-21,8,-2319).lua new file mode 100644 index 0000000..27c0fe5 --- /dev/null +++ b/durt/nodes/(-21,8,-2319).lua @@ -0,0 +1 @@ +F.station("Ghb", "E")
\ No newline at end of file diff --git a/durt/nodes/(-33,8,-2323).lua b/durt/nodes/(-33,8,-2323).lua new file mode 100644 index 0000000..d71b456 --- /dev/null +++ b/durt/nodes/(-33,8,-2323).lua @@ -0,0 +1 @@ +F.station("Ghb", "W")
\ No newline at end of file diff --git a/durt/nodes/(-3525,8,-2281).lua b/durt/nodes/(-3525,8,-2281).lua new file mode 100644 index 0000000..6bb5ea1 --- /dev/null +++ b/durt/nodes/(-3525,8,-2281).lua @@ -0,0 +1,3 @@ +if event.train then + if not atc_arrow then atc_send("S1B1") end +end
\ No newline at end of file diff --git a/durt/nodes/(-3530,8,-2267).lua b/durt/nodes/(-3530,8,-2267).lua new file mode 100644 index 0000000..cef1cec --- /dev/null +++ b/durt/nodes/(-3530,8,-2267).lua @@ -0,0 +1,6 @@ +--control interface
loading_road_control_track = POS(-3544,8,-2277)
entry_exit_road_control = nil --still need to add a track for traffic balancing
if event.ext_int then
digiline_send("train_control_screen",event.message)
return
end
if event.digiline then
if event.channel ~= "train_control" then return end
if event.msg=="rehead" then
digiline_send("train_control_screen","Loco Change Ends")
interrupt_pos(loading_road_control_track,"split_around")
return
end
if event.msg=="depart" then
digiline_send("train_control_screen","Depart via Accelerator")
interrupt_pos(loading_road_control_track,"depart")
return
end
if event.msg=="shuffle_loading" then
digiline_send("train_control_screen","Loading Shuffle")
interrupt_pos(loading_road_control_track,"shuffle")
return
end + +if event.msg=="emergency_ext_int" then
interrupt_pos(POS(-73,2,-1984),"go")
return
end + + +
return
end
\ No newline at end of file diff --git a/durt/nodes/(-3544,8,-2277).lua b/durt/nodes/(-3544,8,-2277).lua new file mode 100644 index 0000000..ba6c2bf --- /dev/null +++ b/durt/nodes/(-3544,8,-2277).lua @@ -0,0 +1 @@ +-- Loading Road Control
info = {
line = "Maverick2797_diamonds",
rc = "autorun FREIGHT",
outside = "DURT Logs to Diamonds Conversion Train",
inside = "Cargo: Logs and Leaves\nOrigin: Auto Logging Plantation\nDestination: Icebreaker Factory",
}
accelerator_loop_diverge_sig = POS(-3602,9,-2282)
loading_exit_sig = POS(-3539,9,-2279)
control_interface = POS(-3530,8,-2267)
depart = function()
if not atc_arrow then atc_send("R") end
if can_set_route(loading_exit_sig,"Train Accelerator Loop") then
set_route(loading_exit_sig,"Train Accelerator Loop")
atc_send("SM")
set_line(info.line)
set_rc(info.rc)
atc_set_text_inside(info.inside)
atc_set_text_outside(info.outside)
return
else
interrupt(2,"depart")
return
end
end
if event.type=="ext_int" then
if not atc_id then
interrupt_pos(control_interface,"No Train at Signal")
return
elseif atc_speed ~= 0 then
interrupt_pos(control_interface,"Train Still Moving")
return
end
if event.message == "split_around" then
set_rc("split_around")
if atc_arrow == true then atc_send("S0WR") end
atc_send("S0WS3")
return
end
if event.message == "depart" then
depart()
return
end
if event.message=="shuffle" then
if can_set_route(loading_exit_sig,"Loop Around") then
set_route(loading_exit_sig,"Loop Around")
set_route(accelerator_loop_diverge_sig,"Loading Road")
atc_send("S8D30S5")
return
else
interrupt_pos(control_interface,"Unable to set routes")
return
end
return
end
return
end
if event.type=="int" then
if event.message=="depart" then depart() return end
return
end
\ No newline at end of file diff --git a/durt/nodes/(-3588,8,-2277).lua b/durt/nodes/(-3588,8,-2277).lua new file mode 100644 index 0000000..9077f3c --- /dev/null +++ b/durt/nodes/(-3588,8,-2277).lua @@ -0,0 +1 @@ +--train splitter track
mainline_line = "Maverick2797_diamonds"
mainline_rc = "autorun FREIGHT"
text_outside = "DURT Logs to Diamonds Conversion Train"
loading_stopper_sig = POS(-3594,9,-2277)
split_around = function()
if ((atc_speed==0) and can_set_route(loading_stopper_sig,"Shunt Around Via Loop")) then
split_at_index(2,"")
atc_send("S4")
set_route(loading_stopper_sig,"Shunt Around Via Loop")
return
else
interrupt(2,"split_around")
return
end
end
if event.train then
if not atc_arrow then atc_send("B1S1") return end
if get_rc() == "split_around" then
atc_send("B0")
split_around()
return
else --rejoined from splitting or arriving train
atc_send("S0WRS1")
set_line(mainline_line)
set_rc(mainline_rc)
atc_set_text_outside(text_outside)
atc_set_text_inside("Loading Cargo")
return
end
end
if event.type=="int" then
if event.message=="split_around" then split_around() return end
return
end
\ No newline at end of file diff --git a/durt/nodes/(-3596,8,-2281).lua b/durt/nodes/(-3596,8,-2281).lua new file mode 100644 index 0000000..230fdd4 --- /dev/null +++ b/durt/nodes/(-3596,8,-2281).lua @@ -0,0 +1 @@ +control_interface = POS(-3530,8,-2267)
exit_road_signal = POS(-3538,9,-2282)
if event.train then
if not atc_arrow then return end
if atc_speed > 13 then
if can_set_route(exit_road_signal,"Exit to Mainline") then
set_route(exit_road_signal,"Exit to Mainline")
interrupt_pos(control_interface,"Train Merging to Mainline")
return
else
set_route(exit_road_signal,"Train Accelerator Loop")
interrupt_pos(control_interface,"Waiting for Mainline||Unable to set edxit route")
return
end
else
set_route(exit_road_signal,"Train Accelerator Loop")
interrupt_pos(control_interface,"Train too slow to merge||Looping back around")
return
end
end
\ No newline at end of file diff --git a/durt/nodes/(-716,3,1894).lua b/durt/nodes/(-716,3,1894).lua new file mode 100644 index 0000000..0cdb8fd --- /dev/null +++ b/durt/nodes/(-716,3,1894).lua @@ -0,0 +1 @@ +factory_exit_sig = "icebreaker_factory_exit"
inside_maniest = "Cargo: Empty\nOrigin: Icebreaker Factory\nDestination: Auto Plantation"
outside_naming = "DURT Logs to Diamond Conversion Train"
mainline_rc = "autorun FREIGHT"
mainline_ln = "Maverick2797_diamonds"
if event.train then
digiline_send("train_response","Train "..atc_id.." ready||Entered factory:||Speed: "..atc_speed)
set_line(mainline_ln)
set_rc(mainline_rc)
atc_set_text_outside(outside_naming)
atc_set_text_inside(inside_maniest)
end
if event.digiline then
if event.channel=="train_control" then
if not atc_id then
digiline_send("train_response","No Train Detected")
return
end
if event.msg=="shuffle" then
if atc_speed > 0 then
digiline_send("train_response","Please wait:||train still moving||Speed: "..atc_speed)
return
elseif not can_set_route(factory_exit_sig,"Reverse to Breaker-side Siding") then
digiline_send("train_response","Unable to set route to:||Breaker-side Siding")
return
else
set_route(factory_exit_sig,"Reverse to Breaker-side Siding")
atc_send("R S1 D5 SM D13 S0 W R S1")
digiline_send("train_response","Refilling Input Chests||Shuffling Train")
return
end
return
elseif event.msg=="exit" then
if atc_speed > 0 then
digiline_send("train_response","Please wait:||train still moving||Speed: "..atc_speed)
return
elseif not can_set_route(factory_exit_sig,"Exit to Mainline South") then
digiline_send("train_response","Unable to set route to:||Mainline South")
return
else
set_route(factory_exit_sig,"Exit to Mainline South")
atc_send("R SM")
digiline_send("train_response","Train Departing")
return
end
return
elseif event.msg=="rehead" then
if atc_speed > 0 then
digiline_send("train_response","Please wait:||train still moving||Speed: "..atc_speed)
return
elseif not can_set_route(factory_exit_sig,"Reverse for loco run-around") then
digiline_send("train_response","Unable to set route to:||Loco Run Around Sequence")
return
else
set_route(factory_exit_sig,"Reverse for loco run-around")
set_rc("split_around")
atc_send("R SM D15 S0 W R S1")
digiline_send("train_response","Loco Changind Ends")
return
end
return
end
return
end
return
end
\ No newline at end of file diff --git a/durt/nodes/(-736,3,1857).lua b/durt/nodes/(-736,3,1857).lua new file mode 100644 index 0000000..b40529e --- /dev/null +++ b/durt/nodes/(-736,3,1857).lua @@ -0,0 +1 @@ +mainline_rc = "autorun FREIGHT"
mainline_ln = "Maverick2797_diamonds"
function speed_check()
if atc_speed > 0 then
interrupt(1,"speed_check")
return
else
interrupt(1,"split_train")
return
end
end
if event.train then
if atc_arrow then
if get_rc()=="split_around" then
if atc_speed > 0 then
speed_check()
end
return
else
set_rc(mainline_rc)
set_line(mainline_ln)
set_route("icebreaker_shunt1","return to factory")
atc_send("S3")
return
end
return
end
return
end
if event.int then
if event.message == "speed_check" then speed_check() end
if event.message=="split_train" then
atc_send("S0")
split_at_index(2,"")
set_route("icebreaker_shunt1","split->headhunt")
atc_send("S3")
return
end
return
end
\ No newline at end of file diff --git a/durt/nodes/(-743,3,1888).lua b/durt/nodes/(-743,3,1888).lua new file mode 100644 index 0000000..7489acc --- /dev/null +++ b/durt/nodes/(-743,3,1888).lua @@ -0,0 +1 @@ +--
\ No newline at end of file diff --git a/durt/nodes/(-759,3,1861).lua b/durt/nodes/(-759,3,1861).lua new file mode 100644 index 0000000..117ee31 --- /dev/null +++ b/durt/nodes/(-759,3,1861).lua @@ -0,0 +1,6 @@ +if (event.train and atc_arrow) then + set_rc("merge_from_shunt") + atc_set_text_inside("merge_from_shunt") + atc_send("S0WRS3") + return +end
\ No newline at end of file diff --git a/durt/nodes/(-799,3,1863).lua b/durt/nodes/(-799,3,1863).lua new file mode 100644 index 0000000..77cc579 --- /dev/null +++ b/durt/nodes/(-799,3,1863).lua @@ -0,0 +1 @@ +if event.train then
if get_rc() ~= "mainline_running_code" then
set_rc("mainline_running_code")
atc_set_text_inside("mainline_running_code")
atc_send("S0WRS3")
return
end
return
end
if event.digiline then
if event.msg=="switch_ends" then
if not atc_id then return end
if atc_speed > 0 then return end
atc_send("S0")
interrupt(1,"braking delay")
return
end
return
end
if event.int then
if event.message=="braking delay" then
split_at_index(2,"")
set_route(POS(-802,4,1864),"to wye")
interrupt(1,"split delay")
return
end
if event.message=="split delay" then
atc_set_text_inside("engine")
atc_send("S3")
return
end
return
end
\ No newline at end of file diff --git a/durt/nodes/(140,8,-2054).lua b/durt/nodes/(140,8,-2054).lua new file mode 100644 index 0000000..46b75b9 --- /dev/null +++ b/durt/nodes/(140,8,-2054).lua @@ -0,0 +1 @@ +F.station("Gcl", "W")
\ No newline at end of file diff --git a/durt/nodes/(148,8,-2046).lua b/durt/nodes/(148,8,-2046).lua new file mode 100644 index 0000000..89d0ac7 --- /dev/null +++ b/durt/nodes/(148,8,-2046).lua @@ -0,0 +1 @@ +F.station("Gcl", "E")
\ No newline at end of file diff --git a/durt/nodes/(260,2,-2054).lua b/durt/nodes/(260,2,-2054).lua new file mode 100644 index 0000000..92477c0 --- /dev/null +++ b/durt/nodes/(260,2,-2054).lua @@ -0,0 +1 @@ +F.station("Sfs", "W")
\ No newline at end of file diff --git a/durt/nodes/(272,2,-2046).lua b/durt/nodes/(272,2,-2046).lua new file mode 100644 index 0000000..d97324c --- /dev/null +++ b/durt/nodes/(272,2,-2046).lua @@ -0,0 +1 @@ +F.station("Sfs", "E")
\ No newline at end of file diff --git a/durt/nodes/(364,-3,-2026).lua b/durt/nodes/(364,-3,-2026).lua new file mode 100644 index 0000000..d1268c1 --- /dev/null +++ b/durt/nodes/(364,-3,-2026).lua @@ -0,0 +1 @@ +F.station("Jms", "W")
\ No newline at end of file diff --git a/durt/nodes/(376,-3,-2018).lua b/durt/nodes/(376,-3,-2018).lua new file mode 100644 index 0000000..0e6dcc4 --- /dev/null +++ b/durt/nodes/(376,-3,-2018).lua @@ -0,0 +1 @@ +F.station("Jms", "E")
\ No newline at end of file diff --git a/durt/nodes/(502,-3,-2026).lua b/durt/nodes/(502,-3,-2026).lua new file mode 100644 index 0000000..d8143fb --- /dev/null +++ b/durt/nodes/(502,-3,-2026).lua @@ -0,0 +1 @@ +F.station("Bam", "W")
\ No newline at end of file diff --git a/durt/nodes/(514,-3,-2018).lua b/durt/nodes/(514,-3,-2018).lua new file mode 100644 index 0000000..a724067 --- /dev/null +++ b/durt/nodes/(514,-3,-2018).lua @@ -0,0 +1 @@ +F.station("Bam", "E")
\ No newline at end of file diff --git a/durt/nodes/(597,-3,-1963).lua b/durt/nodes/(597,-3,-1963).lua new file mode 100644 index 0000000..5090d96 --- /dev/null +++ b/durt/nodes/(597,-3,-1963).lua @@ -0,0 +1 @@ +F.station("Cli", "W")
\ No newline at end of file diff --git a/durt/nodes/(607,-3,-1957).lua b/durt/nodes/(607,-3,-1957).lua new file mode 100644 index 0000000..f926c02 --- /dev/null +++ b/durt/nodes/(607,-3,-1957).lua @@ -0,0 +1 @@ +F.station("Cli", "E")
\ No newline at end of file diff --git a/durt/nodes/(687,-3,-1961).lua b/durt/nodes/(687,-3,-1961).lua new file mode 100644 index 0000000..33be55d --- /dev/null +++ b/durt/nodes/(687,-3,-1961).lua @@ -0,0 +1 @@ +F.station("Wat", "W")
\ No newline at end of file diff --git a/durt/nodes/(697,-3,-1959).lua b/durt/nodes/(697,-3,-1959).lua new file mode 100644 index 0000000..b2ab845 --- /dev/null +++ b/durt/nodes/(697,-3,-1959).lua @@ -0,0 +1 @@ +F.station("Wat", "E")
\ No newline at end of file diff --git a/durt/nodes/(74,8,-2126).lua b/durt/nodes/(74,8,-2126).lua new file mode 100644 index 0000000..7c77493 --- /dev/null +++ b/durt/nodes/(74,8,-2126).lua @@ -0,0 +1 @@ +F.station("Dri", "E")
\ No newline at end of file diff --git a/durt/nodes/(74,8,-2298).lua b/durt/nodes/(74,8,-2298).lua new file mode 100644 index 0000000..456aca5 --- /dev/null +++ b/durt/nodes/(74,8,-2298).lua @@ -0,0 +1 @@ +F.station("Ged", "E")
\ No newline at end of file diff --git a/durt/nodes/(771,6,-1938).lua b/durt/nodes/(771,6,-1938).lua new file mode 100644 index 0000000..af2e64f --- /dev/null +++ b/durt/nodes/(771,6,-1938).lua @@ -0,0 +1 @@ +F.station("Duf", "W")
\ No newline at end of file diff --git a/durt/nodes/(78,8,-2137).lua b/durt/nodes/(78,8,-2137).lua new file mode 100644 index 0000000..6ccaa01 --- /dev/null +++ b/durt/nodes/(78,8,-2137).lua @@ -0,0 +1 @@ +F.station("Dri", "W")
\ No newline at end of file diff --git a/durt/nodes/(78,8,-2310).lua b/durt/nodes/(78,8,-2310).lua new file mode 100644 index 0000000..dbe33c5 --- /dev/null +++ b/durt/nodes/(78,8,-2310).lua @@ -0,0 +1 @@ +F.station("Ged", "W")
\ No newline at end of file diff --git a/durt/nodes/(781,6,-1930).lua b/durt/nodes/(781,6,-1930).lua new file mode 100644 index 0000000..44dcd56 --- /dev/null +++ b/durt/nodes/(781,6,-1930).lua @@ -0,0 +1 @@ +F.station("Duf", "E")
\ No newline at end of file |