[ANY] ConVars Anomaly Fixer
1 Attachment(s)
Description:
Cfg Console Variables anomaly happens time by time, and caused by Valve bug:Commands: - "sm_convar_anomaly_show" - to compare values in cfg files with actual in-game Cvar to find anomalies/unused cvars.Settings (ConVars): - "convar_anomaly_autofix" - fix Cvar anomaly automatically before each map start? (0 - off, 1 - on {default}).Warning: some plugins / game specifically change its ConVars in-game process, so the final report is not necessarily accurate. Using: TODO.Conflicts: Map configs plugins:Recommended plugins: [ANY] Restart empty serverCredits: Silvers - for initial parser and nice plugins I studied on.Related plugins: Buffer Overflow Fixer - Good to fix Cvar on earlier stage than my plugin, but require DHooks extensions and SM 1.8+Donate Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often: |
Re: [ANY] ConVars Anomaly Fixer
Here is example of report by manual show/fix, using my plugin:
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Just out of curiosity, how often does this bug occur? I haven't encountered this bug before.
|
Re: [ANY] ConVars Anomaly Fixer
I have 2 servers. Both show strange results on Cvars I sure not affected by another plugins / games / or original plugin itself. So their Cvar values should be exactly == as defined in .cfg file.
But once I touch some thing on my server (like remove/update some plugin or .cfg), sm_convar_anomaly show that absolutely new ConVars became disobedient. Also, did you read previous topic, where 2 identical plugins with identical info in .cfg show different values of their Cvars? I reproduced that bug, and this plugin successfully fixed that case. Actually, I faced this problem long time ago, but I didn't know at that time what is the cause, and how to track it, especially because it is soooo random. Shit, Valve. So much headache. Anyway, you can install this plugin on your server and enter "sm_convar_anomaly_show" to see does your server have any problems. It will not fix anything until you enter "sm_convar_anomaly_fix" command or set "convar_anomaly_autofix" ConVar to 1. It not touch files, just in-game Cvars (volatile). Also, this (not only this) plugin show sometimes in client console complete garbage for unknown reason (another Valve bug ???). That's why we have here 3 options: display log in client / server console or to file. |
Re: [ANY] ConVars Anomaly Fixer
I have 2 linux servers cfg sourcemod cfg's some don't execute. I have to put a bunch in server.cfg Have for a long time.
|
Re: [ANY] ConVars Anomaly Fixer
It's a linux srcds only issue on the only games l4d1+2. The linux srcds can't handle large cfg files without a buffer overflow.
|
Re: [ANY] ConVars Anomaly Fixer
Quote:
All of us know about CSGO's stuped bot_quota system. You have large gamemode_MODE_NAME_server.cfg? you have cvar problems! You have large server.cfg? you have cvar problems! You have csgo server at years? You know about this sh**t problems!!! |
Re: [ANY] ConVars Anomaly Fixer
Updated to:
1.1 (27-May-2018 ) - Improved log format for fix/error msg a little bit. - Added "convar_cvar_check_areas" ConVar to choose the area you need to check for (1 - difference in values, 2 - nonexistent convars, 3 - overflows, 4 - All {by default}). - Little checks, like cfg file presence. For some reason, plugin sometimes could not read its own variable "convar_anomaly_autofix" with AutoExecConfigSmart(), so to activate plugin it's better to change line of code: Code:
g_hCvarAutoFix = CreateConVar( "convar_anomaly_autofix", "0" <------ change to 1. |
Re: [ANY] ConVars Anomaly Fixer
Updated to:
1.2 (07-Sep-2018 ) - Fixed: log is not created when convar_anomaly_autofix == 0. - Removed dependency of <regexp> because it can't be compiled for SM v.1.7.3 (due to SM core bug). P.S. Still, this plugin is required for some servers, because "Buffer Overflow Fixer" not always work. Or, if you just would like to test/analyze your server for bugs with cfg, you can also use my plugin. |
Re: [ANY] ConVars Anomaly Fixer
1.4 (24-Jan-2019)
- I made attempt to reduce conflicts with 3-rd party plugins that specially change global convars to non-default values during the game. Such convars will no longer be fixed on map start (with the exception of convars that had been set to its defaults). To force fixing such convars (old behaviour), enable "convar_anomaly_fix_nondefault" - Added current map name to the log. - Corrected ArrayList buffer size and increased other buffers. - Integrated all command list to excludes when evaluating convar that are not exist. No more need to add cmds like "exec", "setmaster" to "convar_cvar_names_exclude". - "overflow" area check is expanded to cover: "Command too long" errors, which cause convar is completely ignored by server. - added new area to check: "duplicated convars". - Fixed the order of cfg files reading (according to Valve rules). 'server.cfg' is go first now. It will not overwrite convars if there are duplicated in cfg/sourcemod/ *.cfg files. If you prefer vice versa order (old behaviour of this plugin) to allow server.cfg convars overwrite another convars, set "convar_anomaly_server_last" to 1. - server.cfg is now not optional. - "convar_cvar_check_areas" for "overflows" is replaced by index 8. - Fixed case sensitivity errors like "z_difficulty (Value: Hard, should be: hard)". - It is recommended you remove "cfg/sourcemod/sm_convar_anomaly.cfg" file before installing this version. 1.3 (13-Jan-2019) - Added additional ConVar check on round start. (some buggy servers known to change ALL convars to defaults after last player leave the game in the way even "command buffer overflow" Silver's fix doesn't help) Be attentive! It can conflict with another plugins. Disable it by "convar_anomaly_roundstart" convar if you ensure your server has no such bug. Tip: you can check it by "sm_convar_anomaly_show" command. |
Re: [ANY] ConVars Anomaly Fixer
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Because I didn't know it can be custom. How to find it?
|
Re: [ANY] ConVars Anomaly Fixer
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Where this cvar is defined? (in autoexec.cfg?)
|
Re: [ANY] ConVars Anomaly Fixer
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Updated to:
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Added notice about "recommended plugins".
|
Re: [ANY] ConVars Anomaly Fixer
Updated.
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Thank you for this plugin!
I've spent countless hours trying to work out why changes to my ConVars in FileZilla wasn't being reflected on my L4D2 server despite all files/changes being uploaded correctly. Installed this plugin and all the changes I made in the past have now appeared and correct in my server. Good work! |
Re: [ANY] ConVars Anomaly Fixer
This plugin generates conflicts with this plugin:
Extended Map configs Overwrite values that you defined in Extended Map configs plugin. The problem occurs, after restarting a round, the values previously defined in Extended Map configs are restored to the default values of the others plugins established in their respective *.cfg Example: [L4D2] Healing Gnome In l4d2_gnome.cfg you can establish this cvar to: l4d2_gnome_safe "1" And in mapconfig\maps\c1m1_hotel.cfg of the Extended Map configs plugin l4d2_gnome_safe "0" So when you restart the round, the gnome appears, when it shouldn't. |
Re: [ANY] ConVars Anomaly Fixer
You can add your cfg files in the exclusion list:
Code:
- "convar_cfg_files_exclude" - if you need exclude some cfg-files from processing, place them here, separated by star (*) |
Re: [ANY] ConVars Anomaly Fixer
Tonblader, I took a closer look.
You need to set "convar_anomaly_roundstart" to 0 for preventing the conflict. That's about Extended Map configs by Milo. As about similar one Map configs from berni, it is incompatible at all and cannot be used together with this plugin. This happens because of ConVar Fix order. We are both using OnAutoConfigsBuffered(). If his plugin is first in load order, then my plugin thinks ConVar has a bugged value and overwrites it. I can't see how that can be resolved. |
Re: [ANY] ConVars Anomaly Fixer
Hello, I have had problems reading individual cfg values on every server for years.
Nothing could help me so far and all attempts were unsuccessful. Then I found this plugin and everything works perfectly now. I can finally have a server just the way I want it and without compromise. That's why I thank you a thousand times over. You are my Hero ! ❤️*🔥 |
Re: [ANY] ConVars Anomaly Fixer
Updated.
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
Server restarts infinitely when plugin is used with HarryPotterInfected Bots Control Improved Version 2.6.8
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
shinubee, please, provide your cfg/sourcemod/l4dinfectedbots.cfg file.
Also, check if cfg/sourcemod/sm_convar_anomaly.cfg: Code:
convar_anomaly_roundstart 0 |
Re: [ANY] ConVars Anomaly Fixer
Quote:
Quote:
|
Re: [ANY] ConVars Anomaly Fixer
[SM] Displaying 14 extensions:
[01] Automatic Updater (1.11.0.6927): Updates SourceMod gamedata files [02] Webternet (1.11.0.6927): Extension for interacting with URLs [03] SDK Tools (1.11.0.6927): Source SDK Tools [04] BinTools (1.11.0.6927): Low-level C/C++ Calling API [05] Top Menus (1.11.0.6927): Creates sorted nested menus [06] SDK Hooks (1.11.0.6927): Source SDK Hooks [07] Client Preferences (1.11.0.6927): Saves client preference settings [08] SQLite (1.11.0.6927): SQLite Driver [09] DHooks (1.11.0.6927): Dynamic Hooks [10] <OPTIONAL> file "steamtools.ext.so": /home/l4d2server/serverfiles/left4dead2/addons/sourcemod/extensions/steamtools.ext.so: cannot open shared object file: No such file or directory [11] SteamWorks Extension (1.2.3): Exposes SteamWorks functions to Developers [12] <OPTIONAL> file "curl.ext.so": /home/l4d2server/serverfiles/left4dead2/addons/sourcemod/extensions/curl.ext.so: cannot open shared object file: No such file or directory [13] <OPTIONAL> file "socket.ext.so": /home/l4d2server/serverfiles/left4dead2/addons/sourcemod/extensions/socket.ext.so: cannot open shared object file: No such file or directory [14] Source Scramble (0.7.1): Tools for working with memory. Code:
l4d2server@kaze:~/serverfiles/left4dead2/addons/sourcemod/scripting$ ./compile.sh sm_convar_anomaly.sp |
Re: [ANY] ConVars Anomaly Fixer
Skip it.
|
| All times are GMT -4. The time now is 22:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.