Reduce dev console spam#1753
Conversation
Fix warning: > For FCVAR_REPLICATED, ConVar must be defined in client and game .dlls (sv_neo_reject_opengl_mesa_check)
Fix warning for cvar: > Parent cvar in server.dll not allowed (props_break_max_pieces)
Need to declare the event in NeoModEvents.res to silence the warning: > CGameEventManager::AddListener: event 'player_stats_updated' unknown.
Fix warning for empty (0 bytes) response system rules file: > CResponseSystem: failed to load scripts/talker/response_rules.txt
Silences warning: > Unable to remove textwindow_temp.html!
Because the developers know, and it's not useful to have that noise in the debug output.
Fixes console spam for bots: > CreateEvent: event 'nav_blocked' not registered.
Fixes warning console spam: > EmitAmbientSound: warning, broadcasting sound labled as SND_SPAWNING.
|
is this pr ready for review? |
sunzenshen
left a comment
There was a problem hiding this comment.
The changes look functionally alright, though a minor nit just to check if the removal of FCVAR_GAMEDLL from sv_neo_reject_opengl_mesa_check was intentional.
Since the cvar exists purely game dll side, it should be safe to go with the default flags of 0 (many server sided cvars do this), so I think I'll leave it as is. |
|
This introduced a new console warning it seems: Not really sure what it means by this, the warning shows up twice and exists on both client and server so... how could they not both have the flag |
Hmm, I can't see this. When do you see the warning, in the main menu, when loading in a level? Any steps to reproduce? |
|
Very strange. Are you sure you're on the current master, and done a full rebuild? The only thing I can come up with is perhaps your client or server has cached the object file containing that cvar definition and for whatever reason it has gone stale. But that's just guessing. Here's my full console output with |
|
i think you can have convars defined in multiple places without a problem, maybe something in the engine redefines this convar without the flag |
Scanning all the files in edit: Actually you are right, the materialsystem function loops through those strings, allocates new memory and then calls the ConVar ctor for that memory with each of the cvar string names. So I guess there is a duplicate being created there, presumably with the conflicting default flags. OutdatedI can reproduce 1 error printout by deliberately doing this: diff --git a/src/game/shared/props_shared.cpp b/src/game/shared/props_shared.cpp
index 4391ad3a..1e97ac71 100644
--- a/src/game/shared/props_shared.cpp
+++ b/src/game/shared/props_shared.cpp
@@ -23,7 +23,13 @@
ConVar sv_pushaway_clientside_size( "sv_pushaway_clientside_size", "15", FCVAR_REPLICATED | FCVAR_DEVELOPMENTONLY, "Minimum size of pushback objects" );
#ifdef NEO
+
+#ifdef CLIENT_DLL
ConVar props_break_max_pieces( "props_break_max_pieces", "-1", FCVAR_REPLICATED, "Maximum prop breakable piece count (-1 = model default)" );
+#else
+ConVar props_break_max_pieces( "props_break_max_pieces", "-1", 0, "Maximum prop breakable piece count (-1 = model default)" );
+#endif
+but how to get 2 prints I have no idea. |
Yes, I also just tried with DLLs built from CI as well. Also tried removing all my command line options but to no avail |
|
I ran git fetch --tags and rebuilt but its still showing me the old git commit hash, but I am pretty sure im on 802bf4d and i am getting the same console message
(Edit) I switched back and forth between two branches and now the displayed version is updated and the error is still there |
|
Bah, that's annoying. It's probably me who has the stale setup then if the two of you are seeing it. I'll revert that change for now in a new PR. |
This reverts commit b6c170f. Part of the merge commit 6e690c8. Reverted due to problems as described in: NeotokyoRebuild#1753 (comment)
This reverts commit b6c170f. Part of the merge commit 6e690c8. Reverted due to problems as described in: #1753 (comment)


Description
Toolchain
Linked Issues