We recently got an error while playing TTT2 (v0.14.3b from Steam) and Damagelogs (v3.12.0 from GitHub).
The error appeared after the round has ended and appeared only for one player (name was redacted).
Maybe this error happened because the player interacted with the Damagelogs screen and the round ended or some other edgecase like that?
Edit: I could reproduce the error when highlighting a player (tested it in an active round and with TTT2 v0.14.5b) and then closing the menu.
Here is the console log:
ServerLog: Round ended.
ServerLog: Result: innocents wins.
[REDACTED] Lua Error:
[tttdamagelogs] vgui.Create failed to create the VGUI component (TipsButton)
1. SetPlayer - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:21
2. UpdatePlayers - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:164
3. DoClick - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:223
4. unknown - lua/vgui/dlabel.lua:253
[REDACTED] Lua Error:
[tttdamagelogs] addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:27: attempt to index field 'Close' (a nil value)
1. SetPlayer - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:27
2. UpdatePlayers - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:164
3. DoClick - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:223
4. unknown - lua/vgui/dlabel.lua:253
ServerLog: Round proper has begun...
I also get another error:
[tttdamagelogs] addons/tttdamagelogs/lua/damagelogs/shared/events.lua:74: attempt to index local 'tbl' (a nil value)
1. InfoFromID - addons/tttdamagelogs/lua/damagelogs/shared/events.lua:74
2. ToString - addons/tttdamagelogs/lua/damagelogs/shared/events/bodyfound.lua:33
3. AddLogsLine - addons/tttdamagelogs/lua/damagelogs/client/listview.lua:134
4. func - addons/tttdamagelogs/lua/damagelogs/client/tabs/damagetab.lua:520
5. unknown - lua/includes/extensions/net.lua:34
We recently got an error while playing TTT2 (v0.14.3b from Steam) and Damagelogs (v3.12.0 from GitHub).
The error appeared after the round has ended and appeared only for one player (name was redacted).
Maybe this error happened because the player interacted with the Damagelogs screen and the round ended or some other edgecase like that?
Edit: I could reproduce the error when highlighting a player (tested it in an active round and with TTT2 v0.14.5b) and then closing the menu.
Here is the console log:
I also get another error: