Server query issue.

General forum for discussions regarding UTStatsDB
Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Server query issue.

Postby Warden64 » Wed Feb 18, 2009 12:10 pm

Hi, i'm find utstatsdb serverquery issue. If server has many parameters and mutators, he form 2 packets instead 1 (first packet have length >490-500 bytes) and in 2 packet he insert those parameters which don't be located in first packet. But serverquery.php process this packet as answer on "player info" packet (\x7f\x00\x00\x00\x02) and get part of parameter name as player name. When server send player info packet utstats return "destination unreachable".

Example: Image

Query packets:
first options packet:
image
second options packet:
image
player info packet:
image
icmp packet:
image

And more, i fix call array_multisort function in line 1305 to prevent warning message
Warning: array_multisort() [function.array-multisort]: Argument #6 is expected to be an array or a sort flag in /var/www/utstats/serverquery.php on line 1306
i make this changes:

Code: Select all

if (isset($team)) array_multisort($score, SORT_NUMERIC, SORT_DESC, $name, $ping, $team); else array_multisort($score, SORT_NUMERIC, SORT_DESC, $name, $ping);
maybe it's wrong, but it work :)

Thanks.
Last edited by Warden64 on Wed Feb 18, 2009 12:17 pm, edited 1 time in total.

Panther
Site Admin
Posts: 500
Joined: Sat Dec 08, 2007 12:51 am
Contact:

Re: Server query issue.

Postby Panther » Wed Feb 18, 2009 12:15 pm

Please specify the version of UTStatsDB and your UT server that you're using.

Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Re: Server query issue.

Postby Warden64 » Wed Feb 18, 2009 12:18 pm

Server: Dedicated linux 3369.3, using utcomp votings.
Utstatsdb v3.06 svn.

Panther
Site Admin
Posts: 500
Joined: Sat Dec 08, 2007 12:51 am
Contact:

Re: Server query issue.

Postby Panther » Wed Feb 18, 2009 1:03 pm

What about the UT server? I gather this is some version of UT '99?
What query protocol?

Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Re: Server query issue.

Postby Warden64 » Wed Feb 18, 2009 1:14 pm

It's ut2004 server, i set in utstatsdb admin page query type = game spy.

Panther
Site Admin
Posts: 500
Joined: Sat Dec 08, 2007 12:51 am
Contact:

Re: Server query issue.

Postby Panther » Wed Feb 18, 2009 1:19 pm

This is something I corrected with the other protocols, but apparently not GameSpy. Can you supply me with an outside IP and port to your server?

Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Re: Server query issue.

Postby Warden64 » Wed Feb 18, 2009 1:43 pm

w64.dyndns.org:8888
it's home localhost server, original server masked by ip-filter :(

Panther
Site Admin
Posts: 500
Joined: Sat Dec 08, 2007 12:51 am
Contact:

Re: Server query issue.

Postby Panther » Wed Feb 18, 2009 3:50 pm

I've updated serverquery.php which is available in the SVN. This fixes multiple GameSpy query protocol issues. I would, however, recommend using the Unreal protocol instead, which I believe is actually the newer version of the GameSpy protocol.

Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Re: Server query issue.

Postby Warden64 » Wed Feb 18, 2009 6:44 pm

I've updated serverquery.php which is available in the SVN. This fixes multiple GameSpy query protocol issues. I would, however, recommend using the Unreal protocol instead, which I believe is actually the newer version of the GameSpy protocol.
UT protocol doesn't work with ut2004, server not responding.

Thanks a lot, for fast fix!!!

Panther
Site Admin
Posts: 500
Joined: Sat Dec 08, 2007 12:51 am
Contact:

Re: Server query issue.

Postby Panther » Wed Feb 18, 2009 8:04 pm

It does, but perhaps not if you disable certain things. Do you have OLStats installed?

Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Re: Server query issue.

Postby Warden64 » Wed Feb 18, 2009 9:40 pm

No, i use native ut2004 game stat class
GameStatsClass=Engine.GameStats

Panther
Site Admin
Posts: 500
Joined: Sat Dec 08, 2007 12:51 am
Contact:

Re: Server query issue.

Postby Panther » Thu Feb 19, 2009 9:06 am

You might have to use GameStatsClass=IpDrv.MasterServerGameStats in order to get the newer status protocol working.

Warden64
Posts: 8
Joined: Wed Feb 18, 2009 11:36 am

Re: Server query issue.

Postby Warden64 » Tue Feb 24, 2009 5:38 am

You might have to use GameStatsClass=IpDrv.MasterServerGameStats in order to get the newer status protocol working.
Why GameStatsClass may affect the request of the state of the server? I think GameStatsClass has affect only on LogFiles and log matches, but not server queriy. What games must use Unreal Protocol?

With Server Query type = Game SPY ut2004 works fine.


Return to “UTStatsDB”