Helmod: Assistant for planning your factory

by Helfima

Assistant for planning your factory. Can calculate required ingredients, products, machines, modules, and beacons. Can also calculate power production / consumption.

Utilities
a day ago
0.14 - 2.0
479K

b Error when turning off "Show Hidden"

3 months ago
(updated 3 months ago)

I can toggle "Show hidden" on without problems but when playing together with the Mod "Verbose Engineering" (https://mods.factorio.com/mod/Verbose-Engineering) then it gives the following error when trying to toggle it off:

Error while running event Verbose-Engineering::on_gui_checked_state_changed (ID 3)
Verbose-Engineering/scripts/rocket-silo-circuit-gui.lua:90: attempt to index field 'opened' (a nil value)
stack traceback:
Verbose-Engineering/scripts/rocket-silo-circuit-gui.lua:90: in function 'on_change'
Verbose-Engineering/scripts/rocket-silo-circuit-gui.lua:105: in function <Verbose-Engineering/scripts/rocket-silo-circuit-gui.lua:105>

The same identical experience also happens with "show hidden player crafting".
With "Show disable" and "Show locked recipes" it immediately crashes when toggling it on.
All of these 4 tests give the same Error Message mentioned above.

3 months ago
(updated 3 months ago)

hello the problem is in Verbose-Engineering not helmod, I can't do nothing
Report that on Verbose-Engineering mod.
you can add my comment
he must test the value player.opened ~= nil
local silo_data = storage.silos[player.opened.unit_number]

3 months ago

The thing is, i dont have a rocket silo.
This error comes when i have opened helmod at the start of the game to plan out a starter base, i know it says it comes from the other mod but the thing is i havent interacted with it at that time at all.
All i have done is interacting with this mod and interacting with this Mods ui is what triggers the error message.
However, i will also share this to them just in case they have something unusual going on in there code that somehow breaks there script when im interacting with your Mods UI.

3 months ago

his code listens to all events without filtering and You can find other mod cause same error like the mod tasklist after pinning.

New response