technology.lua
Code: Select all
table.insert(data.raw["technology"]["circuit-network"].effects, {type = "unlock-recipe",recipe = "train-requests-reader"})
Thank you.
Code: Select all
table.insert(data.raw["technology"]["circuit-network"].effects, {type = "unlock-recipe",recipe = "train-requests-reader"})
If your mod was added to an existing game, script.on_init will be triggered for your mod. Just add this to your event handler:Chess wrote: Sun Jul 18, 2021 9:56 pm I'm creating a mod with a new combinator that interacts with trains and I'd like to unlock it with the vanilla "circuit-network" technology. …
But it doesn't work in saves that already researched that technology. How can I fix that?
Code: Select all
for _, force in pairs(game.forces) do
force.reset_technology_effects()
end