[0.18.14] on_gui_closed and player.opened = gui issue
Posted: Wed Mar 18, 2020 11:12 pm
It seems that the recent update to 0.18.14 has broken the way assigning a custom GUI to player.opened works.
Even though I have specific conditions on on_gui_closed to look for my GUI and only close it if it's an appropriate time to do so, it's instantly closing anyway when I assign it to player.opened, causing my inserters mod to crash.
Definitely works fine in 0.18.12, 0.18.13 unconfirmed, but since people are reporting specifically that my mod broke in 0.18.14, I suspect it works in 0.18.13.
To cause these issues, use my inserters mod: https://mods.factorio.com/mod/bobinserters
Point to an inserter, press SHIFT+E, or CTRL+E to open the "Screen" GUI. (It also opens on the left when you click an inserter to open the inserter GUI, but that one isn't crashing because it's not using player.opened = gui)
Even though I have specific conditions on on_gui_closed to look for my GUI and only close it if it's an appropriate time to do so, it's instantly closing anyway when I assign it to player.opened, causing my inserters mod to crash.
Definitely works fine in 0.18.12, 0.18.13 unconfirmed, but since people are reporting specifically that my mod broke in 0.18.14, I suspect it works in 0.18.13.
To cause these issues, use my inserters mod: https://mods.factorio.com/mod/bobinserters
Point to an inserter, press SHIFT+E, or CTRL+E to open the "Screen" GUI. (It also opens on the left when you click an inserter to open the inserter GUI, but that one isn't crashing because it's not using player.opened = gui)