Files
factorio-clusterio/sharedPlugins/researchSync/dumpResearch.lua
T
2019-07-12 18:52:47 +03:00

15 lines
350 B
Lua

local data = {};
for _, tech in pairs(game.forces["player"].technologies) do
local tech_data = {
tech.name,
tostring(tech.researched),
tostring(tech.level),
}
tech_data = table.concat(tech_data, ':')
table.insert(data, tech_data);
end
game.write_file("researchSync.txt", table.concat(data, "\n"), false, 0)