Page 1 of 1

Private network BZFlag stats server

Posted: Mon Aug 30, 2010 1:30 pm
by landyman
Hi all

Is it possible to run a private BZFlag server and report stats to a private stats server and then display the stats via intranet? (Much like the open BZFlag sats server) We have a private network and want to collect players stats.

Is it possible?

Peace!
landyman

Re: Private network BZFlag stats server

Posted: Mon Aug 30, 2010 3:27 pm
by strayer
Yes.
If your BZFlag server has a connection to the internet make sure not to set the parameters "-public" and "-publicaddr". Otherwise your server would be listed on the public server list.
For statistics you have the choice - using the server logs you can parse, a stats plug-in, a script/program to query and store stats or (probably the easiest way if you meant http://stats.bzflag.org with "open BZFlag sats server") the BZFlag::Info framework. It finally depends on how much time you want to invest for configuration and/or additional coding.

Some places you might want to have a look at...
BZBB search: http://my.bzflag.org/bb/search.php
BZFlag::Info: http://search.cpan.org/~tuckerm/BZFlag-Info/Info.pm
BZStats: http://sourceforge.net/projects/bzstats/

Re: Private network BZFlag stats server

Posted: Tue Aug 31, 2010 12:52 am
by blast
I think the perl module at CPAN is outdated and I'm not sure if it even works anymore. It's best to use the one that comes with our stats site code. You are free to use the code from http://my.bzflag.org/

Code for the stats site (and a few other things mixed in there.. like the list server, CTF league, etc): https://bzflag.svn.sourceforge.net/svnr ... /trunk/db/
That perl module is here: https://bzflag.svn.sourceforge.net/svnr ... ag/Info.pm