AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] sv_steamgroup fixer (https://forums.alliedmods.net/showthread.php?t=300683)

Visual77 01-06-2018 05:16

Re: [L4D2] sv_steamgroup fixer
 
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);
}


peptobismal 01-10-2018 02:59

Re: [L4D2] sv_steamgroup fixer
 
Quote:

Originally Posted by Visual77 (Post 2570105)
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.

joetimmy 01-10-2018 05:16

Re: [L4D2] sv_steamgroup fixer
 
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.

Visual77 01-11-2018 11:16

Re: [L4D2] sv_steamgroup fixer
 
Quote:

Originally Posted by peptobismal (Post 2570975)
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.

kot4404 01-11-2018 11:44

Re: [L4D2] sv_steamgroup fixer
 
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?

peptobismal 02-03-2018 22:45

Re: [L4D2] sv_steamgroup fixer
 
Quote:

Originally Posted by Visual77 (Post 2570105)
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!

eyal282 02-04-2018 03:48

Re: [L4D2] sv_steamgroup fixer
 
Description: VAAAAAAAAALVE

Mi.Cura 02-04-2018 09:32

Re: [L4D2] sv_steamgroup fixer
 
Works fine very well.

Thanks..

krokroJoujou 02-04-2018 12:29

Re: [L4D2] sv_steamgroup fixer
 
Quote:

Originally Posted by kot4404 (Post 2571257)
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.

Visual77 02-04-2018 17:15

Re: [L4D2] sv_steamgroup fixer
 
Quote:

Originally Posted by krokroJoujou (Post 2576376)
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 (Post 2576238)
I can confirm that this is working perfectly. Thank you!

Glad I could help.


All times are GMT -4. The time now is 07:03.

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