View Full Version : Wow... nice log file!!!
bullet-worm
10-31-2003, 03:31 PM
Have you guys checked out the log file?? very nice! This should make for some NICE stat pages! Including TEAM KILLS!!!!
sweetness....
worm
HankScorpio
10-31-2003, 04:05 PM
Indeed
imported_IW-Inherent
10-31-2003, 04:24 PM
http://www.infinityward.com/cod/server%20commands.html
^^ has some info about the different log prints.
Lestat
10-31-2003, 04:51 PM
Definitly the log files give all the information you need to get started. Looking forward to some stats soon now...
Weazel
10-31-2003, 04:52 PM
Working on a parser now :) See if I cant get it to generate some html pages...
Lestat
10-31-2003, 05:07 PM
Nice.... you going to use the same parser type as mohstats?
looking forward to see what you can master! :!:
AADiC
10-31-2003, 11:55 PM
Working on a parser now :) See if I cant get it to generate some html pages...
Please let me know when you get this going, CODAdmin is very interested in this tool!!!!! :smile:
Lestat
11-02-2003, 03:54 AM
Anyone having any luck here on this project?
OldDog
11-02-2003, 03:53 PM
No luck with parsing the log file, as yet (I'll leave that to Weazel...I'm using UltraEdit32 to view the file, and it works ok, kinda). Odd thing about the log is that the time notation is something I don't understand, it's not clock time, maybe relative time from server start, or map change?
I did, however, put together a primitive batch file (for Windows...works in Windows 2003 Server, so I assume XP and 2000, as well as NT4) that will, scheduled, shut down CoDMP.exe, xcopy the log file to another partition, rename it to the current date.log, and delete the original. I also put in the log for CrowKing's Autokick, which can get quite large in verbose mode. I then have a batch file that will re-start the server and Autokick. The shutdown and log manipulation is done at 11:58PM each night, in order to get the correct date on the logs. I then have a batch job that is scheduled for a couple of minutes later to re-start the server and Autokick. A problem with the latter I haven't figured out yet is that Autokick seems to require clicking on the Start button to get it going. Be nice to have an auto-start feature, or maybe a command-line switch.
I used regular, normal, Windows command-line processing, hence the 'primitive' remark. I did this because I refuse to have WSH on any machine I own...security.
On Sunday nights, I do backups, defrags, etc., so I have the backup software doing all this, but the startup is *after* the backup is done (about 2AM). I'm using Autokick's messaging to warn when the server is coming down, and the fact that it will be back up in a couple of minutes.
This process may not be appropriate for some of you big server guys, but I'm running my own, on pretty much my own schedule, so I can get away with it. Clearly, I like to have the server up as much as possible, but...maintenance will out.
Anyway, here's the batch command file for those who want it:
rem @echo off
REM Stop the running processes
process -k CodMP.exe
process -k Autokick.exe
REM Copy the files to another directory - delete them from the original
xcopy "c:\Program Files\Call of Duty\Main\games_mp.log" d:\CoD /y /c /q
xcopy "C:\Program Files\Autokick\servlog.txt" d:\CoD /y /c /q
del /q "c:\Program Files\Call of Duty\Main\games_mp.log"
del /q "C:\Program Files\Autokick\servlog.txt"
REM Get the current date - parsed
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do set timefn=%%a%%b%%c
d:
cd \
cd CoD
REM Check to see if there's a filename screwup with the CoD log
if exist whatever-%timefn%.log goto alter-cod
ren games_mp.log whatever-%timefn%.log
goto chk-ak
REM Rename the file accordingly
:alter-cod
ren games_mp.log whatever-%timefn%a.log
:chk-ak
REM Check to see if there's a filename screwup with the AK log
if exist ak-%timefn%.log goto alter-ak
ren servlog.txt ak-%timefn%.log
goto :eof
REM Rename the file accordingly
:alter-ak
ren servlog.txt ak-%timefn%a.log
You'll notice that there's a program that runs first to kill the processes (process). It's a freeware program you can grab at: http://beyondlogic.org/consulting/processutil/processutil.htm
Just put it in %systemroot%, and it will run all the time
-OldDog
imported_IW-Inherent
11-02-2003, 04:15 PM
Its time since server start
OldDog
11-02-2003, 04:40 PM
Thx, IW, I'll act accordingly.
-OldDog
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.