AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Console Spam Patches (1.3b) [20-Jul-2021] (https://forums.alliedmods.net/showthread.php?t=316612)

Silvers 05-31-2019 22:12

[L4D & L4D2] Console Spam Patches (1.3b) [20-Jul-2021]
 
14 Attachment(s)
About:

Suppresses specified messages from the server console. There is an extension for [ANY] game with the exact same functionality. I created this to demonstrate another method and because some [L4D/2] server owners don't look at stuff for [ANY] game and have been complaining about server console spam.

This only stops messages which are inside the games "server" or "engine" library if you specify that in the gamedata. This cannot suppress dynamic messages such as those from chat or plugins.

I would suggest using [ANY] Cleaner - Console warning supressor extension instead.



Adding Entries:
  • Open the gamedata .txt and duplicate the last entry from "Addresses" and "Signatures" sections.
  • When duplicating for example "SpamPatch_Sig1" you must change the number to be 1 more than the last entry.
  • If any numbers are missing it will stop looking for more, so the numbers must be sequential.
  • Enter the string you want to block from it's first character otherwise they still show in console.
  • The string should be long enough to be unique but is not required to be full length.



Changes:
Code:

1.3b (20-Jul-2021)
    - Fixed a few messages not being patched. GameData file updated.

1.3a (10-Jul-2021)
    - Added some more lines to remove to the gamedata file.

1.3 (06-Jul-2021)
    - Added a "MAX_PATCHES" define to the source to fix L4D1 not reading all entries on failure to find one.
    - Added some more lines to remove to the gamedata file.

1.2 (07-Jun-2020)
    - Added 2 new entries. Removed 1 bad entry.
    - Fixed GameData file not loading all patches.
    - Thanks to "Electr000999" for reporting.
    - Only GameData file changed.

1.2 (10-May-2020)
    - Added better error log message when gamedata file is missing.
    - Various changes to tidy up code.

1.1 (29-Jun-2019)
    - Renamed gamedata vars "SpamPatch_Add" to "SpamPatch_Sig" for easier editing and duplication.
    - If updating from 1.0 either rename these strings or download the new gamedata.

1.0 (01-Jun-2019)
    - Initial release.



Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Download the "l4d_console_spam.txt" gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.

phoenix0001 06-05-2019 12:46

Re: [L4D & L4D2] Console Spam Patches (1.0) [01-Jun-2019]
 
Is this the role of reducing server crashes?
Or just filtering spam from the console?

Silvers 06-05-2019 13:22

Re: [L4D & L4D2] Console Spam Patches (1.0) [01-Jun-2019]
 
Quote:

Originally Posted by phoenix0001 (Post 2654466)
just filtering spam from the console?


phoenix0001 06-14-2019 10:35

Re: [L4D & L4D2] Console Spam Patches (1.0) [01-Jun-2019]
 
Just download your plugin and TXT file?
Still need any changes?

SkiPlix 08-08-2019 17:03

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
Help?
Code:

[SM] Error parsing gameconfig file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\gamedata\l4d_console_spam.txt":
[SM] Error 9 on line 658, col 69: Line contained too many invalid tokens
[SM] Exception reported: Unable to open l4d_console_spam: Line contained too many invalid tokens
[SM] Blaming: l4d_console_spam.smx
[SM] Call stack trace:
[SM]  [0] LoadGameConfigFile
[SM]  [1] Line 53, /home/forums/content/files/8/5/7/7/8/175740.attach::OnPluginStart
[SM] Unable to load plugin "l4d_console_spam.smx": Error detected in plugin startup (see error logs)
Error log file session closed.
SourceMod error session started
Info (map "c8m3_sewers") (file "errors_20190808.log")
[SM] Exception reported: Can't get CTerrorPlayer::OnPummelEnded SDKCall!
[SM] Blaming: l4d2_infected_release.smx
[SM] Call stack trace:
[SM]  [0] SetFailState
[SM]  [1] Line 231, /home/forums/content/files/1/5/5/2/9/56934.attach::CallOnPummelEnded
[SM]  [2] Line 167, /home/forums/content/files/1/5/5/2/9/56934.attach::OnPlayerRunCmd
SourceMod error session started
Info (map "c1m1_hotel") (file "errors_20190808.log")
[SM] Error parsing gameconfig file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\gamedata\l4d_console_spam.txt":
[SM] Error 9 on line 665, col 69: Line contained too many invalid tokens
[SM] Exception reported: Unable to open l4d_console_spam: Line contained too many invalid tokens
[SM] Blaming: l4d_console_spam.smx
[SM] Call stack trace:
[SM]  [0] LoadGameConfigFile
[SM]  [1] Line 53, /home/forums/content/files/8/5/7/7/8/175740.attach::OnPluginStart
[SM] Unable to load plugin "l4d_console_spam.smx": Error detected in plugin startup (see error logs)
Error log file session closed.
SourceMod error session started
Info (map "l4d2_tank_challenge") (file "errors_20190808.log")
[SM] Error parsing gameconfig file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\gamedata\l4d_console_spam.txt":
[SM] Error 9 on line 665, col 69: Line contained too many invalid tokens
[SM] Exception reported: Unable to open l4d_console_spam: Line contained too many invalid tokens
[SM] Blaming: l4d_console_spam.smx
[SM] Call stack trace:
[SM]  [0] LoadGameConfigFile
[SM]  [1] Line 53, /home/forums/content/files/8/5/7/7/8/175740.attach::OnPluginStart
[SM] Unable to load plugin "l4d_console_spam.smx": Error detected in plugin startup (see error logs)
Error log file session closed.
SourceMod error session started
Info (map "c1m1_hotel") (file "errors_20190808.log")
[SM] Error parsing gameconfig file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\gamedata\l4d_console_spam.txt":
[SM] Error 9 on line 665, col 69: Line contained too many invalid tokens
[SM] Exception reported: Unable to open l4d_console_spam: Line contained too many invalid tokens
[SM] Blaming: l4d_console_spam.smx
[SM] Call stack trace:
[SM]  [0] LoadGameConfigFile
[SM]  [1] Line 53, /home/forums/content/files/8/5/7/7/8/175740.attach::OnPluginStart


Silvers 08-10-2019 12:11

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
Quote:

Originally Posted by SkiPlix (Post 2662544)
Help?

Upload or PM me the config. Can't help otherwise.

moekai 08-12-2019 13:15

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
1 Attachment(s)
I've tried to suppress this spam msg in the console when using this plugin https://forums.alliedmods.net/showthread.php?t=318033 and it doesn't seem to work. Did I set the config wrong?

Quote:

logic_script executing script: loadout_index_0

Silvers 08-12-2019 13:24

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
Theres nothing wrong with the config you posted. Whether it'll suppress the message I don't know.

moekai 08-12-2019 13:44

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
You're right. I don't think this can suppress spam from the other plugin. I used the [ANY] Cleaner extension and it works.

Vit_amin 11-02-2019 11:44

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
Plugin doesn't patch Warning message:
Code:

WARNING: orator at {x, y, z} missing modelname

Silvers 11-02-2019 12:20

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
Quote:

Originally Posted by Vit_amin (Post 2671721)
Plugin doesn't patch Warning message:
Code:

WARNING: orator at {x, y, z} missing modelname

The string from the binary is "WARNING: %s at %.0f %.0f %0.f missing modelname".

Strings have to match whats in the server or engine binary (must be specified).

You can use something like IDA to view a list of strings. Or drag the binary into a text editor like Notepad++ and search for partial string names to find the exact one.

Vit_amin 11-02-2019 12:23

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
l4d_patch_console.txt has this section:
Code:

                        "SpamPatch_Sig14"
                        {
                                "library"                "server"
                                "windows"                "WARNING: orator at"
                                "linux"                        "WARNING: orator at"
                        }

But this doen't block message

Silvers 11-02-2019 12:25

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
Quote:

Originally Posted by Vit_amin (Post 2671730)
[snip] But this doen't block message

Because "orator" is an entity named passed by the function which replaces %s. I showed you the proper string to use.

Vit_amin 11-02-2019 12:29

Re: [L4D & L4D2] Console Spam Patches (1.1) [29-Jun-2019]
 
That is i paste this ?
Code:

                                "library" "server"
                                "windows" "WARNING: %s at %.0f %.0f %0.f missing modelname"
                                "linux" "WARNING: %s at %.0f %.0f %0.f missing modelname"


Electr000999 06-06-2020 09:37

Re: [L4D & L4D2] Console Spam Patches (1.2) [10-May-2020]
 
found what after SpamPatch_Sig13 plugin stops import gamedata, same in windows and linux, you can view debug in this file(i've just add LogError("sTemp %s", sTemp); at 79 line after patchAddr = GameConfGetAddress(hGameData, sTemp);


EDIT:

i am think they stops because they not found phrase in library: after check server.dll i am not found phrases for this signatures:

"SpamPatch_Sig13"
{
"library" "server"
"windows" "SCRIPT PERF WARNING"
"linux" "SCRIPT PERF WARNING"
}
"SpamPatch_Sig14"
{
"library" "server"
"windows" "WARNING: orator at"
"linux" "WARNING: orator at"
}

after i am delete these signatures from gamedata it import correctly until the end.

Electr000999 06-06-2020 10:06

Re: [L4D & L4D2] Console Spam Patches (1.2) [10-May-2020]
 
also i am wanna request adding this
Code:

"SpamPatch_Sig20"
{
        "library"                "engine"
        "windows"                "%s in solid list (not solid)"
        "linux"                        "%s in solid list (not solid)"
}
"SpamPatch_Sig21"
{
        "library"                "engine"
        "windows"                "Entity %d (class '%s') reported ENTITY_CHANGE_NONE but '%s' changed."
        "linux"                        "Entity %d (class '%s') reported ENTITY_CHANGE_NONE but '%s' changed."
}

"%s in solid list (not solid)" - flush extreme spam if some physics entity go inside player for example

"Entity %d (class '%s') reported ENTITY_CHANGE_NONE but '%s' changed." - flush spam after exec code on player weapons for stop allow use them:

SetEntPropFloat(ent,Prop_Data,"m_flNextSecond aryAttack", 1.0);
SetEntPropFloat(ent,Prop_Data,"m_flNextPrimar yAttack", 1.0);

canadianjeff 06-07-2021 13:02

Re: [L4D & L4D2] Console Spam Patches (1.2) [10-May-2020]
 
could we suppress when navigation is impossible like if a bot gets downed and you move to far away from it console spammed with...

Code:

SURVIVORBOT (Coach, [-3567.683594 6795.421387 -20.345440]) will not help incap (Rochelle,[-11903.881836 9129.836914 160.498184]): UNREACHABLE via NAV
I also saw lots of this one....

Code:

Spitter Mover is Stuck

Ja-Forces 07-06-2021 09:52

Re: [L4D & L4D2] Console Spam Patches (1.2) [10-May-2020]
 
Console Spam Patches version 1.2


l4d part one linux server :

Code:

Entity 387 (class 'infected') reported ENTITY_CHANGE_NONE but 'm_hEffectEntity' changed.
Entity 384 (class 'infected') reported ENTITY_CHANGE_NONE but 'm_clientLookatTarget' changed.
prop_door_rotating_checkpoint in solid list (not solid)

l4d part two linux server :

Code:

SURVIVORBOT (_smlib_Entity_PointHurtAtTarget:11, [-342.746277 -708.788391 352.031250]) will not help incap (_smlib_Entity_PointHurtAtTarget:2,[-552.667053 1513.360107 -831.471680]): UNREACHABLE via NAV

Silvers 07-06-2021 09:55

Re: [L4D & L4D2] Console Spam Patches (1.2) [10-May-2020]
 
Updated:

Code:

1.3 (06-Jul-2021)
    - Added a "MAX_PATCHES" define to the source to fix L4D1 not reading all entries on failure to find one.
    - Added some more lines to remove to the gamedata file.


Ja-Forces 07-06-2021 12:01

Re: [L4D & L4D2] Console Spam Patches (1.3) [06-Jul-2021]
 
Thanks , Silvers . Works well on both versions of l4d :)

Ja-Forces 07-06-2021 15:17

Re: [L4D & L4D2] Console Spam Patches (1.3) [06-Jul-2021]
 
version 1.3


upd: During testing found more spam lines

l4d

Code:

Can't call GetGuidForLastSoundEmitted from server
l4d2 spampatch_sig 22 & 23 don't work properly

Code:

SURVIVORBOT (_smlib_Entity_PointHurtAtTarget:3, [667.872864 -2031.347412 -255.968750]) will not help incap (_smlib_Entity_PointHurtAtTarget:1,[-902.094360 -1007.218933 -489.050323]): UNREACHABLE via NAV
SURVIVORBOT (_smlib_Entity_PointHurtAtTarget:4, [2696.156006 57.347572 -127.968750]) will not help incap (_smlib_Entity_PointHurtAtTarget:3,[1809.618896 -922.775879 -434.051727]): UNREACHABLE via NAV
SURVIVORBOT (_smlib_Entity_PointHurtAtTarget:4, [411.792175 407.172180 0.031250]) will not help incap (_smlib_Entity_PointHurtAtTarget:2,[2550.621826 -766.052979 -505.883820]): UNREACHABLE via NAV
SURVIVORBOT (Bill, [-1184.679199 -912.454407 -127.968750]) will not help incap (_smlib_Entity_PointHurtAtTarget:2,[1244.430542 1185.887939 -554.559998]): UNREACHABLE via NAV
SURVIVORBOT (Louis, [-3207.330811 -720.031250 169.031250]) will not help incap (Gabriel Tanase hellcase.org,[-3497.543945 3338.253662 -535.184265]): UNREACHABLE via NAV
SURVIVORBOT (Louis, [-3207.330811 -720.031250 169.031250]) will not help incap (Francis,[-2218.818848 -1167.419312 -583.993652]): UNREACHABLE via NAV
Spitter 3 mover is STUCK


Silvers 07-10-2021 05:40

Re: [L4D & L4D2] Console Spam Patches (1.3a) [10-Jul-2021]
 
Quote:

Originally Posted by Ja-Forces (Post 2752035)
-

Added and fixed.

canadianjeff 07-17-2021 05:07

Re: [L4D & L4D2] Console Spam Patches (1.3a) [10-Jul-2021]
 
can someone else confirm if the updated patch is working? I am still seeing UNREACHABLE via NAV spam

Silvers 07-19-2021 09:55

Re: [L4D & L4D2] Console Spam Patches (1.3a) [10-Jul-2021]
 
Quote:

Originally Posted by canadianjeff (Post 2752975)
can someone else confirm if the updated patch is working? I am still seeing UNREACHABLE via NAV spam

What exactly do you see? Console screenshot of the error might be better.

You did update the gamedata file to the latest version?

Edit: Have updated the gamedata with some changes.

WhatsAnName 10-09-2021 13:40

Re: [L4D & L4D2] Console Spam Patches (1.3b) [20-Jul-2021]
 
help im trying to block spam from l4d2 workshop item admin system i have on server it happens after a finale finishes
Code:

AN ERROR HAS OCCURED [the index 'VSLib' does not exist]

CALLSTACK
*FUNCTION [unknown()] scripts/vscripts/Admin_System/VSLib/EasyLogic.nut line [1246]

LOCALS
[query] TABLE
[this] TABLE


i tried putting this in the gamedata

        "Signatures"
                {
                        "SpamPatch_Sig1"
                        {
                                "library"                "server"
                                "windows"                "AN ERROR HAS OCCURED [the index 'VSLib' does not exist]"
                                "linux"                "AN ERROR HAS OCCURED [the index 'VSLib' does not exist]"
                        }
                }
        }


Silvers 10-09-2021 15:01

Re: [L4D & L4D2] Console Spam Patches (1.3b) [20-Jul-2021]
 
This is a VScript error, not game engine error.


All times are GMT -4. The time now is 01:36.

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