BZadmin

Make suggestions for improving one of the best games on the net!
Post Reply
elmer fudd
Private First Class
Private First Class
Posts: 109
Joined: Fri May 07, 2004 11:17 pm
Contact:

BZadmin

Post by elmer fudd » Sun May 16, 2004 1:23 am

i am making(trying to :) ) a stats bot in python by having it examine the log files of bzadmin. i want it to show how many CTFs they have, as well as their favorite flag(GM, SW, etc...) but i noticed that it doesn't display things like captures. Is there a way to get it to display like when you do "bzflag -echo" :?:

User avatar
Chestal
Dev Guru
Dev Guru
Posts: 171
Joined: Fri Dec 06, 2002 11:56 pm
Location: Siegen, Germany
Contact:

Post by Chestal » Tue May 18, 2004 12:46 pm

I don't think there is a way currently. But it shouldn't be too hard to add additional message types to bzadmin, so that you could choose to see them with -show/-hide.

elmer fudd
Private First Class
Private First Class
Posts: 109
Joined: Fri May 07, 2004 11:17 pm
Contact:

Post by elmer fudd » Tue May 25, 2004 11:09 pm

actually wouldnt this be impossible because the server does not keep track of captures the client does and CTFs are when a tank enters the base region... so the server doesnt keep track of captures. and since bzadmin doesnt keep track of where the players are... it would be impossible to have bzadmin keep track of captures/flags without a remake.


*sighs*
right?

orange
Private First Class
Private First Class
Posts: 73
Joined: Thu Oct 02, 2003 2:02 am

Post by orange » Wed May 26, 2004 5:27 am

elmer fudd wrote:actually wouldnt this be impossible because the server does not keep track of captures the client does and CTFs are when a tank enters the base region... so the server doesnt keep track of captures. and since bzadmin doesnt keep track of where the players are... it would be impossible to have bzadmin keep track of captures/flags without a remake.
The server definitely keeps track of captures. That's how you know the team scores when you join in the middle of a ctf game.

I haven't looked at getting them out with bzadmin though. But you can pull them from server logs if you want, although you may have to enhance the logging a bit if you want details about who captured.

User avatar
blast
General
General
Posts: 4746
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast » Thu May 27, 2004 4:05 pm

elmer fudd wrote:actually wouldnt this be impossible because the server does not keep track of captures the client does and CTFs are when a tank enters the base region... so the server doesnt keep track of captures. and since bzadmin doesnt keep track of where the players are... it would be impossible to have bzadmin keep track of captures/flags without a remake.


*sighs*
right?
It's definately not impossible. The client doesn't have to keep track of player positions to determine if a flag was captured. The server sends out a message saying so. So all we'd have to do is add that message type to BZAdmin. Don't need a remake.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

Post Reply