Code: Select all
table.insert(data.raw["technology"]["automation-2"].effects, {type = "unlock-recipe",recipe = "assembling-machine-1.1"})
Error
Error in assignID, recepie with name "assembling-machine-1.1" does not exist.
My recipe does exist. I've even copied the name to be certain.
Though if I change the code to unlock a recipe existing in the base, it works. Example of that code:
Code: Select all
table.insert(data.raw["technology"]["automation-2"].effects, {type = "unlock-recipe",recipe = "player-port"})
Code: Select all
require ("prototype.item")
require ("prototype.entity")
require ("prototype.recipe")
table.insert(data.raw["technology"]["automation-2"].effects, {type = "unlock-recipe",recipe = "assembling-machine-1.1"})
Thanks in advance!