mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 23:04:52 +09:00
14 lines
500 B
Lua
14 lines
500 B
Lua
/silent-command
|
|
|
|
local data = {};
|
|
|
|
for _, tech in pairs(game.forces["player"].technologies) do
|
|
if tech.enabled == true and tech.prototype.max_level == 4294967295 then
|
|
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":true");
|
|
else
|
|
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":false");
|
|
end
|
|
end
|
|
|
|
game.write_file("researchSync.txt", table.concat(data, "\n"), false, 0)
|