Server: Build (?)
Description and steps to reproduce:
So during my tests, I've found two distinct bugs:
Scenario A:
1. Player 1 and Player 2 are on the same server.
2. Player 2 uploads a material to the Material URL tool then disconnects.
3. Player 1 clicks on the uploaded material in the tool.
4. Player 1 gets the following console error:
Code:
[material_url_2559426779] gamemodes/darkrp/gamemode/core/libraries/sh_workarounds.lua:137: Tried to use a NULL entity!
1. oldNick - [C]:-1
2. oldNick - gamemodes/darkrp/gamemode/core/libraries/sh_workarounds.lua:137
3. Nick - gamemodes/darkrp/gamemode/core/libraries/sh_workarounds.lua:137
4. UpdateToolgun - addons/material_url_2559426779/lua/weapons/gmod_tool/stools/materialurl.lua:778
5. OnRowSelected - addons/material_url_2559426779/lua/weapons/gmod_tool/stools/materialurl.lua:1447
6. OnClickLine - lua/vgui/dlistview.lua:447
7. unknown - lua/vgui/dlistview_line.lua:81
Scenario B:
1. Player 1 and Player 2 are on the same server.
2. Player 2 uploads a material to the Material URL tool then disconnects.
3. Player 1 also disconnects, then reconnects.
4. Player 1 will now see the "Uploader" of the uploaded material as "Unknown" (until Player 2 reconnects).
5. Player 1 clicks on the uploaded material in the tool.
6. Player 1 gets the following console error:
Code:
[material_url_2559426779] addons/material_url_2559426779/lua/weapons/gmod_tool/stools/materialurl.lua:778: attempt to call method 'Nick' (a nil value)
1. UpdateToolgun - addons/material_url_2559426779/lua/weapons/gmod_tool/stools/materialurl.lua:778
2. OnRowSelected - addons/material_url_2559426779/lua/weapons/gmod_tool/stools/materialurl.lua:1447
3. OnClickLine - lua/vgui/dlistview.lua:447
4. unknown - lua/vgui/dlistview_line.lua:81
Note: The uploader's name appears again - no longer as "Unknown" -, if the uploader rejoins, but stays "Unknown" if they remain off the server. Needs more testing.