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

sv_steamgroup showing wrong group!!


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-20-2017 , 09:43   Re: sv_steamgroup showing wrong group!!
Reply With Quote #21

Quote:
Originally Posted by 76561198012765823 View Post
this is going to make me cry i guess there is nothing that can be done other then complain to valve?
Correct. You need to cry to Valve regarding issues with vanilla servers, as well as if you mean functionality of vanilla servers should be changed.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Sahrechiiz
Junior Member
Join Date: Jun 2016
Old 07-17-2017 , 02:18   Re: sv_steamgroup showing wrong group!!
Reply With Quote #22

I've had the same problem... Mine shows correctly in the steamgroup server list on the main menu. But the link on the motd is wrong. It redirect to another group. A year passed , yet i still couldn't find a solution.

Quote:
Originally Posted by arne1288 View Post
You're saying you have tried your Steam Group URL and the 64-bit Steam ID of the group, but none of them are the ones you should use:

If this one is the group you want, you should set your steam group variable to "26665881".

However, if the second (almost identical) one here is the group you want, then you should set your steam group variable to "27836379".

I assume that the username 76561198012765823 means that the Steam ID there is yours, the above two groups are based on the two groups that this Steam ID64 is a member of.
One little question. How did you find these 2 ids ? I thought it could only be found in the admin page. I know the ID64 could be found by that xml link. Just curious how you do that.
Sahrechiiz is offline
Tehcookeh
Junior Member
Join Date: Aug 2016
Old 08-24-2017 , 03:44   Re: sv_steamgroup showing wrong group!!
Reply With Quote #23

I'm having the same issue as well on my server. The steam group ID I'm using for sv_steamgroup is without a doubt, correct. The server appears in the searching lists in-game, as it should. The motd.txt and host.txt are displaying the images I want exactly.

However, just like the peeps above me, the section in the bottom right corner to "click to join this server's group page" takes me to an entirely random person's steamgroup with only 2 members.

No idea what in the world is causing it =(
Tehcookeh is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-24-2017 , 12:20   Re: sv_steamgroup showing wrong group!!
Reply With Quote #24

Quote:
Originally Posted by Tehcookeh View Post
I'm having the same issue as well on my server. The steam group ID I'm using for sv_steamgroup is without a doubt, correct. The server appears in the searching lists in-game, as it should. The motd.txt and host.txt are displaying the images I want exactly.

However, just like the peeps above me, the section in the bottom right corner to "click to join this server's group page" takes me to an entirely random person's steamgroup with only 2 members.

No idea what in the world is causing it =(
Can you please post the 64-bit ID for your group and the group it is directing to, and the value you've set sv_steamgroup to.
__________________
asherkin is offline
Tehcookeh
Junior Member
Join Date: Aug 2016
Old 08-24-2017 , 14:25   Re: sv_steamgroup showing wrong group!!
Reply With Quote #25

Quote:
Originally Posted by asherkin View Post
Can you please post the 64-bit ID for your group and the group it is directing to, and the value you've set sv_steamgroup to.
Sure. I sent you the group ID's and etc. as a PM as to not flood my group or the other person's group.
Tehcookeh is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-24-2017 , 15:09   Re: sv_steamgroup showing wrong group!!
Reply With Quote #26

This took me a little while to work out, and it is so fucking Valve it is unbelievable.

Try this little plugin out:
See https://forums.alliedmods.net/showthread.php?p=2544331 instead!

Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
	name        = "sv_steamgroup fixer",
	author      = "asherkin",
	description = "VAAAAAAAAAAALVE",
	version     = "1.0.0",
	url         = "https://forums.alliedmods.net/showthread.php?t=285399"
};

public void OnConfigsExecuted()
{
	ConVar steamgroupCvar = FindConVar("sv_steamgroup");
	int steamgroupOldInt = steamgroupCvar.IntValue;
	
	char steamgroupString[128];
	steamgroupCvar.GetString(steamgroupString, sizeof(steamgroupString));
	
	int steamgroupInt = StringToInt(steamgroupString);
	
	steamgroupCvar.IntValue = steamgroupInt;
	
	PrintToServer("Corrected sv_steamgroup from %d to %d.", steamgroupOldInt, steamgroupInt);
}
You can compile it with https://spider.limetech.io/. It has no settings, it should just fix the problem.

EDIT:
Note, I'm fairly sure this is the problem, but OnConfigsExecuted might not be early enough to correct it because the server caches the value.
So don't be too disheartened if it doesn't work, it'll just need a little more finesse.
__________________

Last edited by asherkin; 08-25-2017 at 14:18.
asherkin is offline
Tehcookeh
Junior Member
Join Date: Aug 2016
Old 08-24-2017 , 15:19   Re: sv_steamgroup showing wrong group!!
Reply With Quote #27

Quote:
Originally Posted by asherkin View Post
This took me a little while to work out, and it is so fucking Valve it is unbelievable.

Try this little plugin out:
Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = {
	name        = "sv_steamgroup fixer",
	author      = "asherkin",
	description = "VAAAAAAAAAAALVE",
	version     = "1.0.0",
	url         = "https://forums.alliedmods.net/showthread.php?t=285399"
};

public void OnConfigsExecuted()
{
	ConVar steamgroupCvar = FindConVar("sv_steamgroup");
	int steamgroupOldInt = steamgroupCvar.IntValue;
	
	char steamgroupString[128];
	steamgroupCvar.GetString(steamgroupString, sizeof(steamgroupString));
	
	int steamgroupInt = StringToInt(steamgroupString);
	
	steamgroupCvar.IntValue = steamgroupInt;
	
	PrintToServer("Corrected sv_steamgroup from %d to %d.", steamgroupOldInt, steamgroupInt);
}
You can compile it with https://spider.limetech.io/. It has no settings, it should just fix the problem.

EDIT:
Note, I'm fairly sure this is the problem, but OnConfigsExecuted might not be early enough to correct it because the server caches the value.
So don't be too disheartened if it doesn't work, it'll just need a little more finesse.

I tried it out and it worked on the first try. Thanks!
Tehcookeh is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-24-2017 , 15:21   Re: sv_steamgroup showing wrong group!!
Reply With Quote #28

Quote:
Originally Posted by Tehcookeh View Post
I tried it out and it worked on the first try. Thanks!
Sweet! I'll post it in the Plugins forum later.
__________________
asherkin is offline
Tehcookeh
Junior Member
Join Date: Aug 2016
Old 08-24-2017 , 15:34   Re: sv_steamgroup showing wrong group!!
Reply With Quote #29

Quick update: It works as intended on the first server, thanks again. My second server it's still showing the incorrect group. Maybe the group value is cached or something?
Tehcookeh is offline
ASKER_CZ
BANNED
Join Date: Nov 2016
Old 08-24-2017 , 15:45   Re: sv_steamgroup showing wrong group!!
Reply With Quote #30

Can anyone tell me main meaning of "sv_steamgroup" ? What changes if i use this cvar on my servers?

Last edited by ASKER_CZ; 08-24-2017 at 15:46.
ASKER_CZ is offline
Reply



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 17:21.


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