Raised This Month: $ Target: $400
 0% 

[OB] A2S_RULES truncated response workaround


Post New Thread Reply   
 
Thread Tools Display Modes
Author
psychonic

BAFFLED
Join Date: May 2008
Plugin ID:
1333
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin works around the A2S_RULES issue by removing the notify flag from cvars that don't need it.
    Unapprover:
    Reason for Unapproving:
    No longer needed
    Old 12-15-2009 , 15:22   [OB] A2S_RULES truncated response workaround
    Reply With Quote #1

    Because of a bug that (I'm assuming) only Valve can fix, Orangebox game server responses to A2S_RULES queries are truncated if there are too many ConVars with the Notify flag set.

    This bug affects TF2, DOD:S, Garry's Mod and maybe others.


    Side effects include the rules list in HLSW missing rules (ones from the game, like mp_maxrounds, mp_timelimit, sv_gravity, etc. get cut off before ones from plugins), and plugin trackers such as Sourcemod.net's own stats page showing lower-than-actual counts. This plugin works around the A2S_RULES issue by removing the notify flag from cvars the don't fit one of the two usual reasons for having it:

    1) To alert players ingame when something that will noticeably affect gameplay changes (mp_friendlyfire, sv_gravity, mp_winlimit, etc.)
    2) To respond to rules queries by various tracking utilities (this is why most "_version" cvars on plugins have this flag)


    You can edit the notifystrip.txt file to add/remove cvars from the list of ones to remove the notify flag from. The ones already in the list consist of the following:
    • Useless cvars leftover from HL2 that serve no purpose on these games (ex. r_AirboatViewDampenFreq)
    • Non-version or redundant cvars belonging to plugins that "abuse" the notify flag

    To install, put the smx file in sourcemod/plugins and put the notifystrip.txt in sourcemod/configs.
    Attached Files
    File Type: sp Get Plugin or Get Source (notifystrip.sp - 693 views - 1.5 KB)
    File Type: txt notifystrip.txt (2.9 KB, 485 views)

    Last edited by psychonic; 12-16-2009 at 09:21.
    psychonic is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 12-16-2009 , 09:21   Re: [OB] A2S_RULES truncated response workaround
    Reply With Quote #2

    Updated notifystrip.txt with cvars from many more plugins that just blindly put FCVAR_NOTIFY on every cvar.
    psychonic is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 03-10-2010 , 12:46   Re: [OB] A2S_RULES truncated response workaround
    Reply With Quote #3

    Excellent
    works great on cs:s
    Bacardi 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 06:22.


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