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)