Q4 Live Server View on website

Locked
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Q4 Live Server View on website

Post 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.
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post by DrWho »

some thing like "Live Game Server List"

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

but need it for q4..
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post by DrWho »

-xXx-MoFo
Posts: 32
Joined: Thu Oct 20, 2005 3:20 am

Re: Q4 Live Server View on website

Post 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
R00k
Posts: 15188
Joined: Mon Dec 18, 2000 8:00 am

Post by R00k »

You could link to serverspy.com's info/status. Surely they will support Q4 servers pretty soon.
MidnightQ4
Posts: 520
Joined: Tue Oct 18, 2005 7:59 pm

Post 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.
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post 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.
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post by DrWho »

slackX
that looks great.
could i get the source files of the one you re-wrote?
thanks
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post 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.
Last edited by slackX on Sun Oct 30, 2005 8:32 pm, edited 1 time in total.
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post 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....
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post 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";
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post 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...
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post 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
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post 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...
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post 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/
Last edited by slackX on Sun Oct 30, 2005 8:54 pm, edited 3 times in total.
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post by DrWho »

any one get this working on a windows server yet??
i am still stumped
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post 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.
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post by DrWho »

thank you slackX
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post 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
DrWho
Posts: 25
Joined: Mon Oct 17, 2005 2:27 pm

Post 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?
slackX
Posts: 20
Joined: Sat Oct 22, 2005 5:05 am

Post 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.
Locked