cvar "g_log"
Posted: Thu Nov 17, 2005 1:06 pm
As it's the first time I had a look into a quake sdk, i'm not sure if I'm right - so please correct me if I'm wrong.
Because cvar "g_log" can't be modified in multiplayer and I'm interested in detailed log output, I search around in SDK where those things might be defined. A simple "grep -R g_log *" didn't have any usable result, so I wondered why this cvar isn't defined anywhere?
After searching around I found in source/game/gamesys files called "SysCvar.cpp" and "SysCvar.h". The .cpp file includes this comment: "All game cvars should be defined here." - but g_log isn't around anywhere. But I found another cvar called g_gamelog, that seems to do the thing g_log does. This cvar (g_gamelog) also appears in several source files together with C-defines for log output. But in server console this cvar doesn't exist, it says "Unknown command".
Is there any sort of alias of cvar defined somewhere outside sdk? As mentioned above grep didn't bring me any result while searching for cvar g_log in sdk game source.
In the next step I'll hack g_gamelog as static "true" and try to compile the sdk to figure out if the dedicated server does the correct output then.
If anyone got a better hint for me, please let me know. As said above, these are my first steps in any quake sdk, so please be patient.
kaffeedoktor.
Because cvar "g_log" can't be modified in multiplayer and I'm interested in detailed log output, I search around in SDK where those things might be defined. A simple "grep -R g_log *" didn't have any usable result, so I wondered why this cvar isn't defined anywhere?
After searching around I found in source/game/gamesys files called "SysCvar.cpp" and "SysCvar.h". The .cpp file includes this comment: "All game cvars should be defined here." - but g_log isn't around anywhere. But I found another cvar called g_gamelog, that seems to do the thing g_log does. This cvar (g_gamelog) also appears in several source files together with C-defines for log output. But in server console this cvar doesn't exist, it says "Unknown command".
Is there any sort of alias of cvar defined somewhere outside sdk? As mentioned above grep didn't bring me any result while searching for cvar g_log in sdk game source.
In the next step I'll hack g_gamelog as static "true" and try to compile the sdk to figure out if the dedicated server does the correct output then.
If anyone got a better hint for me, please let me know. As said above, these are my first steps in any quake sdk, so please be patient.
kaffeedoktor.