With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Game server information & questions.

Moderators: Joe Kari, Pardner, TheDoctor

Server list (who's online!)

Postby Dadamungo » Sat Jan 31, 2009 1:20 am

Hi,

I missed being able to use bootblock so I made my own version of it. It doesn't have some of the links (for the game launchers (I never used them...)) and doesn't use geoIP to show the country. I think it's good for now though.

Shafe at beer-garden created a subdomain to house this at:
http://smokinguns.beer-garden.org/

Here is the code if anybody would like to add on to it or whatever.
http://smokinguns.beer-garden.org/index.php.txt

A couple notes:
- You need qstat (quakestat on Debian) to run it
- The IPs are hard coded, so this is like doing a "Refresh". To get new IPs you can run this:
quakestat -q3m master3.idsoftware.com:27950 | grep -i smokinguns
I'm fairly certain the old bootblock didn't fetch the sever IPs either, although it had a handy feature to add a new one, which could be done.

Hope this helps.
Enjoy.
User avatar
Dadamungo
Shootist
 
Posts: 87
Joined: Wed Feb 01, 2006 3:53 am
Location: Pennsylvania, USA



Re: Server list (who's online!)

Postby ReD NeCKersoN » Sat Jan 31, 2009 1:26 am

Cool! 8) Gotta disagree with this statement though:
Dadamungo wrote:I'm fairly certain the old bootblock didn't fetch the sever IPs either.

I think bootblock monitored the q3 master & updated automatically.
Image
User avatar
ReD NeCKersoN
SG Team
 
Posts: 3245
Joined: Wed Mar 27, 2002 6:22 am
Location: VA, USA



Postby Dadamungo » Sat Jan 31, 2009 1:34 am

That would be better to get them periodically thru code. However, since it's not my server I can't run the script to do that. However if somebody would like to put this in their crontab and run it daily, give me the URL and I can have the program fetch the IP's from that:

http://smokinguns.beer-garden.org/get_serveri.txt
User avatar
Dadamungo
Shootist
 
Posts: 87
Joined: Wed Feb 01, 2006 3:53 am
Location: Pennsylvania, USA



Postby Shafe » Sat Jan 31, 2009 1:41 am

Dadamungo wrote:That would be better to get them periodically thru code. However, since it's not my server I can't run the script to do that. However if somebody would like to put this in their crontab and run it daily, give me the URL and I can have the program fetch the IP's from that:

http://smokinguns.beer-garden.org/get_serveri.txt


quakestat is pulling from the q3 master, check out the qstat docs, you should be able to pull everything you need from there through the command line. You can send this to xml and parse that or stout and parse that. I can give you a hand with that if you want.
--------------------------------------------------------
++Beer Garden++
http://www.beer-garden.org
Shafe
Newcomer
 
Posts: 3
Joined: Sat Jan 03, 2009 8:54 am
Location: Eugene, OR



Postby Dadamungo » Sat Jan 31, 2009 1:50 am

Shafe wrote:
Dadamungo wrote:That would be better to get them periodically thru code. However, since it's not my server I can't run the script to do that. However if somebody would like to put this in their crontab and run it daily, give me the URL and I can have the program fetch the IP's from that:

http://smokinguns.beer-garden.org/get_serveri.txt


quakestat is pulling from the q3 master, check out the qstat docs, you should be able to pull everything you need from there through the command line. You can send this to xml and parse that or stout and parse that. I can give you a hand with that if you want.


lol, hi Shafe. I actually have the code, if you want to run that perl script in cron.daily I'll pull from whatever IP file you write to. The reason I don't want to query the master server every time the page loads is it bogs down and takes 30 seconds for every time you want to view it.
User avatar
Dadamungo
Shootist
 
Posts: 87
Joined: Wed Feb 01, 2006 3:53 am
Location: Pennsylvania, USA



Postby Shafe » Sat Jan 31, 2009 2:06 am

Dadamungo wrote:
Shafe wrote:
Dadamungo wrote:That would be better to get them periodically thru code. However, since it's not my server I can't run the script to do that. However if somebody would like to put this in their crontab and run it daily, give me the URL and I can have the program fetch the IP's from that:

http://smokinguns.beer-garden.org/get_serveri.txt


quakestat is pulling from the q3 master, check out the qstat docs, you should be able to pull everything you need from there through the command line. You can send this to xml and parse that or stout and parse that. I can give you a hand with that if you want.


lol, hi Shafe. I actually have the code, if you want to run that perl script in cron.daily I'll pull from whatever IP file you write to. The reason I don't want to query the master server every time the page loads is it bogs down and takes 30 seconds for every time you want to view it.


Sorry about that, at work an being distracted and I totally misread your post... Cronjob setup, writes @ 3am to http://smokinguns.beer-garden.org/smoki ... ervers.txt
--------------------------------------------------------
++Beer Garden++
http://www.beer-garden.org
Shafe
Newcomer
 
Posts: 3
Joined: Sat Jan 03, 2009 8:54 am
Location: Eugene, OR



Postby Pyrite » Mon Feb 02, 2009 1:19 am

This is good, but one thing that bootblock did which would be great to have again was allow you to add a server manually, which it would then track along with the automatically tracked servers. That way, servers that didn't appear in the game's server browser (such as mine :() can still appear in the online listing. Any chance of adding this extra functionality please?

Thanks!
User avatar
Pyrite
Pistolero
 
Posts: 28
Joined: Sat Aug 30, 2008 12:43 am



Postby Tequila » Mon Feb 09, 2009 10:19 pm

I just see that server on the page:
Server Name Players Map Address
Quake 3 EscapedTurkey.com 3/32 q3dm5 174.36.56.44:27960
Player Name Frags Ping
Keel (bot) 20 0
Orbb (bot) 30 0
Bones (bot) 13 0


Something goes wrong here, if you have hard coded ip, you should remove this one.
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France




Return to Telegraph Station

Show Sidebar
Show Sidebar

User Control Panel

cron