Raised This Month: $18 Target: $400
 4% 

(More) Random crashes and server stuck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Loll10T
Junior Member
Join Date: Jul 2022
Old 09-28-2022 , 13:13   (More) Random crashes and server stuck
Reply With Quote #1

Ok, so I've been testing my Tailscale SRCDS instance for quite a while and after many crashes (just look at this thread) and many SM/MM wipes, the server managed to stop changing levels whenever a chapter is finished.

I've verified game files, I renamed the addons folder and nothing seems to fix it.
The only workaround I've found is to disconnect, then reconnect to start the next chapter.

As for the crash issue, I've noticed that the Multiple Equipment plugin is what causes the crash; however, it only crashes when sv_lan is set to 1. While I'm still not sure why or how to solve that issue, I've found the following in the source code:

Code:
//...
HookEvent("player_first_spawn", ePlayerFirstSpawn); // player_first_spawn is what causes the crash, see above when it's used
//...
public Action ePlayerFirstSpawn(Handle event, const char[] name, bool dont_broadcast)
{
	int client = GetClientOfUserId(GetEventInt(event, "userid")); // Maybe it crashes because of the User ID?

 	if(GetConVarInt(l4d_me_afk_save) == 1)
		SaveEquipment(client);
}
//...
void SaveEquipment(int i) // Saves equipment when AFK
{
	for(int slot = 0; slot <= 4; slot++)
	{
		if(IsSurvivor(i))
		{
			BackupItemName[i][slot] = ItemName[i][slot];
			BackupItemInfo[i][slot][0] = ItemInfo[i][slot][0];
			BackupItemInfo[i][slot][1] = ItemInfo[i][slot][1];
			BackupItemInfo[i][slot][2] = ItemInfo[i][slot][2];
			BackupItemInfo[i][slot][3] = ItemInfo[i][slot][3];
		}
	}
}
At this point, I'm just getting told to cope. Sucks for me.
I was thinking about switching from Tailscale to ZeroTier in order to fix some LAN issues (eg. C class error), but now that I have this issue I'm pretty much out of luck.

Last edited by Loll10T; 09-28-2022 at 13:15.
Loll10T is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:58.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode