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

[L4D2] sv_steamgroup fixer


Post New Thread Reply   
 
Thread Tools Display Modes
Neevar
Senior Member
Join Date: Mar 2014
Old 04-26-2018 , 12:04   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #21

can this help for if i have multiple steamgroups?
Neevar is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-26-2018 , 12:59   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #22

Quote:
Originally Posted by Neevar View Post
can this help for if i have multiple steamgroups?
No, the game doesn't support advertising multiple groups.
__________________
asherkin is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 04-27-2018 , 05:12   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #23

Quote:
Originally Posted by asherkin View Post
No, the game doesn't support advertising multiple groups.
In the past it has always worked? I knew valve would remove it eventually (with all the changes this year, screwing up sv_region, screwing up the masterlist, removing the steam group browsing list from their webpage). It will have a negative impact on all legitimate steam servers out there.

Last edited by Visual77; 04-27-2018 at 05:16.
Visual77 is offline
Neevar
Senior Member
Join Date: Mar 2014
Old 09-06-2018 , 22:51   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #24

It seems like when I start the server with this plugin. The first game chapter that loads into the server, it shows the wrong steamgroup. When the second chapter loads, then it shows the correct steamgroup.

Will it work if i do a OnPluginStart to run the command to fix the steamgroup, followed by a changelevel command to reload the map?
Neevar is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 05-26-2019 , 00:30   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #25

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 attach the smx
EDIT: add the sp file
Attached Files
File Type: sp Get Plugin or Get Source ([L4D2]sv_steamgroupfixer.sp - 750 views - 612 Bytes)

Last edited by Tonblader; 05-26-2019 at 07:48. Reason: Add .sp file
Tonblader is offline
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 12-22-2019 , 08:35   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #26

I ran into this error on l4d1.

This fixed it for me. Good work. Cheers!
finishlast is offline
Sout12
Member
Join Date: May 2017
Old 01-26-2020 , 01:32   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #27

Does anyone know if you can use this fix but have multiple group support? I just want my server to be on certain groups steam servers list but have my server be the one that is linked when you click on the "Join this servers steam group button".

Last edited by Sout12; 01-26-2020 at 02:54.
Sout12 is offline
DARG367
AlliedModders Donor
Join Date: Aug 2018
Old 01-26-2020 , 03:12   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #28

Quote:
Originally Posted by Sout12 View Post
Does anyone know if you can use this fix but have multiple group support? I just want my server to be on certain groups steam servers list but have my server be the one that is linked when you click on the "Join this servers steam group button".
The game or any plugin can't support multiple steam server groups.
DARG367 is offline
Sout12
Member
Join Date: May 2017
Old 01-26-2020 , 10:54   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #29

Quote:
Originally Posted by darg367 View Post
The game or any plugin can't support multiple steam server groups.
But, how come on some servers when you join the L4D2 official group their server is listed under that group and when you click on "Join this servers steam group" it links to their own steam group? Seems like newly made groups have the "ID" issue where groups made in 2016 or before don't..

Last edited by Sout12; 01-26-2020 at 11:55.
Sout12 is offline
DARG367
AlliedModders Donor
Join Date: Aug 2018
Old 01-26-2020 , 15:24   Re: [L4D2] sv_steamgroup fixer
Reply With Quote #30

Quote:
Originally Posted by Sout12 View Post
But, how come on some servers when you join the L4D2 official group their server is listed under that group and when you click on "Join this servers steam group" it links to their own steam group? Seems like newly made groups have the "ID" issue where groups made in 2016 or before don't..
I'm not entirely sure about that. I only know and mentioned what I said above because this is what at least 3 other developers have told me on countless occasions when I was wondering the same thing you are.

If you do find something though let me know if you don't mind!
DARG367 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 18:03.


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