When this mod is used together with Factory Planner then Factory Planner crashes when starting a map. Guessing that this mod is creating some broken prototype that Factory Planner tries to use.
(This code gets passed a prototype that is just an empty table and it crashes on list[prototype.name] = prototype
)
local function insert_prototype(list, prototype, category)
if category == nil then
---@cast list NamedPrototypes<FPPrototype>
list[prototype.name] = prototype
else
---@cast list NamedPrototypesWithCategory<FPPrototype>
list[category] = list[category] or {name = category, members = {}}
list[category].members[prototype.name] = prototype
end
end
The mod Factory Planner (1.1.70) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event factoryplanner::on_init()
__factoryplanner__/data/handlers/generator.lua:33: table index is nil
stack traceback:
__factoryplanner__/data/handlers/generator.lua:33: in function 'insert_prototype'
__factoryplanner__/data/handlers/generator.lua:191: in function 'generate'
__factoryplanner__/data/handlers/prototyper.lua:101: in function 'build'
__factoryplanner__/data/init.lua:246: in function <__factoryplanner__/data/init.lua:231>