Page 1 of 1

BZadmin

Posted: Sun May 16, 2004 1:23 am
by elmer fudd
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" :?:

Posted: Tue May 18, 2004 12:46 pm
by Chestal
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.

Posted: Tue May 25, 2004 11:09 pm
by elmer fudd
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?

Posted: Wed May 26, 2004 5:27 am
by orange
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.

Posted: Thu May 27, 2004 4:05 pm
by blast
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.