Tape Measure


Measure tiles and distances

Utilities
1 year, 10 months ago
0.16 - 1.1
3.41K

b [Resolved] Invalid GUI error in 1.0.0

3 years ago

Getting following error when using it in 1.0.0

The mod Tape Measure (18.1.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event tape_measure_tool::on_player_selected_area (ID 49)
LuaGuiElement API call when LuaGuiElement was invalid.
stack traceback:
tape_measure_tool/utility/gui-util.lua:147: in function 'UpdateElementFromPlayersReferenceStorage'
tape_measure_tool/scripts/gui.lua:163: in function <tape_measure_tool/scripts/gui.lua:159>
(...tail calls...)
tape_measure_tool/scripts/measure.lua:47: in function 'SelectionBoxMade'
tape_measure_tool/scripts/measure.lua:27: in function 'handlerFunction'
tape_measure_tool/utility/events.lua:88: in function <tape_measure_tool/utility/events.lua:84>
stack traceback:
[C]: in function 'newindex'
__tape_measure_tool
/utility/gui-util.lua:147: in function 'UpdateElementFromPlayersReferenceStorage'
tape_measure_tool/scripts/gui.lua:163: in function <tape_measure_tool/scripts/gui.lua:159>
(...tail calls...)
tape_measure_tool/scripts/measure.lua:47: in function 'SelectionBoxMade'
tape_measure_tool/scripts/measure.lua:27: in function 'handlerFunction'
tape_measure_tool/utility/events.lua:88: in function <tape_measure_tool/utility/events.lua:84>

3 years ago
(updated 3 years ago)

can you describe the circumstances around when this happened?
I can see how to stop it erroring, but the mods GUI will be in a very odd state at that point.

It looks like the mod tried to update the GUI with the distances, the GUI had existed, but no longer exists. I don't believe any base game process would ever cause this so wonder if another mod you are running deleted my GUI ?

3 years ago

In next release: Assuming this is what is happening I believe I have stopped it erroring. It should handle it well, but at worst it should show warning text on screen, but not crash.

New response