Open InvexByte opened 7 years ago
Whoa, yeah; RegClientCookie is typically only called at plugin startup, with clients joining afterwards. GoTV already being present, and calling this afterwards is as just asking for trouble. I'm sure you've noticed that multi1v1_autospec and multi1v1_hidestats are fine, because they're not hidden away.
At one point, this seemed a little more familiar to everything else. https://github.com/splewis/csgo-multi-1v1/blob/2710defb25f7f628cb6c950379325b54ed55d120/scripting/multi1v1/generic.sp#L96 cookies were already generated, and created via https://github.com/splewis/csgo-multi-1v1/blob/2710defb25f7f628cb6c950379325b54ed55d120/scripting/multi1v1.sp#L160
Was splewis wrong for doing this? no. Reverting back to that known pattern that was there would fix this, or if he calls CloseHandle(FindNamedCookie("cookies")) in OnPluginStart that would almost certainly paper over this.
For context and information on the issue please read: https://forums.alliedmods.net/showthread.php?t=296658
Summary
tv_enable 1
in server.cfg), plugin works normallysm_cookie_cache
table). The invalid rows have same player field (auth id) and same name field but an invalid cookie_id (that does not exist in thesm_cookies
table). See: https://i.imgur.com/VQ1v6DF.png https://i.imgur.com/p9BahlN.pngReplicating the Bug
This may or may not be a SM bug. May just be a plugin bug. However, it does seem that SM allows the clientprefs database to reach an invalid state (with entries in
sm_cookies_cache
containing duplicate rows with an invalid non-existent cookie_id).Comments by psychonic and asherkin in IRC:
Any help/ideas to test are appreciated.