BZadmin
-
- Private First Class
- Posts: 109
- Joined: Fri May 07, 2004 11:17 pm
- Contact:
BZadmin
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"
-
- Private First Class
- Posts: 109
- Joined: Fri May 07, 2004 11:17 pm
- Contact:
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?
*sighs*
right?
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.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.
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.
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.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?