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"
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.
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.
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.
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)