[solved] My Entity in existing Technology, path?!
Posted: Mon Oct 03, 2016 6:35 pm
I am currently attempting to add my own entity to a existing technology. I've tried searching for an aswer and this is the code I found and my attempt.
The error message I get when I launch the game is following:
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:
This is my data.lua:
What do I need to change?
Thanks in advance!
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!