------------------------------------ -- PARSE SPACE COMBAT CONFIG DATA -- ------------------------------------ desired_column = nil default_column = nil for n,line in ipairs( CONFIG_TABLE ) do -- see if we have moved onto a new variable if ((line[1] ~= nil) and (string.len(line[1]) > 0)) then configtype = line[1] end if (line[2] ~= nil and string.len(line[2]) > 0 and configtype ~= nil) then local variable = line[2] local value = line[3] if (variable ~= nil and value ~= nil) then execute( 'config.SpaceCombat.' .. configtype .. '.' .. variable .. ' = ' .. value .. '; ' ); end end end