Mod migration not enabling tech
Posted: Thu Feb 27, 2020 1:27 pm
I am completely new to modding factorio, so please be kind...
I am working on an update to angels and have everything working except the migration from an old save. There are a couple of disabled technologies that need to be enabled and I haven’t yet figured out how to make that work. Everything is good on a new save, so I am pretty certain this is just a migration problem.
Current migration Lua:
Is there an API reference somewhere I can search? Or just a pointer to how I can trigger three disabled techs to enable themselves. Thanks.
I am working on an update to angels and have everything working except the migration from an old save. There are a couple of disabled technologies that need to be enabled and I haven’t yet figured out how to make that work. Everything is good on a new save, so I am pretty certain this is just a migration problem.
Current migration Lua:
Code: Select all
game.reload_script()
for index, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technology_effects()
end