Page 1 of 1
Server query issue.
Posted: Wed Feb 18, 2009 12:10 pm
by Warden64
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:
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.
Re: Server query issue.
Posted: Wed Feb 18, 2009 12:15 pm
by Panther
Please specify the version of UTStatsDB and your UT server that you're using.
Re: Server query issue.
Posted: Wed Feb 18, 2009 12:18 pm
by Warden64
Server: Dedicated linux 3369.3, using utcomp votings.
Utstatsdb v3.06 svn.
Re: Server query issue.
Posted: Wed Feb 18, 2009 1:03 pm
by Panther
What about the UT server? I gather this is some version of UT '99?
What query protocol?
Re: Server query issue.
Posted: Wed Feb 18, 2009 1:14 pm
by Warden64
It's ut2004 server, i set in utstatsdb admin page query type = game spy.
Re: Server query issue.
Posted: Wed Feb 18, 2009 1:19 pm
by Panther
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?
Re: Server query issue.
Posted: Wed Feb 18, 2009 1:43 pm
by Warden64
w64.dyndns.org:8888
it's home localhost server, original server masked by ip-filter

Re: Server query issue.
Posted: Wed Feb 18, 2009 3:50 pm
by Panther
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.
Re: Server query issue.
Posted: Wed Feb 18, 2009 6:44 pm
by Warden64
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!!!
Re: Server query issue.
Posted: Wed Feb 18, 2009 8:04 pm
by Panther
It does, but perhaps not if you disable certain things. Do you have OLStats installed?
Re: Server query issue.
Posted: Wed Feb 18, 2009 9:40 pm
by Warden64
No, i use native ut2004 game stat class
GameStatsClass=Engine.GameStats
Re: Server query issue.
Posted: Thu Feb 19, 2009 9:06 am
by Panther
You might have to use GameStatsClass=IpDrv.MasterServerGameStats in order to get the newer status protocol working.
Re: Server query issue.
Posted: Tue Feb 24, 2009 5:38 am
by Warden64
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.