Krastorio 2


An overhaul mod focusing on end-game technologies and moderately increased complexity.

Overhaul
6 months ago
0.18 - 1.1
337K
Transportation Logistics Trains Combat Armor Mining Fluids Logistic network Manufacturing Power Storage

b [Fixed] Bug on Krastorio 2 gui close

3 years ago

The mod Krastorio 2 (1.1.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Krastorio2::on_gui_closed (ID 86)
LuaGuiElement API call when LuaGuiElement was invalid.
stack traceback:
[C]: in function 'index'
__flib
/gui-beta.lua:56: in function 'read_action'
...2__/lib/private/control-scripts/planetary-teleporter.lua:667: in function 'callback'
...control-scripts/control-lib/control-callbacks-merger.lua:44: in function <...control-scripts/control-lib/control-callbacks-merger.lua:41>

3 years ago

Replicated the error.
To be more specific this error happens when closing the mini-wiki with the research shortcut key.

3 years ago

Replicated the error.
To be more specific this error happens when swapping focus from mini-wiki to another window.
For example, opening mini-wiki, then pressing the research shortcut key.

3 years ago

Thanks for the report. This is actually a problem with flib, and I've fixed that, but I also added a check to K2 to prevent this. This happens because the miniwiki and the planetary teleporter GUI use different systems (miniwiki uses Linver's custom GUI framework, and the PT uses flib GUI).