Quake 4 Webserverstatus ?

Locked
Mistralis
Posts: 4
Joined: Tue Dec 27, 2005 2:27 pm

Quake 4 Webserverstatus ?

Post by Mistralis »

Hi there,

im brand new to Quake 4 and we just got our Quake 4 Server online. Now i am searching for a PHP Script, which will check the name, players playing atm ... and so on.

Does anybody know how to get one ?

Best regards,
Mistralis
GibbaTheHutt
Posts: 14
Joined: Tue Dec 27, 2005 3:24 pm

Post by GibbaTheHutt »

Hiya, eastiest way (imo) really is just to use qstat and parse the output into whatever format you want really if there's no actual Q4 specific script about. (feel free to shout if stuck as I can possibly cobble something together, but you'd need to be able to exec qstat from your website which stops some websites).

kquery is also a very good site for query stuff if only php, http://dev.kquery.com/index.php?article=44 shows breakdown of doom3 which I imagine is very similar. On the forums there are various query scripts as well, just can't see a specific Q4 one atm (may well be worth asking someone there).
PieceMaker
Posts: 899
Joined: Tue Jan 25, 2005 4:43 pm

Post by PieceMaker »

I don't have enough time to look for you being I'm heading out the door for work.

But check the following thread:

Dedicated Server Config + Website Server Browser / Monitor

I'm almost sure what your looking for may be in there. If not your bound to find an answer from one of these guys here. ;)
Denz
Posts: 2587
Joined: Thu Aug 17, 2000 7:00 am

Post by Denz »

PieceMaker
Posts: 899
Joined: Tue Jan 25, 2005 4:43 pm

Post by PieceMaker »

Denz wrote:http://www.dfsoftware.com/ServerWatch/
Well of course!!! The program will run and update server status with an html type page. You'd have it running on your system taskbar polling and updating the server status and updating the html.

I just thought he'd like the actual php scripting type that he asked about.

I didn't even think about that program. *DOH!*

*waves* Lo Denz. By the way. PM'd ya :D
Denz
Posts: 2587
Joined: Thu Aug 17, 2000 7:00 am

Post by Denz »

*waves
Mistralis
Posts: 4
Joined: Tue Dec 27, 2005 2:27 pm

Post by Mistralis »

First of all many thanks to you and your answers!!
Denz wrote:http://www.dfsoftware.com/ServerWatch/
Ur right, it is a script witch watches a server status. But i want to implement it to our homepage and if you visit our homepage, the script will check how many players are playing and print out the results
PieceMaker wrote: But check the following thread:
Dedicated Server Config + Website Server Browser / Monitor
Yeah, this is the Pearl one i already found. This is excatly what i want but its in Perl :D

I think i have to convert or write it by myself if i have enough time for it :)

Thanks again!

:icon31:
PieceMaker
Posts: 899
Joined: Tue Jan 25, 2005 4:43 pm

Post by PieceMaker »

Cool! :D-:icon14:

If you do end up re-doing the script or find one that works for you?

Please share it with us. So you can help someone else with that same
question ;)
Mistralis
Posts: 4
Joined: Tue Dec 27, 2005 2:27 pm

Post by Mistralis »

for sure i would share it with all of you ... but dont be so euphoric, i dont know if i will do it and when :paranoid:
GibbaTheHutt
Posts: 14
Joined: Tue Dec 27, 2005 3:24 pm

Post by GibbaTheHutt »

Do you have access to run binaries on your server from php (i.e qstat) ? Or php only ?
Mistralis
Posts: 4
Joined: Tue Dec 27, 2005 2:27 pm

Post by Mistralis »

GibbaTheHutt wrote:Do you have access to run binaries on your server from php (i.e qstat) ? Or php only ?
Its PHP only. Thats why i need to query the server by the php script. And i think this will be the biggest problem :shrug:
GibbaTheHutt
Posts: 14
Joined: Tue Dec 27, 2005 3:24 pm

Post by GibbaTheHutt »

I don't suppose you are using php 5 at all as I think there's a script (but haven't tested it), or if not I may have a bash at doing a script to work in Q4 php 4.3.x.
Locked