[2.0.76] elem_tooltip inside simulation appears next to system cursor, and can crash
Posted: Mon Mar 02, 2026 9:17 pm
I'm using Linux on the Wayland renderer if this matters.
Load the game with this debug mod and load any game world:
Two new Tips & Tricks items are added at the top of the list. In both, the simulation adds a LuaGuiElement to the top-left corner which has an elem_tooltip assigned to it, and the simulation cursor is scripted to hover over it.
In the first one, titled "Odd Tooltip", the tooltip is for the iron-plate item and it appears next to the system cursor, instead of next to the simulation cursor. Clicking on the tooltip will close out of the Tips & Tricks interface.
In the second one, titled "Crash Tooltip", the tooltip is for the recipe of iron-plate. It will appear and repeatedly follow the system cursor, and doing anything to attempt leaving this Tip through the interface will cause a game crash.
Deleting the elem_tooltip from the LuaGuiElement and assigning a standard text tooltip instead will produce the expected behaviour of the tooltip appearing next to the simulation cursor.
Load the game with this debug mod and load any game world:
Two new Tips & Tricks items are added at the top of the list. In both, the simulation adds a LuaGuiElement to the top-left corner which has an elem_tooltip assigned to it, and the simulation cursor is scripted to hover over it.
In the first one, titled "Odd Tooltip", the tooltip is for the iron-plate item and it appears next to the system cursor, instead of next to the simulation cursor. Clicking on the tooltip will close out of the Tips & Tricks interface.
In the second one, titled "Crash Tooltip", the tooltip is for the recipe of iron-plate. It will appear and repeatedly follow the system cursor, and doing anything to attempt leaving this Tip through the interface will cause a game crash.
Deleting the elem_tooltip from the LuaGuiElement and assigning a standard text tooltip instead will produce the expected behaviour of the tooltip appearing next to the simulation cursor.