Tommy228 / TTT_Spectator_Deathmatch

Spectator Deathmatch for Trouble in Terrorist Town (a Garry's Mod gamemode)
GNU General Public License v3.0
25 stars 27 forks source link

error #86

Open dok441 opened 5 years ago

dok441 commented 5 years ago

[ERROR] addons/spectator_deathmatch-master/lua/specdm_von.lua:801: bad argument #1 to 'error' (table expected, got string)

  1. error - [C]:-1
    1. serialize - addons/spectator_deathmatch-master/lua/specdm_von.lua:801
    2. func - addons/spectator_deathmatch-master/lua/sv_stats.lua:209
      1. unknown - lua/includes/extensions/net.lua:32
MinIsMin commented 5 years ago

Does this happen frequently or when doing something specific? Putting

print(query_str)
print(query)

before sv_stats.lua#L209 should help identifing the problem if it is somehow reproducible. Note that every request is logged in console.

dok441 commented 5 years ago

When you enter these commands in the server console, nothing happens.

MinIsMin commented 5 years ago

No, you need to put the text in the file sv_stats.lua before the line 209.

Did this error occur in normal TTT? If not, please test without any other addons in normal TTT.

dok441 commented 5 years ago

It would be easy to experience it, knowing I'm the reason why this happened, if anything, is used ТТТ2 https://github.com/Alf21/TTT2 Version of your work, sensitive changed, https://github.com/Alf21/TTT_Spectator_Deathmatch It would be great if you implemented this fix into your version so that it works in this mode and you can continue to work on it.