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 in test scenario #90

Closed GeneralTanker closed 2 years ago

GeneralTanker commented 2 years ago

Describe the Bug

When in the test scenario opening the Infinity pipe GUI crashes the GUI

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

Error while running event EditorExtensions::on_gui_opened (ID 86) EditorExtensions/scripts/entity/infinity-pipe.lua:593: attempt to index field 'infinity_pipe_amount_types' (a nil value) stack traceback: EditorExtensions/scripts/entity/infinity-pipe.lua:593: in function 'create_gui' EditorExtensions/control.lua:452: in function <EditorExtensions/control.lua:428>

To Reproduce

  1. Go into test scenario
  2. Place Infinity pipe
  3. Click the Infinity pipe to open the GUI
  4. Crash

Log file

factorio-current.log

Save file

Test 112.zip

raiguard commented 2 years ago

I have no idea how your save got into that state, the table should have been added during mod migrations to 1.12.0. You can fix it by typing the following:

/c __EditorExtensions__ global.infinity_pipe_amount_types = {}