First start up notepad (no not word not wordpad, notepad) now copy and paste the following
Code: Select all
@echo Now loading bzflag...
start "bzflag.bat" "bzflag.bat"
start "bzflag logging.bat" "bzflag logging.bat"
now press the save button and make a new text document and copy and paste this
Code: Select all
@echo off
set BZADMINPROGRAM="C:\Program Files\BZFlag2.0.5b4\bzadmin.exe"
set USERNAME="Logger"
set SERVER="localhost"
set LOGFILE="C:\path\to\the\logs\(filename).txt"
REM ***** Don't change anything below this line! *****
@echo on
@%BZADMINPROGRAM% "%USERNAME%@%SERVER%" > %LOGFILE%
we now have our script to log the out put of bzadmin player kills chat etc
now make a new document and copy /paste the following
Code: Select all
@echo off
set BZFSPROGRAM="C:\Program Files\BZFlag2.0.5b4\bzfs.exe"
set LOGFILE="C:\path\to\your\logs\(filename).txt"
set CONFIGFILE="C:\path\to\your.conf"
REM ***** Don't change anything below this line! *****
@echo on
%BZFSPROGRAM% -conf %CONFIGFILE% > %LOGFILE%
now make shure all the files are in the same location and double click on start.bat and woulla a server just started and so did bzadmin
PS:
in the bzadmin window it will only display
Connecting to Logger@localhost:5154
this is perfectly normal and the reason is that it is printing all the info to the log file.