Did a touch of debugging, found out that of the indicated line of data.raw.item[k].localised_name[3] = deadlock_stack_size
that it crashes on, the data.raw.item[k]
is:
{
flags = {
"hidden"
},
icon = "__logicarts__/graphics/sticker-icon.png",
icon_size = 32,
localised_description = {
"description.stack-size",
"1"
},
name = "logicarts-item-deadlock-stack-empty-barrel",
order = "logicarts-z",
stack_size = 1,
type = "item"
}
So it's caused by the logicarts mod, which has no localised_name
, only a localised_description
, and even its localised_description
has only two entries, not 3, so it seems like that line just needs a nil
check or two since it is accepted by the engine.