raiguard / Factorio-InfinityMode

A modernized and optimized replacement for Creative Mode in Factorio. Tools are consolidated and updated to be both more functional and more streamlined.
MIT License
8 stars 2 forks source link

crash to menu after creating a new BP. #14

Closed Calibretto22 closed 5 years ago

Calibretto22 commented 5 years ago

i got this erromessage:

The mod Infinity Mode caused a non-recoverable error. Please report this error to the mod author.

Error while running event InfinityMode::on_player_setup_blueprint (ID 68) LuaFluidBox API call when LuaFluidBox was invalid. stack traceback: [string "local n, v = "serpent", "0.30" -- (C) 2012-17..."]:71: in function 'val2str' [string "local n, v = "serpent", "0.30" -- (C) 2012-17..."]:95: in function 'val2str' [string "local n, v = "serpent", "0.30" -- (C) 2012-17..."]:95: in function 'val2str'

(...tail calls...) InfinityMode/scripts/infinity-wagon.lua:105: in function 'handler' stdlib/stdlib/event/event.lua:315: in function 'pcall' stdlib/stdlib/event/event.lua:335: in function 'dispatch_event' stdlib/stdlib/event/event.lua:413: in function <stdlib/stdlib/event/event.lua:369> stack traceback: [C]: in function '__len' [string "local n, v = "serpent", "0.30" -- (C) 2012-17..."]:71: in function 'val2str' [string "local n, v = "serpent", "0.30" -- (C) 2012-17..."]:95: in function 'val2str' [string "local n, v = "serpent", "0.30" -- (C) 2012-17..."]:95: in function 'val2str'

(...tail calls...) InfinityMode/scripts/infinity-wagon.lua:105: in function 'handler' stdlib/stdlib/event/event.lua:315: in function 'pcall' stdlib/stdlib/event/event.lua:335: in function 'dispatch_event' stdlib/stdlib/event/event.lua:413: in function <stdlib/stdlib/event/event.lua:369>

i'll do some research. the number of the BP seems low - it could be an old one.

Calibretto22 commented 5 years ago

it happens whenever i make a new BP. wether there are infinityitems included or not. i experienced crashes with

the crashes did not occur

so i suspect some existing infinity-wagons (or blueprints) in the existing savegame.

Calibretto22 commented 5 years ago

the error only happens after loading a savegame with an older version of IM.

raiguard commented 5 years ago

Fixed for the next version.

raiguard commented 5 years ago

v0.6.1 has been released.