I cannot get GameQ2 to work for any of the game servers I need to scan. I'd like to scan MOHAA and BF1942 servers, but all I get back is the following:
Received the following data!
Array
(
[bf1942] => Array
(
[gq_online] =>
[gq_address] => 109.169.20.199
[gq_port] => 14567
if (!$socket) {
// Server is offline
$errors[] = "$errstr ($errno)";
$errorCount++;
}else{
// Server is online
// Get server information
$cmd = "\xFF\xFF\xFF\xFF\x02getstatus";
fwrite($socket, $cmd);
$statusResults = stream_get_contents($socket);
I'm not sure what you need to send for BF1942 servers, but I was sure hoping to use this library rather than writing my own for BF1942 even though I already wrote one for MOHAA. However, I was hoping to use a class library that worked for both games.
Could you please look into it or add support for those games in version 3 that actually works?
Hi,
I cannot get GameQ2 to work for any of the game servers I need to scan. I'd like to scan MOHAA and BF1942 servers, but all I get back is the following:
Received the following data! Array ( [bf1942] => Array ( [gq_online] => [gq_address] => 109.169.20.199 [gq_port] => 14567
)
Thus, it seems to have not queried the server at all, as this server is online. I was hoping to at least get back the following information:
For MOHAA servers, you need to query each server by sending this command:
// 5 second timeout $socket = stream_socket_client("udp://$fullIP", $errno, $errstr, 5); stream_set_blocking($socket, true); stream_set_timeout($socket, 5);
I'm not sure what you need to send for BF1942 servers, but I was sure hoping to use this library rather than writing my own for BF1942 even though I already wrote one for MOHAA. However, I was hoping to use a class library that worked for both games.
Could you please look into it or add support for those games in version 3 that actually works?