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
26 stars 6 forks source link

Crash when opening Interstellar Map in Space Exploration+Krastorio2 Mod #102

Closed mibitzi closed 1 year ago

mibitzi commented 1 year ago

Description

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

Error while running event EditorExtensions::on_gui_opened (ID 87)
__EditorExtensions__/scripts/infinity-loader.lua:131: attempt to index local 'entity' (a nil value)
stack traceback:
    __EditorExtensions__/scripts/infinity-loader.lua:131: in function 'handler'
    __core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>

Reproduction

  1. In Space Exploration + Krastorio 2 game
  2. Open "Star Map"
  3. Go to "Interstellar Map", game crashes
raiguard commented 1 year ago

Thanks for the report. I fixed it, but I'm a bit baffled at how this happened in the first place. The player has an entity open, but the entity doesn't exist!? It's strange.