Private network BZFlag stats server

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
landyman
Private
Private
Posts: 1
Joined: Mon Aug 30, 2010 1:21 pm

Private network BZFlag stats server

Post by landyman » Mon Aug 30, 2010 1:30 pm

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

User avatar
strayer
Sergeant Major
Sergeant Major
Posts: 191
Joined: Sat May 24, 2003 3:54 pm
Location: Germany
Contact:

Re: Private network BZFlag stats server

Post by strayer » Mon Aug 30, 2010 3:27 pm

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/
A pessimist is an optimist with experience... ;o)

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

Re: Private network BZFlag stats server

Post by blast » Tue Aug 31, 2010 12:52 am

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