diff options
Diffstat (limited to 'Crossroads/nodes')
29 files changed, 59 insertions, 24 deletions
diff --git a/Crossroads/nodes/(1100,16,1950).lua b/Crossroads/nodes/(1100,16,1950).lua new file mode 100644 index 0000000..194c3d9 --- /dev/null +++ b/Crossroads/nodes/(1100,16,1950).lua @@ -0,0 +1 @@ +F.stn2gen("thecube","1","L")
\ No newline at end of file diff --git a/Crossroads/nodes/(1100,20,1945).lua b/Crossroads/nodes/(1100,20,1945).lua new file mode 100644 index 0000000..0cdeadc --- /dev/null +++ b/Crossroads/nodes/(1100,20,1945).lua @@ -0,0 +1,3 @@ +if event.type == "digiline" and event.channel == "t1" then + F.pdisp("thecube","1","S") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1116,12,2621).lua b/Crossroads/nodes/(1116,12,2621).lua index 3b6577d..1267653 100644 --- a/Crossroads/nodes/(1116,12,2621).lua +++ b/Crossroads/nodes/(1116,12,2621).lua @@ -1 +1,3 @@ -F.disp2gen("phsc")
\ No newline at end of file +if event.type == "digiline" and event.channel == "upd" then + F.disp2gen("phsc") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1116,12,2653).lua b/Crossroads/nodes/(1116,12,2653).lua index 3b6577d..1267653 100644 --- a/Crossroads/nodes/(1116,12,2653).lua +++ b/Crossroads/nodes/(1116,12,2653).lua @@ -1 +1,3 @@ -F.disp2gen("phsc")
\ No newline at end of file +if event.type == "digiline" and event.channel == "upd" then + F.disp2gen("phsc") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1116,23,3014).lua b/Crossroads/nodes/(1116,23,3014).lua new file mode 100644 index 0000000..44e9c85 --- /dev/null +++ b/Crossroads/nodes/(1116,23,3014).lua @@ -0,0 +1,3 @@ +if event.type == "digiline" and event.channel == "track2-update" then + F.pdisp("phwest","2","S") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1116,23,3027).lua b/Crossroads/nodes/(1116,23,3027).lua new file mode 100644 index 0000000..4902e0c --- /dev/null +++ b/Crossroads/nodes/(1116,23,3027).lua @@ -0,0 +1,3 @@ +if event.type == "digiline" and event.channel == "track2-update" then + F.pdisp("phwest","2","N") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1117,16,1977).lua b/Crossroads/nodes/(1117,16,1977).lua new file mode 100644 index 0000000..29aeb3f --- /dev/null +++ b/Crossroads/nodes/(1117,16,1977).lua @@ -0,0 +1 @@ +F.stn2gen("thecube","4","L")
\ No newline at end of file diff --git a/Crossroads/nodes/(1117,20,1951).lua b/Crossroads/nodes/(1117,20,1951).lua new file mode 100644 index 0000000..a17606a --- /dev/null +++ b/Crossroads/nodes/(1117,20,1951).lua @@ -0,0 +1,3 @@ +if event.type == "digiline" and event.channel == "t4" then + F.pdisp("thecube","4","S") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1119,16,2757).lua b/Crossroads/nodes/(1119,16,2757).lua new file mode 100644 index 0000000..dde01ed --- /dev/null +++ b/Crossroads/nodes/(1119,16,2757).lua @@ -0,0 +1 @@ +F.stn2gen("grsc", "3", "R")
\ No newline at end of file diff --git a/Crossroads/nodes/(1119,19,3018).lua b/Crossroads/nodes/(1119,19,3018).lua new file mode 100644 index 0000000..51ef14b --- /dev/null +++ b/Crossroads/nodes/(1119,19,3018).lua @@ -0,0 +1 @@ +F.stn2gen("phwest","2","L",true,true)
\ No newline at end of file diff --git a/Crossroads/nodes/(1122,16,2771).lua b/Crossroads/nodes/(1122,16,2771).lua new file mode 100644 index 0000000..27a6f78 --- /dev/null +++ b/Crossroads/nodes/(1122,16,2771).lua @@ -0,0 +1 @@ +F.stn2gen("grsc", "4", "R")
\ No newline at end of file diff --git a/Crossroads/nodes/(1171,5,846).lua b/Crossroads/nodes/(1171,5,846).lua new file mode 100644 index 0000000..354d229 --- /dev/null +++ b/Crossroads/nodes/(1171,5,846).lua @@ -0,0 +1 @@ +F.stn2gen("scs","S1","R")
\ No newline at end of file diff --git a/Crossroads/nodes/(1179,5,863).lua b/Crossroads/nodes/(1179,5,863).lua new file mode 100644 index 0000000..61b92a5 --- /dev/null +++ b/Crossroads/nodes/(1179,5,863).lua @@ -0,0 +1 @@ +F.stn2gen("scs","N1","R")
\ No newline at end of file diff --git a/Crossroads/nodes/(1187,-2,987).lua b/Crossroads/nodes/(1187,-2,987).lua new file mode 100644 index 0000000..d4e994b --- /dev/null +++ b/Crossroads/nodes/(1187,-2,987).lua @@ -0,0 +1,3 @@ +if event.type == "digiline" and event.channel == "upd" then + F.pdisp("scc","S2","S") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1187,-6,989).lua b/Crossroads/nodes/(1187,-6,989).lua new file mode 100644 index 0000000..5c86126 --- /dev/null +++ b/Crossroads/nodes/(1187,-6,989).lua @@ -0,0 +1 @@ +F.stn2gen("scc", "S2", "R")
\ No newline at end of file diff --git a/Crossroads/nodes/(1190,-2,987).lua b/Crossroads/nodes/(1190,-2,987).lua new file mode 100644 index 0000000..3722041 --- /dev/null +++ b/Crossroads/nodes/(1190,-2,987).lua @@ -0,0 +1,3 @@ +if event.type == "digiline" and event.channel == "upd" then + F.pdisp("scc","S1","S") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1190,-6,989).lua b/Crossroads/nodes/(1190,-6,989).lua new file mode 100644 index 0000000..3947016 --- /dev/null +++ b/Crossroads/nodes/(1190,-6,989).lua @@ -0,0 +1 @@ +F.stn2gen("scc", "S1", "L")
\ No newline at end of file diff --git a/Crossroads/nodes/(1198,-6,1006).lua b/Crossroads/nodes/(1198,-6,1006).lua new file mode 100644 index 0000000..c0c450e --- /dev/null +++ b/Crossroads/nodes/(1198,-6,1006).lua @@ -0,0 +1 @@ +F.stn2gen("scc", "N1", "L")
\ No newline at end of file diff --git a/Crossroads/nodes/(1201,-6,1006).lua b/Crossroads/nodes/(1201,-6,1006).lua new file mode 100644 index 0000000..855f755 --- /dev/null +++ b/Crossroads/nodes/(1201,-6,1006).lua @@ -0,0 +1 @@ +F.stn2gen("scc", "N2", "R")
\ No newline at end of file diff --git a/Crossroads/nodes/(1223,12,1555).lua b/Crossroads/nodes/(1223,12,1555).lua index b07a528..75d5eea 100644 --- a/Crossroads/nodes/(1223,12,1555).lua +++ b/Crossroads/nodes/(1223,12,1555).lua @@ -1,5 +1,5 @@ if event.type == "digiline" then if event.channel == "updwrapper" then - digiline_send("upd","update") + F.disp2gen("cg") end end
\ No newline at end of file diff --git a/Crossroads/nodes/(1228,12,1541).lua b/Crossroads/nodes/(1228,12,1541).lua index b07a528..75d5eea 100644 --- a/Crossroads/nodes/(1228,12,1541).lua +++ b/Crossroads/nodes/(1228,12,1541).lua @@ -1,5 +1,5 @@ if event.type == "digiline" then if event.channel == "updwrapper" then - digiline_send("upd","update") + F.disp2gen("cg") end end
\ No newline at end of file diff --git a/Crossroads/nodes/(1702,5,906).lua b/Crossroads/nodes/(1702,5,906).lua new file mode 100644 index 0000000..03259d6 --- /dev/null +++ b/Crossroads/nodes/(1702,5,906).lua @@ -0,0 +1,6 @@ +__approach_callback_mode = 1 +if event.type == "approach" then + atc_set_lzb_tsr(2) +elseif event.type == "train" then + atc_send("B2") +end
\ No newline at end of file diff --git a/Crossroads/nodes/(1755,27,943).lua b/Crossroads/nodes/(1755,27,943).lua index d09f055..135d7ab 100644 --- a/Crossroads/nodes/(1755,27,943).lua +++ b/Crossroads/nodes/(1755,27,943).lua @@ -1,7 +1,8 @@ -local head = { "V TRAIN LINE STATION", " " } +local head = { "V TRAIN LINE STATION ", " " } local length = 18 if event.type=="digiline" or event.type=="punch" then if event.channel=="upd_main" or event.type=="punch" then + local table = table local start_t = os.clock() if not S.lagrec then S.lagrec = {} end local la = {} @@ -14,16 +15,16 @@ if event.type=="digiline" or event.type=="punch" then for id = 1, #ids, 1 do local st = (S.trains[ids[id] or 0] or "") i = (counter-counter%7)/7*2+((counter%7<3) and 1 or 2) - if not la[i] then la[i] = (i%2==0) and "" or head[1] end - if not lb[i] then lb[i] = (i%2==0) and "" or head[2] end - local n = "[" .. (st.t or "N/A") .. "] " .. (F.stnlist[st.s] or st.s) - la[i] = string.format ("%s\n%02d %06d %-7s %s", la[i], st.v, ids[id], st.l, n) - lb[i] = lb[i] .. "\n" .. (n:len() < 10 and " " or n:sub(10)) + if not la[i] then la[i] = (i%2==0) and {} or {head[1]} end + if not lb[i] then lb[i] = (i%2==0) and {} or {head[2]} end + local n = string.format("[%s] %s", st.t or "?", F.stnlist[st.s] or st.s) + la[i][#la[i]+1] = string.format("%02d %06d %-7s %s", st.v, ids[id], st.l, n) + lb[i][#lb[i]+1] = (n:len() < 10 and " " or n:sub(10)) counter = counter + 1 end for i=1,#la,1 do - digiline_send("d"..tostring(i).."a", la[i] or "") - digiline_send("d"..tostring(i).."b", lb[i] or "") + digiline_send("d"..tostring(i).."a", table.concat(la[i] or {" "," "},"\n")) + digiline_send("d"..tostring(i).."b", table.concat(lb[i] or {" "," "},"\n")) end local end_t = os.clock() S.lagrec[#S.lagrec+1] = end_t - start_t diff --git a/Crossroads/nodes/(1760,5,1000).lua b/Crossroads/nodes/(1760,5,1000).lua index ccb559e..7489acc 100644 --- a/Crossroads/nodes/(1760,5,1000).lua +++ b/Crossroads/nodes/(1760,5,1000).lua @@ -1,5 +1 @@ -if event.type=='train' then - if atc_arrow then - atc_set_text_outside('ATL Mithril Line - Ehlodex') - end -end
\ No newline at end of file +--
\ No newline at end of file diff --git a/Crossroads/nodes/(1786,5,994).lua b/Crossroads/nodes/(1786,5,994).lua new file mode 100644 index 0000000..e701f62 --- /dev/null +++ b/Crossroads/nodes/(1786,5,994).lua @@ -0,0 +1 @@ +F.stn2gen("crch", "A1", "R", true, true)
\ No newline at end of file diff --git a/Crossroads/nodes/(1795,5,1000).lua b/Crossroads/nodes/(1795,5,1000).lua index d5beb66..7489acc 100644 --- a/Crossroads/nodes/(1795,5,1000).lua +++ b/Crossroads/nodes/(1795,5,1000).lua @@ -1,5 +1 @@ -if event.type == "train" then - if atc_arrow then - atc_set_text_inside("Next stop: CR-North Station St. 9th Alley") - end -end
\ No newline at end of file +--
\ No newline at end of file diff --git a/Crossroads/nodes/(1801,5,1008).lua b/Crossroads/nodes/(1801,5,1008).lua index 7741b35..72e6533 100644 --- a/Crossroads/nodes/(1801,5,1008).lua +++ b/Crossroads/nodes/(1801,5,1008).lua @@ -1,5 +1,5 @@ -if event.type == "train" then +--[[if event.type == "train" then if atc_arrow then atc_set_text_outside("ATL Mithril Line - Ehlodex") end -end
\ No newline at end of file +end]]
\ No newline at end of file diff --git a/Crossroads/nodes/(2010,3,5938).lua b/Crossroads/nodes/(2010,3,5938).lua index 99bcc37..4716a64 100644 --- a/Crossroads/nodes/(2010,3,5938).lua +++ b/Crossroads/nodes/(2010,3,5938).lua @@ -1,3 +1,4 @@ +do return end if event.type == "punch" then for i = 1, 4, 1 do cancel_route("mary4-testsignal-"..tostring(i)) diff --git a/Crossroads/nodes/(30671,-6,1142).lua b/Crossroads/nodes/(30671,-6,1142).lua new file mode 100644 index 0000000..a333ad4 --- /dev/null +++ b/Crossroads/nodes/(30671,-6,1142).lua @@ -0,0 +1 @@ +F.cpoint("wbx-ind", 300)
\ No newline at end of file |