csgo-multi-1v1
csgo-multi-1v1 copied to clipboard
Error in log
L 07/17/2018 - 19:58:31: [SM] Exception reported: Plugin handle 510051 is invalid (error 1) L 07/17/2018 - 19:58:31: [SM] Blaming: arena/multi1v1.smx L 07/17/2018 - 19:58:31: [SM] Call stack trace: L 07/17/2018 - 19:58:31: [SM] [0] Call_StartFunction L 07/17/2018 - 19:58:31: [SM] [1] Line 199, multi1v1/natives.sp::Native_GivePlayerArenaWeapons L 07/17/2018 - 19:58:31: [SM] [3] Multi1v1_GivePlayerArenaWeapons L 07/17/2018 - 19:58:31: [SM] [4] Line 795, C:\Users\Admin\Desktop\New Arena\multi1v1.sp::SetupPlayer L 07/17/2018 - 19:58:31: [SM] [5] Line 694, C:\Users\Admin\Desktop\New Arena\multi1v1.sp::Event_OnRoundPostStart
- Plugin version: 1.1.10-dev
- Sourcemod version: 6245
Plugin version: 1.1.10-dev
Can you give an exact version? What commit is this compiled from?
Are there steps to reproduce this? This isn't necessarily a multi1v1 problem, it could be another plugin that registers its own round types via Multi1v1_AddRoundType. I don't have enough information to know, though.
I've been seeing this on my server as well. My current theory is that this is caused by a plugin being reloaded automatically at map change because its timestamp has changed. As far as I can tell from reading Sourcemod code, this doesn't cause the OnAllPluginsLoaded forward to be called, and we could end up with an invalid handle in g_RoundTypeSourcePlugin.
I haven't tested this, but I think calling LoadRoundTypes() from our OnMapStart() should be enough to fix this. The old plugin handle would be invalidated by LevelInit, and OnMapStart is called later by ServerActivate.