Galdoc's manufacturing

by Galdoc

What if assemblers only assembled? This is an overhaul mod that introduces interesting production chains and design choices. New ores, new concepts, new assemblers, new intermediates -- and new challenges to overcome.

Overhaul
2 months ago
1.1
1.97K
Manufacturing

g Crash with factory planner

1 year, 3 months ago

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>
1 year, 3 months ago

Hello, Factory Planner dev here. While you are right that this mod caused the crash, but it was actually FP that didn't deal with a particular situation properly. I fixed this now, thanks. Release won't be out for a bit still though.

1 year, 3 months ago

Hey! I fixed it on my end too. Should be good now. ;)

1 year, 3 months ago

I use HelMod with FNEI mod together, works better.

New response