Raised This Month: $12 Target: $400
 3% 

[L4D2] sv_steamgroup fixer


Post New Thread Reply   
 
Thread Tools Display Modes
Visual77
Veteran Member
Join Date: Jan 2009
Old 01-06-2018 , 05:16   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #11

Well then, I have only one other idea. Delete sv_steamgroup_fixer.smx from your server and compile a new .smx file with this code only.

Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

ConVar g_hSteamGroupCvar;

public void OnPluginStart()
{
	g_hSteamGroupCvar = FindConVar("sv_steamgroup");
}

public void OnConfigsExecuted()
{
	char stringValue[128];
	g_hSteamGroupCvar.GetString(stringValue, sizeof(stringValue));
	
	int intValue = StringToInt(stringValue);
	
	LogMessage("Setting sv_steamgroup %d", intValue);

	g_hSteamGroupCvar.SetInt(intValue);
}
Visual77 is offline
peptobismal
Junior Member
Join Date: Dec 2017
Old 01-10-2018 , 02:59   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #12

Quote:
Originally Posted by Visual77 View Post
Well then, I have only one other idea. Delete sv_steamgroup_fixer.smx from your server and compile a new .smx file with this code only.

Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

ConVar g_hSteamGroupCvar;

public void OnPluginStart()
{
	g_hSteamGroupCvar = FindConVar("sv_steamgroup");
}

public void OnConfigsExecuted()
{
	char stringValue[128];
	g_hSteamGroupCvar.GetString(stringValue, sizeof(stringValue));
	
	int intValue = StringToInt(stringValue);
	
	LogMessage("Setting sv_steamgroup %d", intValue);

	g_hSteamGroupCvar.SetInt(intValue);
}
I put this on my secondary server to try it out, but haven't really had a chance to thoroughly say yes or no if the problem is fixed permanently; however, I can say for the past two hours and after a few map changes it seems to have stuck. Thank you, don't know if this is more or less efficient or the same as reloading the posted plugin.

But it does seem like a simpler way to get the same results at the same spot as the server.cfg without reloading a plugin every time.
peptobismal is offline
joetimmy
Junior Member
Join Date: Jun 2017
Old 01-10-2018 , 05:16   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #13

This was a glitch pertaining to my l4d2 servers that I was trying to fix last sometime in july last year. What I found was that even after creating and using different steam groups that the ‘Join Steam Group’ link in the motd kept pointing to the same steam group belonging to someone else. Later I discovered that the issue occurred only when steam groups used had an odd number ID.

Maybe as the plugin author mentioned, this happens only to steam groups with IDs above the value 16777216 too.
joetimmy is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 01-11-2018 , 11:16   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #14

Quote:
Originally Posted by peptobismal View Post
I put this on my secondary server to try it out, but haven't really had a chance to thoroughly say yes or no if the problem is fixed permanently; however, I can say for the past two hours and after a few map changes it seems to have stuck. Thank you, don't know if this is more or less efficient or the same as reloading the posted plugin.

But it does seem like a simpler way to get the same results at the same spot as the server.cfg without reloading a plugin every time.
This should be even more efficient than reloading the plugin. Only because the original plugin has a clear flaw inside the FixSteamGroupId() callback.

The altered version simply sets the internal value after each map change. If that action is enough to get the MOTD group working, then I believe it would work permanently.

Last edited by Visual77; 01-11-2018 at 11:17.
Visual77 is offline
kot4404
Senior Member
Join Date: Mar 2013
Old 01-11-2018 , 11:44   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #15

Not completly plugin related question but how do people appear in the steam groups section? I'm not in any 100% l4d2 related group and these appear, do server owners just pick random popular group for the server group?
kot4404 is offline
peptobismal
Junior Member
Join Date: Dec 2017
Old 02-03-2018 , 22:45   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #16

Quote:
Originally Posted by Visual77 View Post
Well then, I have only one other idea. Delete sv_steamgroup_fixer.smx from your server and compile a new .smx file with this code only.

Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

ConVar g_hSteamGroupCvar;

public void OnPluginStart()
{
	g_hSteamGroupCvar = FindConVar("sv_steamgroup");
}

public void OnConfigsExecuted()
{
	char stringValue[128];
	g_hSteamGroupCvar.GetString(stringValue, sizeof(stringValue));
	
	int intValue = StringToInt(stringValue);
	
	LogMessage("Setting sv_steamgroup %d", intValue);

	g_hSteamGroupCvar.SetInt(intValue);
}
I can confirm that this is working perfectly. Thank you!
peptobismal is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 02-04-2018 , 03:48   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #17

Description: VAAAAAAAAALVE
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 02-04-2018 , 09:32   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #18

Works fine very well.

Thanks..
Mi.Cura is offline
krokroJoujou
Member
Join Date: Mar 2017
Old 02-04-2018 , 12:29   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #19

Quote:
Originally Posted by kot4404 View Post
Not completly plugin related question but how do people appear in the steam groups section? I'm not in any 100% l4d2 related group and these appear, do server owners just pick random popular group for the server group?
This is due to hax iirc, even if you are in 0 groups in your profile you will still see stupid group servers in the server group list.
krokroJoujou is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 02-04-2018 , 17:15   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #20

Quote:
Originally Posted by krokroJoujou View Post
This is due to hax iirc, even if you are in 0 groups in your profile you will still see stupid group servers in the server group list.
Following games can have that effect as well. Open up your profile page in steam and click on "Games" under your badges. It will give you 4 tabs. The third tab from the left is called "Followed". Click on it and unfollow all the games there. That should do it.

Quote:
Originally Posted by peptobismal View Post
I can confirm that this is working perfectly. Thank you!
Glad I could help.

Last edited by Visual77; 02-04-2018 at 17:17.
Visual77 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 11:45.


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