Garry's Mod

Garry's Mod

Retro TeamPlay (RTP) Gamemode + Content
ZC0M  [developer] 13 Nov, 2013 @ 1:44am
[BUG] (FIXED!) Tooltip Drawing on certain Menus failed Lua-Error (Clientside)
Current Status:
FIXED!

About The Error:
Certain VGUI elements in specific menus (specially the Gametype-Vote menu near end-game.) would spam clientside errors regarding missing or nil content for a tooltip. (See below)
[Retro TeamPlayer (RTP) Gamemode + Content] lua/vgui/dtooltip.lua:83: attempt to index field 'Contents' (a nil value) 1. DrawArrow - lua/vgui/dtooltip.lua:83 2. SkinHook - gamemodes/noxctf/gamemode/cl_dermaskin.lua:228 3. unknown - lua/vgui/dtooltip.lua:120

About The Bug:
Caused by short-sightedness on my end, in my rush to create the Derma skin for the VGUI menus, I forgot to add a small line of code that would prevent the game from showing such an error.

About The Fix:
Simply by checking if the content was nil BEFORE trying to draw it, and letting the game respond accordingly was all that was needed. One-line fix.

Additional Information:
Much like the Dropship Passenger bug, it did not immediately alter or ruin any aspect of the gameplay, however it was visually displeasing for the client to have to see lua-errors.

If you required additional help regarding this bug, please post your questions/comments below.

ALL UNRELATRED POSTS WILL BE MOVED OR DELETED. THIS DISCUSSION THREAD IS SPECIFICALLY FOR THE BUG STATED IN THE SUBJECT FIELD.

As allways, you can head over to the Google-Code Project: Current Bugs[code.google.com] page to find out more details on each of the currently known bugs, as well as submit your own for review!
Last edited by ZC0M; 13 Nov, 2013 @ 1:48am