From c019cfb8391dae72a1480e6d8ae8f06ff3d702ee Mon Sep 17 00:00:00 2001 From: autocommitter Date: Thu, 31 Oct 2024 00:00:02 +0100 Subject: State at 2024-10-31 --- auto_yards/nodes/(-588,26,2504).lua | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'auto_yards/nodes/(-588,26,2504).lua') diff --git a/auto_yards/nodes/(-588,26,2504).lua b/auto_yards/nodes/(-588,26,2504).lua index 46e3050..cb800d9 100644 --- a/auto_yards/nodes/(-588,26,2504).lua +++ b/auto_yards/nodes/(-588,26,2504).lua @@ -1,2 +1,26 @@ +function tprint (tbl, indent) + local s = "" + if not indent then indent = 0 end + for k, v in pairs(tbl) do + local formatting = string.rep(" ", indent) .. "['"..k .. "']= " + if type(v) == "table" then + s = s .. formatting .. "{"..tprint(v, indent+1).."}" + else + s = s .. formatting .. tostring(v) + end + s = s .. ", " + end + return s +end + +local str = "CAN_SB!S27!SAND_UNLOAD!DIRT_LOAD!S27_NB!CANNERY!DIRT_UNLOAD!SAND_LOAD" +local fc_table = {""} +for i=2,train_length() do +table.insert(fc_table,str) +end +set_fc(fc_table, true) +print(tprint(get_fc())) + + -- EOL -F.lane_EOL("CAN",true) \ No newline at end of file +--F.lane_EOL("CAN",true) \ No newline at end of file -- cgit v1.2.3