Logging (Yes, I have searched)

DJX

Member
Joined
Mar 14, 2004
Likes
0
#1
Could some one please give me a more though break down as to what each of these cvars do? I have found out some of them and I also use them in Call of Duty but some of them don't seem to work.:

Code:
set g_logstats 1 
set logfile "3" 
set g_log "qconsole.log" 
set g_logSync "1" 
set chat "1" 
set sv_chatter "1"
Also, I want to make a log for my server and have it named: "bt_server_mp" but it all ways defaults to "qconsole". Here is what I have in my config related to logging so far:

Code:
[SIZE=2]set sv_chatter "1"
set g_logstats "1"
set logfile "3"
set logfilename "bt_server_mp.log"
set g_log "bt_server_mp.log"
set g_logsync "1"
[/SIZE]
Once again, I don't think each of the cvars related to logging actually work. Some do but I think some don't.
 
Last edited:

GaSplat

Administrator
Joined
Sep 22, 2003
Likes
2
Location
St Louis
#2
g_log "1"toggles logging of game data or statistics John Carmack made g_log a filename instead of a 0/1 in this version
A
g_logSync "0"toggle the logging to append to the existing file and not overwrite
A

logfile "0"enable console logging 0=no log 1=buffered 2=continuous 3=append so as not to overwrite old logs
The above is courtesy from Commander Keen.

Not everything in Q3 (and Commander Keen page) holds true in MOH. One of the victims of change/enhancements is the ability to name your logfile. Hope you like qconsole.log, cause that's the only flavor you get.

We have a guide for stats that may help (in the guides forum) but it looks like you have the bases covered.

I also recall sv_chatter being an option only in the Linux version, but again, logging is not my forte.
 

DJX

Member
Joined
Mar 14, 2004
Likes
0
#3
Yeah, I knew what some of those were but not all of them. Thanks. Is there any cvar like sv_chatter that I can enable to see chatting going on through the console. In Call of Duty this is standard and I wish it was in breakthrough too. Any idea what chat 1 is used for. I think it’s for the Linux version like sv_chatter is. I'm not really interested in keeping stats for people but I will look into it, just so I'm not ignorant to the concept in Breakthrough.
 

DJX

Member
Joined
Mar 14, 2004
Likes
0
#4
Update

I tried something new. I wanted to make my server execute at a "High" Windows XP priority level automaticlly when I launched it so, I did some research and found out how to do it. I created a DOS BAT file that has a string like this: START /HIGH C:\PROGRA~1\EAGAME~1\MOHAA\MOH_BR~1.exe +exec "bt_server_all.cfg". The "/HIGH" command executes the "High" priority level in Windows, neat huh? Any way, now that I have the BAT file executing my server, it overwrites my log file each time the server shuts down and restarts. Even with the append value on the log cvar. Any thoughts, suggestions? If not, no big deal, at least I have some logging.
 

GaSplat

Administrator
Joined
Sep 22, 2003
Likes
2
Location
St Louis
#5
Since you are kicking it off in a bat, you can first rename the qconsole.log file to something that includes the date/time (I forget the syntax, but I've seen it done) . Then launch the game which will create a new log file. This will let you accumulate log files and also let you see when a restart occured just from the log file names. You might also want to add a line to delete all log files over xxx days old so you don't spam yourself out of disk space.

As I recall, capturing chat in the log is not possible, but if anyone else knows how to do it in a WinBox, feel free to correct me.

You can set developer cvar on start up to crank up the amount of detail logged, but most of it is debugging stuff. So unless you are dying to track who picked up ammo when, it may not be of much value. You can always experiment and see if you like what you get.
 

DJX

Member
Joined
Mar 14, 2004
Likes
0
#7
Well...it took me a little bit but I think I got the hang of it. I modified it to work with Breakthough but I can't get the archive logs to appear. The compilation log works, which was my first concern. I wish that the archive logs would display the time/date instead of just a number too but I can't even get them to appear so.... Also, I couldn't find out a way to delete logs over a certain size or past a certain date.
 
Last edited:

DJX

Member
Joined
Mar 14, 2004
Likes
0
#8
In closing

In closing, I would like to say that this tread was successful. I have a log and it now compiles. I also have a script that keeps my server alive. I would like to post my modified script for "Server.bat" which is the script for keeping my Breakthrough server alive and "Log_Compiler.bat" which is the script that compiles the log each time the server restarts. I added a pre-count-down and a post-count-down to these scripts to make them look professional (OMG was that annoying). Huge credit to Shockwave for the original, base, script. You will need the old DOS batch file "WAIT.bat" for this script to work properly, you can find that easy enough on the internet. Thanks for the help GaSplat, always a pleasure.

Server.bat
Code:
@ECHO OFF
ECHO Starting server in...
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 30 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 29 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 28 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 27 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 26 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 25 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 24 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 23 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 22 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 21 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 20 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 19 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 18 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 17 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 16 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 15 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 14 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 13 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 12 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 11 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 10 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 9 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 8 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 7 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 6 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 5 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 4 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 3 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 2 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO 1 Second
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
START /W /HIGH C:\PROGRA~1\EAGAME~1\MOHAA\MOH_BR~1.exe +exec bt_server_all.cfg
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
CALL Log_Compiler
ECHO Server will restart in...
CALL WAIT 1
ECHO:
ECHO 10 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 9 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 8 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 7 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 6 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 5 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 4 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 3 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 2 Seconds
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 1 Second
CALL WAIT 1
CLS
ECHO Starting server in...
ECHO:
ECHO Server started.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO Restarting server...
ECHO:
:LOOP
CLS
ECHO Server restarted.
ECHO:
START /W /HIGH C:\PROGRA~1\EAGAME~1\MOHAA\MOH_BR~1.exe +exec bt_server_all.cfg
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
CALL Log_Compiler
ECHO Server will restart in...
CALL WAIT 1
ECHO:
ECHO 10 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 9 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 8 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 7 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 6 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 5 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 4 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 3 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 2 Seconds
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO 1 Second
CALL WAIT 1
CLS
ECHO Server restarted.
ECHO:
ECHO Server shut down...
ECHO:
ECHO Starting log compiler...
ECHO:
ECHO Adding current log data to a compilation log...
ECHO:
ECHO Log file compilation complete.
ECHO: 
ECHO Server will restart in...
ECHO:
ECHO Restarting server...
CLS
GOTO LOOP
Log_Compiler.bat
Code:
@ECHO OFF
ECHO Adding current log data to a compilation log...
TYPE maintt\qconsole.log >> maintt\bt_server_all.log
ECHO:
ECHO Log file compilation complete.
ECHO:
 
Last edited:
Top Bottom