PHP BZFlag List Server
- RPG
- Lieutenant, Junior Grade
- Posts: 2015
- Joined: Fri Sep 17, 2004 2:37 am
- Location: Chicago, Illinois
- Contact:
PHP BZFlag List Server
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 .
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 104 times
Last edited by RPG on Tue Jun 21, 2005 10:24 pm, edited 1 time in total.
- A Meteorite
- Private First Class
- Posts: 1786
- Joined: Thu Apr 28, 2005 12:56 am
- Location: California, U.S.
- Contact:
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)
Owner @ BZFX
Core Admin @ CAN
Email me: bzmet…@gmail.com
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.
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.
JeffM
- RPG
- Lieutenant, Junior Grade
- Posts: 2015
- Joined: Fri Sep 17, 2004 2:37 am
- Location: Chicago, Illinois
- Contact:
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.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.
In fact, I'll get to doing that.
- RPG
- Lieutenant, Junior Grade
- Posts: 2015
- Joined: Fri Sep 17, 2004 2:37 am
- Location: Chicago, Illinois
- Contact:
Only Sometimes
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.shorty114 wrote:By the way, nothing comes up for me under the Players list when you select a server (even one that has players).
- Mucho Maas
- Private First Class
- Posts: 515
- Joined: Tue Sep 21, 2004 5:14 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.
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.