blob: cb800d97128c07750ed2b733abaac4b40da42149 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)
|