Control.lua
Code: Select all
require("libs/logger")
local function GetTech()
LOGGER = Logger.new("datascan", "technology", false)
LOGGER.log("Start")
local dummyforce = game.create_force("dummy")
dummyforce.enable_research()
dummyforce.research_all_technologies(false)
dummyforce.reset()
for _, tech in pairs(dummyforce.technologies) do
LOGGER.log("Name\n")
LOGGER.log(tech.name)
LOGGER.log("\n")
end
end
local function onInit()
GetTech()
end
script.on_init(onInit)