raiguard / EditorExtensions

Extends the Factorio map editor with new features, testing tools, and other utilities to aid with sandbox play and scenario creation.
https://mods.factorio.com/mod/EditorExtensions
Other
28 stars 8 forks source link

Inventory sync crash #14

Closed yeah-toast closed 4 years ago

yeah-toast commented 4 years ago

Just had a crash as soon as I attempted to open the Editor menu on one of my sandbox maps. I was able to open it on others without issue.

The mod Editor Extensions (1.4.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event EditorExtensions::ee-toggle-map-editor (ID 161)
The mod Editor Extensions (1.4.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event EditorExtensions::on_player_toggled_map_editor (ID 116)
__EditorExtensions__/scripts/inventory.lua:82: attempt to get length of local 'sync_inventory' (a nil value)
stack traceback:
    __EditorExtensions__/scripts/inventory.lua:82: in function 'handler'
    __RaiLuaLib__/lualib/event.lua:127: in function <__RaiLuaLib__/lualib/event.lua:28>
    [C]: in function 'toggle_map_editor'
    __EditorExtensions__/control.lua:196: in function 'handler'
    __RaiLuaLib__/lualib/event.lua:127: in function <__RaiLuaLib__/lualib/event.lua:28>
stack traceback:
    __EditorExtensions__/control.lua:196: in function 'handler'
    __RaiLuaLib__/lualib/event.lua:127: in function <__RaiLuaLib__/lualib/event.lua:28>
stack traceback:
    [C]: in function 'toggle_map_editor'
    __EditorExtensions__/control.lua:196: in function 'handler'
    __RaiLuaLib__/lualib/event.lua:127: in function <__RaiLuaLib__/lualib/event.lua:28>
raiguard commented 4 years ago

Duplicate of #9. I'll re-open that issue so people will see it.