pyanodon / pybugreports

Central bug-report repository for pymods
The Unlicense
5 stars 1 forks source link

Crash when opening pycodex again after creature chamber selection #398

Closed ttyler3 closed 5 months ago

ttyler3 commented 5 months ago

Mod source

Factorio Mod Portal

Which mod are you having an issue with?

Operating system

=Windows 10

What kind of issue is this?

What is the problem?

Crash when opening the pycodex after selecting a TURD upgrade for the creature chamber (recently added to py).

The mod Pyanodons Coal Processing (2.1.19) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event pycoalprocessing::on_gui_click (ID 1)
LuaGuiElement API call when LuaGuiElement was invalid.
stack traceback:
    [C]: in function '__index'
    __pycoalprocessing__/scripts/wiki/wiki.lua:50: in function 'open_wiki'
    __pycoalprocessing__/scripts/wiki/wiki.lua:118: in function 'f'
    __pycoalprocessing__/control.lua:17: in function <__pycoalprocessing__/control.lua:14>

Steps to reproduce

  1. Research and have available for selection the moss and (new) creature chamber TURD recipes
  2. Open the pycodex
  3. Select a research for the creature chamber
  4. Close the pycodex
  5. Open the pycodex
  6. Crash

Additional context

The steps to reproduce were all done on Nauvis. I also have the full py suite if that makes any difference.

Log file

factorio-current.log

notnotmelon commented 5 months ago

Fixed. Thanks for the report. https://github.com/pyanodon/pycoalprocessing/commit/f78fad567253ff4e9f88140cf67cd6b8146372f0