You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error AppManagerStates.cpp:1648: The mod Factory Planner (2.0.16) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event factoryplanner::on_configuration_changed
__factoryplanner__/backend/handlers/prototyper.lua:131: attempt to index local 'relevant_map' (a nil value)
stack traceback:
__factoryplanner__/backend/handlers/prototyper.lua:131: in function 'find'
__factoryplanner__/backend/handlers/prototyper.lua:203: in function 'validate_prototype_object'
__factoryplanner__/backend/data/Machine.lua:237: in function 'validate'
__factoryplanner__/backend/data/Line.lua:323: in function 'validate'
__factoryplanner__/backend/data/Object.lua:291: in function '_validate'
__factoryplanner__/backend/data/Floor.lua:238: in function 'validate'
__factoryplanner__/backend/data/Factory.lua:238: in function 'validate'
__factoryplanner__/backend/data/Object.lua:291: in function '_validate'
__factoryplanner__/backend/data/District.lua:121: in function 'validate'
__factoryplanner__/backend/data/Object.lua:291: in function '_validate'
__factoryplanner__/backend/data/Realm.lua:80: in function 'validate'
__factoryplanner__/backend/init.lua:193: in function 'refresh_player_table'
__factoryplanner__/backend/init.lua:248: in function <__factoryplanner__/backend/init.lua:229>
Reproduction
Crash is caused when prototyper.util.find(data_type, prototype, category) is called with
data_type = nil
prototype = offshore-pump
category = nil
So I "fixed" it by adding at the beginning of the find-function:
if prototype == "offshore-pump" and category == nil and data_type == nil then
return nil
end
The text was updated successfully, but these errors were encountered:
Problem Description
Reproduction
Crash is caused when prototyper.util.find(data_type, prototype, category) is called with
data_type = nil
prototype = offshore-pump
category = nil
So I "fixed" it by adding at the beginning of the find-function:
The text was updated successfully, but these errors were encountered: