Page 1 of 1

Q4 Live Server View on website

Posted: Fri Oct 21, 2005 12:28 pm
by DrWho
hey guys
i would like to view my server info on my site.
like players & map.
pic of current map.

also if you know of a remote consol that would be cool too!

please post links or info.

Posted: Fri Oct 21, 2005 2:27 pm
by DrWho
some thing like "Live Game Server List"

http://www.greycube.com/site/download.php?view.44

but need it for q4..

Posted: Fri Oct 21, 2005 3:15 pm
by DrWho

Re: Q4 Live Server View on website

Posted: Fri Oct 21, 2005 3:20 pm
by -xXx-MoFo
DrWho wrote:hey guys
i would like to view my server info on my site.
like players & map.
pic of current map.

also if you know of a remote consol that would be cool too!

please post links or info.

There is some php game server browser called gameservers or some shit at dragonfly nuke it supports doom3 so i tmay as well allow you to get a quake 4 query due to the ports configuration in the site mod

Posted: Fri Oct 21, 2005 5:06 pm
by R00k
You could link to serverspy.com's info/status. Surely they will support Q4 servers pretty soon.

Posted: Fri Oct 21, 2005 11:04 pm
by MidnightQ4
this isn't a website tool, but it does kick ass:

http://www.dfsoftware.com/downloads.html

it shows the status of your favorite servers in the windows taskbar.


Sorry I guess it doesn't work with Q4, they must have changed the query parameters since Q3.

Posted: Sat Oct 22, 2005 5:28 am
by slackX
I don't know if you're ever heard of an old q3 cgi/perl script called q3mon.pl (formerly known as Qsmon before the tweaks). This script uses qstat to query q3 servers and formats the results for web. Well qstat now supports quake4 so all you'd need to do is replace a single argument in the perl script to have a working q4 monitor.

q3mon.pl (just googled it, didn't test):
http://games.mirrors.tds.net/pub/planet ... z/q3mon.pl
qstat:
http://sourceforge.net/project/showfile ... p_id=56603

I've been rewriting the code here and there and this is what I've come up with so far. Nothing fancy but it does the trick.
http://www.dev1ance.net/q4mon/

Hope this helps.

Posted: Sat Oct 22, 2005 11:01 am
by DrWho
slackX
that looks great.
could i get the source files of the one you re-wrote?
thanks

Posted: Sat Oct 22, 2005 5:17 pm
by slackX
Thanks.

I only edited the script to blend in with my site, so it's not very user friendly. You'll probably want to pick through the code and css and clean it up because it's very messy.

Again, it's nothing pretty but it works.
http://files.dev1ance.net/quake4/q4mon/

btw, qstat seems to have a bug where it doesn't query the player->score (frags). Hopefully it'll be fixed soon.

Posted: Sat Oct 22, 2005 9:45 pm
by DrWho
so do i just use a url to call the script?
like
http://www.teamtimelord.com/cgi-bin/q4mon.pl
because thats not working.

or do i call the script from with in a html doc.
if so what is the tag syntex?

was i suppossed to included every thing from that qstat-2.10 directory into the cgi-bin... because i didnt.

i am feeling so thick right about now....

Posted: Sat Oct 22, 2005 9:52 pm
by DrWho
also i did edit the variables in the .pl
@Quake4Servers = ('70.61.50.55:28004','70.61.50.55:27004');

$ScriptURL = "http://www.teamtimelord.com/cgi-bin/q4mon.pl";

$ImageURL = "http://www.teamtimelord.com/images/quake4";

Posted: Sat Oct 22, 2005 10:08 pm
by DrWho
it would be awsome if i could get it to work
i will change the css and all after so it dosnt rip you off.
also will put coments on it refering to you and your site

just want it to work...

Posted: Sat Oct 22, 2005 10:24 pm
by slackX
Thanks riddla, I never thought for a second that this would be worthy of a sticky :P I'll spend some time cleaning up the code and writing some documentation within the perl script itself.

DrWho:
Your webserver is running on a windows machine so you'll need to grab the source and compile it yourself. The binary which I included in the tar.gz was compiled for linux - That is why you can't get it to work. Check out qstat's COMPILE.txt.

btw, 2.10 is now the latest version:
http://sourceforge.net/project/showfile ... _id=365293

Posted: Sat Oct 22, 2005 10:43 pm
by DrWho
ok...
i dont see a exe to instal qstat.
it i type in make install under RUN
under start menu nothing happens...

guess i will have to dig aound a bit...
the compile.txt is just a bit cryptic...

Posted: Sun Oct 23, 2005 5:31 am
by slackX
I really don't know much about compiling qstat in a win32 environment. Perhaps someone who does might be able to help you out there? Sorry DrWho.

In the meantime, I've been doing a little work and have added some documentation, created 2 skins, and cleaned up the code.

Example 1: http://www.dev1ance.net/q3w/q4mon.pl
Example 2: http://www.dev1ance.net/q3w/q4mon2.pl

You can download the latest version here:
http://files.dev1ance.net/quake4/q4mon/

Posted: Tue Oct 25, 2005 1:43 pm
by DrWho
any one get this working on a windows server yet??
i am still stumped

Posted: Tue Oct 25, 2005 3:31 pm
by DrWho
MidnightQ4 wrote:this isn't a website tool, but it does kick ass:

http://www.dfsoftware.com/downloads.html

it shows the status of your favorite servers in the windows taskbar.


Sorry I guess it doesn't work with Q4, they must have changed the query parameters since Q3.
server-spy is bocked at most employers through web sense...
thats why a true server query tool for my windows web server is needed.

Posted: Wed Oct 26, 2005 12:53 am
by DrWho
thank you slackX

Posted: Sat Oct 29, 2005 2:28 am
by slackX
Just a lil bump for those who have been looking for a precompiled qstat for windows. I've finally managed to compile it.

qstat 2.10
http://files.dev1ance.net/quake4/q4mon/ ... -win32.zip

Posted: Sun Oct 30, 2005 6:44 pm
by DrWho
so would i leave this line?
$QstatPath = "./qstat";
or would it have to be
$QstatPath = "./qstat.exe"
do i leave the exe iin the same dir as the *.pl?

also do i need to be able to execuet the exe on the server or will the pl script do that?

Posted: Sun Oct 30, 2005 8:39 pm
by slackX
If you have qstat.exe in the same directory as q4mon.pl then you would use:

$QstatPath = "./qstat.exe";

If, for instance, you have qstat.exe in c:\qstat\ then you'd want to use:

$QstatPath = "c:\qstat\qstat.exe";

You shouldn't have to worry about permissions on qstat.