PHP BZFlag List Server

All things BZFlag - no [OT] here please
Post Reply
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

PHP BZFlag List Server

Post by RPG » Tue Jun 21, 2005 4:47 pm

If you've ever checked out CVS, you may be familiar with a script called bzlist.php in the /misc/ directory. I was, and I also was upset that it wouldn't work right. So what did I do? Make another one! It has a prettier interface than bzlist.php and it works with the current list server. It can't show which players are on the server for the simple fact that I wanted to stay away from having the script query the server, partly because I wouldn't know what to query the server with!

Anyways, if you've been lost by that paragraph, this script shows you the current list server (with the servers in order of how many players are on them) and lets you get details about each server.

A hosted copy is at http://www.garrettsites.net/php-bin/phpbzlistserver.php . I wouldn't mind if it was put in CVS too, or hosted under my.bzflag.org .
Attachments
phpbzlistserver.zip
The PHP BZFlag List Server Interface (PHPBZLSI) Revision 3
(1.98 KiB) Downloaded 56 times
Last edited by RPG on Tue Jun 21, 2005 10:24 pm, edited 1 time in total.

Guest

Post by Guest » Tue Jun 21, 2005 5:01 pm

Nice one. :) I like it.

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Jun 21, 2005 5:22 pm

I updated the above attachment for Revision 2. The only addition is a bar under "total current players" that shows graphically how much of the server is fulll.

User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite » Tue Jun 21, 2005 6:36 pm

Is there a way this can be customized for one server? If you could send me a customizable version that would be great. (Hint: Has to do with BZWorkshop)
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Jun 21, 2005 6:46 pm

A Meteorite wrote:Is there a way this can be customized for one server? If you could send me a customizable version that would be great. (Hint: Has to do with BZWorkshop)
Anything can be done with programming. PM me about it.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Tue Jun 21, 2005 9:12 pm

ummmm thats not the current list server.

the current list server is part of the "db" project in CVS.

0_0_0
Private First Class
Private First Class
Posts: 39
Joined: Thu Jan 27, 2005 10:52 pm

Post by 0_0_0 » Tue Jun 21, 2005 9:20 pm

I think its a new version of bzlist.php.

Ceratainly has a nice look and feel, nice work RPG! :D

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Jun 21, 2005 9:50 pm

JeffM2501 wrote:ummmm thats not the current list server.

the current list server is part of the "db" project in CVS.
It's just a rewrite of bzlist.php under the BZFlag module in CVS. It's purpose is to be a graphical way to navigate and find information from the list server.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Tue Jun 21, 2005 10:49 pm

RPG
I know what it is. I'm telling you that what is in that folder is not the current list server code, so it may not support all list server features.

You would want to base it off the current list server php that is in DB project. The DB one has been updated ( specificly for 2.0 ). and does things that the old one does not do.

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG » Tue Jun 21, 2005 11:18 pm

JeffM2501 wrote:You would want to base it off the current list server php that is in DB project. The DB one has been updated ( specificly for 2.0 ). and does things that the old one does not do.
I checked out the current list server code, and it looks like I'm milking everything I can out of the data the list server provides. The next step in taking this further would be to query the server that the user want's to get the info. about. Instead of just providing how many players are in teh server, it could provide the player's callsigns as well. Like an entire stats website packed into a script.

In fact, I'll get to doing that.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5173
Joined: Fri Dec 13, 2002 4:11 am
Location: https://discord.gg/NN9uAvx
Contact:

Post by JeffM » Tue Jun 21, 2005 11:45 pm

yea your doing what the other php stat sites have allready done.

Guest

Post by Guest » Wed Jun 22, 2005 12:49 pm

I know of fortix which does this, but It went down a short while back and hasn't worked properly since...

rob1n
Private First Class
Private First Class
Posts: 122
Joined: Wed Apr 21, 2004 10:53 pm

Post by rob1n » Fri Jun 24, 2005 2:42 am

stats.bzflag.org (or, now, my.bzflag.org) does this already, as does fortix, and I've seen others.

By the way, nothing comes up for me under the Players list when you select a server (even one that has players).

User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Only Sometimes

Post by RPG » Fri Jun 24, 2005 4:03 am

shorty114 wrote:By the way, nothing comes up for me under the Players list when you select a server (even one that has players).
Yes, yes, the way PHP is configured on my web server doens't let it show the players. I don't own that server, so I can't fix it. The players work on my home server, though.

User avatar
Mucho Maas
Private First Class
Private First Class
Posts: 515
Joined: Tue Sep 21, 2004 5:14 pm

Post by Mucho Maas » Fri Jun 24, 2005 4:27 pm

What I like about it, same way as the fortix site, is that you don't have to click the back button to view another server. Maybe this can be changed on the list code of the my.bzflag.org site.
But RPG, without player info it is quit useless for certain tasks. Anyways, so much learned by doing it I guess, nice.

The fortix site seems to be working again, i returned to use that one now again, it gives me all the information I need on one page.

Post Reply