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

Placing, then opening infinity pipe for config causes non-recoverable error in editor #84

Closed zelmak closed 2 years ago

zelmak commented 2 years ago

Describe the Bug

With only Base, Editor Extensions, and the req'd lib installed. Placing an infinity pipe and trying to configure it causes a crash out of the session with unrecoverable error.

The mod Editor Extensions (1.12.2) 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:590: attempt to index field 'infinity_pipe_amount_types' (a nil value) stack traceback: EditorExtensions/scripts/entity/infinity-pipe.lua:590: in function 'create_gui' EditorExtensions/control.lua:436: in function <EditorExtensions/control.lua:412>

To Reproduce

Steps to reproduce the behavior:

  1. Select Single Player -> New Game
  2. Click on User Scenarios: testing (Testing)
  3. Click Play
  4. Scenario loads, get a bunch of migrated content (not sure where that's coming from since I have no other mods installed -- did I somehow overwrite the scenario?) and the game pauses/locks for some kind of loading thing (the radar animation stops for a second or two -- I'm guessing loading the "everything" logistic chest.)
  5. Place an infinity pipe.
  6. Try to open it it for config OR delete it and get an unrecoverable error.

factorio-current.log BugReport.zip

In-game username is ClulessNoob

zelmak commented 2 years ago

Ah, never mind... it wasn't the right scenario. It looks like I'd saved an editor extension save as a scenario a while back and wasn't using the right starting scenario? Sadly, all my "sandbox" builds are now broken.

raiguard commented 2 years ago

That is super strange, I'm not sure why it wouldn't have run the migration. To fix your saves, run the following in the console before opening a pipe: /c __EditorExtensions__ global.infinity_pipe_amount_types = {}