[0.16.25] AssignID error when deleting base recipe
Posted: Mon Feb 26, 2018 1:47 pm
Hi,
I found an unexpected behavior in the engine while tinkering with my own mod.
I was creating a different recipe for "electronic-circuit" and erased the old one, like so:
When loading this, factorio threw an error. These are the lines from factoro-current.log:
I did not change the prototype for the item "electronic-circuit". Does that mean, that the recipe for "productivity-module" references the recipe for "electronic-circuit" and not the item "electronic-circuit"? If yes, is this a bug or the intended behavior?
I found an unexpected behavior in the engine while tinkering with my own mod.
I was creating a different recipe for "electronic-circuit" and erased the old one, like so:
Code: Select all
data:extend{
{
type = "recipe",
name = "new-recipe-for-electronic-circuit",
normal =
{
...
result = "electronic-circuit",
},
expensive =
{
...
result = "electronic-circuit",
}
}
}
data.raw.recipe["electronic-circuit"] = nil
Code: Select all
...
2.013 Error ModManager.cpp:1023: Error in assignID, recipe with name 'electronic-circuit' does not exist.
Source: productivity-module (module).
...