How do I get the BzFs Logfiles?

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
elem3nt
Private First Class
Private First Class
Posts: 60
Joined: Thu Feb 24, 2005 11:25 pm
Location: Dallas, TX

How do I get the BzFs Logfiles?

Post by elem3nt »

Hello,

I was wondering how to record bzflag logfiles when running a server. I launch the server with a .bat file that looks somewhat like this.

Code: Select all

set BZFSPROGRAM="H:\program files\BZFlag2.0.2\bzfs.exe"

%BZFSPROGRAM% -conf myconfig.txt>>log.txt


pause
I can still log on the server, but the command line hangs after what is written in the .bat file (blinking cursor). Nothing (player messages etc.) reaches the command line after that.

The .bat file does succeed in exporting the server settings to the log file, but nothing more.

Code: Select all

style: 2a
  super flags allowed
  jumping allowed
  all shots ricochet
style: 2a
  super flags allowed
  jumping allowed
  all shots ricochet
style: 2a
  super flags allowed
  jumping allowed
  all shots ricochet
Loading variables from variables.txt
Successfully loaded variable(s)
There is a voting arbiter with the following settings:
	vote time is 60 seconds
	veto time is 2 seconds
	votes required are 2
	vote percentage necessary is 50.099998
	vote repeat time is 300 seconds
	available voters is initially set to 200
Running a public server with the following settings:
	public address is*IP ADDRESS HERE*:5154
LIBCURL: libcurl/7.12.3
Loaded master ban list from http://bzflag.org/master-bans.txt
	listening on 0.0.0.0:5154
	with title of "Now Running MINAS TIRATH map by The Purple Panzer"
minastirith.map: warning: world file extension is not .bzw, trying to load anyway
The server works fine, but it just doesn't output any text beyond the server settings to the logfile.


So, essentially, the problem is: The .bat file exports the server settings but nothing else to the logfile. I want to be able, however, to see the ingame chat and other events.

Anyone have any ideas??

Thanks!!

Elem3nt
User avatar
wiz
Private First Class
Private First Class
Posts: 46
Joined: Sat Dec 07, 2002 1:19 am
Location: Moline, IL, USA

Re: How do I get the BzFs Logfiles?

Post by wiz »

Try changing your command line to the following:

Code: Select all

%BZFSPROGRAM% -d -d -conf myconfig.txt>>log.txt
You can experiment with the number of -d's you add to the command line (you can have from 1 to 4). Each adds an additional level of debugging messages. IIRC, anything more than two can get real hard to follow and should probably only be used if you truly need to debug something.
User avatar
elem3nt
Private First Class
Private First Class
Posts: 60
Joined: Thu Feb 24, 2005 11:25 pm
Location: Dallas, TX

Post by elem3nt »

Thanks, but I still cant get it to work. All I get is this.

This is my .bat file.

Code: Select all

set BZFSPROGRAM="H:\program files\BZFlag2.0.2\bzfs.exe"

%BZFSPROGRAM% -conf config_testing.txt

pause
I still get no different results by adding -d -d.

Thanks for your help!
Any ideas?
User avatar
wiz
Private First Class
Private First Class
Posts: 46
Joined: Sat Dec 07, 2002 1:19 am
Location: Moline, IL, USA

Post by wiz »

Your batch file should look like this:

Code: Select all

set BZFSPROGRAM="H:\program files\BZFlag2.0.2\bzfs.exe"

%BZFSPROGRAM% -d -d -conf config_testing.txt >> logfilename.log
Two things to note. The -d -d needs to go on the command line. And, perhaps most importantly, you need to remove the pause statement. That is what is preventing the output from being redirected to the logfile. Remove it and all will be well.
User avatar
elem3nt
Private First Class
Private First Class
Posts: 60
Joined: Thu Feb 24, 2005 11:25 pm
Location: Dallas, TX

Post by elem3nt »

Awesome. Thanks so much, wiz, for your help. Cya around!!
Post Reply