Raised This Month: $ Target: $400
 0% 

[L4D2] sv_steamgroup fixer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Plugin ID:
5784
Plugin Version:
1.1.0
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    52 
    Plugin Description:
    Fixes the MOTD Join Group button linking to the wrong Steam Group for some groups.
    Old 08-25-2017 , 15:14   [L4D2] sv_steamgroup fixer
    Reply With Quote #1

    This plugin fixes a rather silly bug in L4D2 where for some Steam Groups, setting sv_steamgroup correctly will link to a different Steam Group on the MOTD.

    This is required for anyone with a Steam Group ID higher than 16777216 (and only for those people) for the Join Group button to work correctly.

    Technical description:
    Spoiler


    Enjoy!
    Attached Files
    File Type: sp Get Plugin or Get Source (sv_steamgroup_fixer.sp - 2038 views - 1.4 KB)
    __________________

    Last edited by asherkin; 08-25-2017 at 15:15.
    asherkin is offline
    Tehcookeh
    Junior Member
    Join Date: Aug 2016
    Old 08-25-2017 , 22:16   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #2

    Thanks again for your help solving the issue earlier in the previous thread. I'm sure there are other servers out there effected by Valve's goof. And now an easy fix!
    Tehcookeh is offline
    Sahrechiiz
    Junior Member
    Join Date: Jun 2016
    Old 08-25-2017 , 23:26   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #3

    I put it in and restart the server.

    sm plugins list shows it's fail to load.

    59 <Failed> "sv_steamgroup fixer" (1.1.0) by asherkin

    So i try to compile it on my server.

    SourcePawn Compiler 1.6.3
    Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

    sv_steamgroup_fixer.sp(4) : warning 207: unknown #pragma
    sv_steamgroup_fixer.sp(4) : error 038: extra characters on line
    sv_steamgroup_fixer.sp( : error 001: expected token: ";", but found "-identifier-"
    sv_steamgroup_fixer.sp(14) : error 010: invalid function or declaration
    sv_steamgroup_fixer.sp(16) : error 010: invalid function or declaration
    sv_steamgroup_fixer.sp(1 : error 010: invalid function or declaration
    sv_steamgroup_fixer.sp(22) : error 010: invalid function or declaration
    sv_steamgroup_fixer.sp(25) : error 010: invalid function or declaration
    sv_steamgroup_fixer.sp(27) : error 010: invalid function or declaration
    sv_steamgroup_fixer.sp(33) : error 001: expected token: ";", but found "-identifier-"
    sv_steamgroup_fixer.sp(49) : error 021: symbol already defined: "void"
    sv_steamgroup_fixer.sp(49) : error 017: undefined symbol "convar"
    sv_steamgroup_fixer.sp(49) : error 029: invalid expression, assumed zero
    sv_steamgroup_fixer.sp(49) : fatal error 127: too many error messages on one line

    Compilation aborted.
    13 Errors.
    Sahrechiiz is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 08-26-2017 , 06:01   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #4

    Quote:
    Originally Posted by Sahrechiiz View Post
    SourcePawn Compiler 1.6.3
    Your SourceMod version is ancient and unsupported.
    __________________

    Last edited by asherkin; 12-22-2019 at 11:00.
    asherkin is offline
    Dwolff22
    Junior Member
    Join Date: Jul 2016
    Old 09-17-2017 , 10:31   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #5

    MAte the plugin work only at the 1 campaing.if i change to another the group changes again to the wrong one =/
    Dwolff22 is offline
    PatriotGames
    AlliedModders Donor
    Join Date: Feb 2012
    Location: [email protected]:/# rm -rf /
    Old 10-03-2017 , 16:11   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #6

    Quote:
    Originally Posted by Dwolff22 View Post
    MAte the plugin work only at the 1 campaign.if i change to another the group changes again to the wrong one =/
    This is my experience too. Even on map change the "Join this servers steam group" link reverts back to the incorrect steam group. Hope you can address this issue because the plugin would be very helpful.

    Cheers,

    PG
    PatriotGames is offline
    Sahrechiiz
    Junior Member
    Join Date: Jun 2016
    Old 11-03-2017 , 20:27   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #7

    Finally got sometime to deal with my old server... I now use the latest stable release of sm.
    After some testing. It's not working.(sm1.8.0.6035 mm1.10.7-dev)
    Sahrechiiz is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 01-01-2018 , 15:12   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #8

    Quote:
    Originally Posted by PatriotGames View Post
    This is my experience too. Even on map change the "Join this servers steam group" link reverts back to the incorrect steam group. Hope you can address this issue because the plugin would be very helpful.

    Cheers,

    PG
    This might be a shot in the dark, but it could work. Add this to source file and recompile.

    Code:
    public void OnMapStart()
    {
    	FixSteamGroupId();
    }
    Visual77 is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 01-01-2018 , 18:37   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #9

    Quote:
    Originally Posted by Visual77 View Post
    This might be a shot in the dark, but it could work. Add this to source file and recompile.

    Code:
    public void OnMapStart()
    {
    	FixSteamGroupId();
    }
    A call to "FixSteamGroupId();" from any kind of events where you find it "breaking it's functionality" may re-fix it again. ;)

    If you believe you can afford the calculations on your system without eventually compromising the quality of your game server, you could even add it to be run more often using things like round start, player spawn, etc.
    __________________
    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
    peptobismal
    Junior Member
    Join Date: Dec 2017
    Old 01-06-2018 , 02:17   Re: [L4D2] sv_steamgroup fixer
    Reply With Quote #10

    Quote:
    Originally Posted by Visual77 View Post
    Code:
    public void OnMapStart()
    {
    	FixSteamGroupId();
    }
    I have found that the above does not seem to work... and it sometimes actually changes the Steam Group that I used to see to a completely different Steam Group.

    So... I think reloading the FixSteamGroupId() on map start probably isn't a great idea if it's already "fixed"? Maybe? So I tried compiling it with OnMapStart() being closely resembling of OnPluginStart() and placing it above the OnSteamGroupChanged() or whatever function... this as well fails to compile and seems to be a bit more of a headache than necessary for such a simple plugin.

    I think since I found that server.cfg is loaded every map start that a simple addition of "sm plugins reload sv_steamgroup_fixer" may be a better solution or might run into the same issue? I dunno, it's not exactly outputting or actually changing the sv_steamgroup in the config file... so, I guess I will try it out? Or maybe add an "exec <config file>" with this command (and other quick little sm commands that seem to be not changing permanently) in place so that I don't have to mess with it?

    Last edited by peptobismal; 01-06-2018 at 02:20.
    peptobismal 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:34.


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