A PHP script that, when put on a website, allows to display the complete server information, server and module description, and a list of players online. All done in PHP. And YES, it allows you to query an arbitrary server over the network, just like the NWN client does. Have a look at http://avlis.blackdagger.com (serverstatus) for a demonstration that queries two NWN servers. ** Update V1.1: 1) improved handling of servers not responding 2) improved parsing of playerlist ** Update V1.2: improved handling of servers not responding, again
The code was changed after 1.32 I believe. You will have to figure out the packets that are sent for the player info. I have not figured out which one it is yet, but I am still working on that. I think they took it out because of the lag caused by the querying and then having to generate all the data. Even gamespy doesn't list the players anymore if a server is above the 1.32 version, just the player count and module information.
The code was changed after 1.32 I believe. You will have to figure out the packets that are sent for the player info. I have not figured out which one it is yet, but I am still working on that. I think they took it out because of the lag caused by the querying and then having to generate all the data. Even gamespy doesn't list the players anymore if a server is above the 1.32 version, just the player count and module information.
It isn't working for me. I opened ports 5121-5123 for both TCP and UDP, plugged in the right ports and IP in the script, but it still doesn't seem to work. And yes, instructions would be very nice.
Sorry all! I'm lamer =)))
I am using the server in a local network, and forgot to activate function "post game to gamespy", without this, stats doesn't work.
Anyone has a working version of the NWN server query for 1.62? NWN server query for version 1.61 doesn't work thith 1.62 server :(
If I know the right, error only in this:
$send = "\xFE\xFD\x00\xE0\xEB\x2D\x0E\x14\x01\x0B\x01\x05\x08\x0A\x33\x34\x35\x13\x04\
x36\x37\x38\x39\x14\x3A\x3B\x3C\x3D\x00\x00";
???? ??, ??? ??????...
Posted by Trickster ( ..xxx.xxx ) at 2004-03-27 20:26:00
How about some instructions to go along with this thing. I'm glad you guys have a spiffy little liscencing threat but I don't know how to use this thing.
This is a compilation of the old system into a single score. There were 9 that made this score of 7.23 then rounded to 7.
Posted by Stephen LaBar ( ..xxx.xxx ) at 2003-09-29 20:47:00
Actually I can't get the server status script to work on any other port either. I have tried 5122 and 5123. Any ideas?
Posted by KingRider ( ..xxx.xxx ) at 2003-09-28 20:13:00
Much good version old, is now... lauch newest version 1.32 not work of "server status".. problem a port 5121 this block, only other port open 5122, 5123 and more :(((
Posted by Stephen LaBar ( ..xxx.xxx ) at 2003-09-26 17:30:00
Is anyone besides me having a problem with this script since the 1.32 update?
Posted by Neo25 ( ..xxx.xxx ) at 2003-05-18 22:00:00
i think he was talking to the other idoits Grim
Posted by grim ( ..xxx.xxx ) at 2003-05-03 15:06:00
My post was only regarding a lycos server. Which is free hosting. I now have paid hosting.
Posted by grim ( ..xxx.xxx ) at 2003-05-03 15:05:00
no offense ryu, but I dont want your help.
Posted by Ryuujin ( ..xxx.xxx ) at 2003-05-02 19:14:00
bah cant post php ;_; but ill try again
(((())))
remove all the ( and ) from the above php line and add it to ya site and it will work
Posted by Ryuujin ( ..xxx.xxx ) at 2003-05-02 19:13:00
this works fine people just gotta now a little php
put that were ya want it to show up
Posted by Grim ( ..xxx.xxx ) at 2003-04-25 08:19:00
This doesnt work.
I get
Server status
ERROR: -
Server is offline. No additional info available, sorry.
Posted by Astinus ( ..xxx.xxx ) at 2003-02-02 11:36:00
Ok Tnx, I'll check NWX
Thanks
Posted by Astinus ( ..xxx.xxx ) at 2003-01-28 09:11:00
mmm I test the script but my page shows only 16 player.. I
can't find the problem.. some help?
Tnx
Posted by B@nditbe ( ..xxx.xxx ) at 2002-11-30 07:12:00
Can this script also be used for a Operation Flashpoint
server?
I really want this script on our site so i tryed it, but
it seems not working :(
Can u help me out?
Thx B@nditbe
Posted by peggy weber ( ..xxx.xxx ) at 2002-11-18 11:14:00
I have also tried IP 65.199.30.241:5121 which is land of
lores and 209.240.25.32:5121
Starfire
Posted by Starfire ( ..xxx.xxx ) at 2002-11-18 10:09:00
I have tried it but keep getting offline and confirmed that
the server is online.
the IP I am trying to use is 68.8.78.213:5121 for Midreach
Starfire
Posted by SQiRL ( ..xxx.xxx ) at 2002-11-11 22:12:00
anybody got any tweaks to make a better html display? im
ok in html, but not a very creative guru. any links or
suggestions would be appreciated.
Posted by Klous ( ..xxx.xxx ) at 2002-10-31 08:34:00
You probably should mention that this php script absolutly
requires the server to be setup Gamespy Enabled=1
If Gamespy Enabled=0 your script returns that the server is
down.
Posted by Joe Schmoe ( ..xxx.xxx ) at 2002-10-26 15:39:00
It seems that even though it states that "25" players(for
example) are ingame correctly it will only list the first
16.
Posted by Triskele ( ..xxx.xxx ) at 2002-10-26 06:12:00
Mc Cain, I own multiple servers at a large ISP, I will host
the script for you for free instead of you having to go
find another place for your webpage.
Posted by Papillon ( ..xxx.xxx ) at 2002-10-22 15:54:00
Unfortunately, the server doesn't send it's update in the
response packets. The "queryid" comes close to that (that
is a counter that gets increment by one every time a client
queries the server), but I don't think it's really
helpful...
Posted by Ghost ( ..xxx.xxx ) at 2002-10-11 10:27:00
Great PHP Script, Love it!
I was wondering (if even possible) To include the amount
of time the server has been running for. (on the server
window it is displayed in the bar on top) Just a thought.
Thanks again for sharing this!
Posted by Papillon ( ..xxx.xxx ) at 2002-09-12 12:23:00
I think you did nothing wrong, but the webserver where your
homepage is located doesn't support PHP scripts. That's why
you're getting the file itself and not the server info it
should generate.
Solution: Move your webpage to a provider that supports PHP
(every sensible provider should do that) or find someone
who is willing to host the script for you and then link to
his page...
Posted by Dazeal ( ..xxx.xxx ) at 2002-09-12 09:21:00
Simply awesome! Thanks so much!
Dazeal
Posted by Papillon ( ..xxx.xxx ) at 2002-09-12 05:58:00
I've posted a new version that corrects some problems when
the queried server is down (V1.1). It'll be downloadable as
soon as the description contains the "Update" description,
I guess...