Text Plates


Text shaped metal plates for signs and labels. Letters, numbers and symbols. Iron, copper, large and small variants.

Utilities
1 year, 6 months ago
0.14 - 1.1
237K

b Error when entity is built without the GUI being created.

5 years ago

Nanobots, like many other mods, will fire the on_built_entity event.
This will then result in an error:
textplates::on_built_entity (ID 6) __textplates__/control.lua:131: attempt to index local 'gui' (a nil value)

The way Nanobots will fire the event:
lua script.raise_event( defines.events.on_built_entity, { player_index = player.index, created_entity = entity, revived = true } )

From my early scouting, I suspect this crash occurs because the player doesn't have the item in his cursor, therefore the GUI isn't created, and trying to access it will crash it.

What I'd expect is for the tile to be built with the proper text.