narc0tiq / evoGUI

A Factorio mod to add a GUI with the biter evolution factor and the current play time. Purely informative.
https://mods.factorio.com/mods/Narc/EvoGUI
MIT License
37 stars 12 forks source link

Attempt to index field 'evoGUI' (a nil value) #71

Closed AesSedai closed 7 years ago

AesSedai commented 7 years ago

Factorio version 0.15.22 EvoGui version 0.5.0

Chat log reads: [evoGUI|on_tick:update_gui] Error: Evo|GUI/evoGUI.lua:101: attempt to index a field 'evoGUI' (a nil value)

This was in an existing game, where EvoGUI was present from the start. Issue occurred when Factorio updated from 0.15.21 to 0.15.22. Changing the Factorio version back to 0.15.21 stops the error from occurring.

narc0tiq commented 7 years ago

I'm mobile at the moment, and it's late here, so the fix will have to wait until tomorrow. But thank you for the report!

Draconomial commented 7 years ago

👍

KaiserTom commented 7 years ago

Important to note that upon starting a new game in 0.15.22 it results in no issues with evoGUI, it works as intended. However anytime you load the save, it results in the error seen above.

narc0tiq commented 7 years ago

So it turns out Factorio is destroying EvoGUI's GUI on each load, for whatever reason, so I just changed the update method to recreate it if necessary (YARM already had this).

Expect a release momentarily.

narc0tiq commented 7 years ago

And done and published; use the in-game updater and you should get a nice working EvoGUI.

narc0tiq commented 7 years ago

Hey, folks, if you're still watching this bug, I found that it's actually a bug in Factorio 0.15.22 which Rseding91 has fixed and kindly shared the details of. Given that, I was able to make a workaround, but I need one or two people other than myself to test and make sure I didn't break anything anew.

So, I need literally anyone who already has EvoGUI installed to try out the new beta release, v0.4.205, and report back here if it's working or if anything broke. Once I get one or two more positive reports, I can release it to the mod portal, as well. Edit: I've gotten some positive feedback, so it's released, but I'll still welcome any other test reports, whether you're playing multiplayer or not.