Easy Refineries


Process Crude oil into specific byproducts.

5 years ago
0.13 - 0.17
12

b Migration file error

8 years ago
(updated 8 years ago)

Migration File should be. How you currently have it as "player.force" does not unlock the recipes in a already occurring game with Oil researched.

for index, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()
if force.technologies["oil-processing"].researched then
force.recipes["basic-heavy-oil-processing"].enabled = true
force.recipes["basic-light-oil-processing"].enabled = true
force.recipes["basic-petroleum-gas-processing"].enabled = true
end
if force.technologies["advanced-oil-processing"].researched then
force.recipes["advanced-heavy-oil-processing"].enabled = true
force.recipes["advanced-light-oil-processing"].enabled = true
force.recipes["advanced-petroleum-gas-processing"].enabled = true
end
end

8 years ago

Ah. That explains SOOOO Much.

I hate Migration files.

And it used to work for older versions tooo....

New response