Closed SebastianL-NT closed 4 years ago
Because this is related to damagelogs and the author refused to work together, the support has stopped. If this has no connection with other problems, there is nothing to do (on our side). Probably the author of damagelogs could help.
Anyways, I gave a look into the problem.
It's definitely not caused by GetInnocentFilter
because this function always returns a table: https://github.com/TTT-2/TTT2/blob/31a2d7255ae199f03f842b2884a45d598c8560a4/gamemodes/terrortown/gamemode/server/sv_gamemsg.lua#L110
It's caused by the function SendConfirmedTraitors
, because this function does not exist in TTT2. It got removed.
You could use https://github.com/TTT-2/TTT2/blob/91af1467ab277e4598f9fcf31058a6a68fd01634/gamemodes/terrortown/gamemode/server/sv_networking.lua#L178 instead. But networking roles is a bit complicated.
Version: GitHub 0.7.2b with #613
Describe: If player has aslay and round begin there is lua error with SendConfirmedTraitors(GetInnocentFilter(false)) (Line ~450 in lua/damagelogs/server/autoslay.lua). Second function should return table with innocents (alive and dead), but there is nothing instead. It will cause lua error and problems with prep2begin timer. It seems to be problem with GetInnocentFilter and it is TTT function.
Steps to reproduce the behaviour:
Expected behaviour
There should be no lua error and GetInnocentFilter(false) should return table with innocents.
Context (please provide as much as you can)
Additional context
Logs: (I have tons of "debug" prints, sorry for that mess)