yucatan Posted May 10, 2011 Share Posted May 10, 2011 (edited) Hello guys. I'm trying to send a information query from autoit to a counter strike source server and request some basic information howmany players are connected etc this is my code until now. #include <Array.au3> UDPStartup() OnAutoItExitRegister("Cleanup") $socket = UDPOpen("84.27.55.62", 27015) If @error <> 0 Then Exit $buffer = StringToBinary("TSource Engine Query\0") $status = UDPSend($socket, $buffer) ConsoleWrite($socket[1] & @CRLF) $teller = "0" While 1 $teller +=1 if $teller = 300 then exit $data = UDPRecv($socket, 9999) If $data <> "" then Exit sleep(100) WEnd Func Cleanup() UDPCloseSocket($socket) UDPShutdown() EndFunc here is discribed how the UDP package should be build i'm pretty sure i'm doing something wrong. http://developer.valvesoftware.com/wiki/Server_Queries Here is a php version script that i tested and works. http://diktaturen.net/sqs/php-serverquery11.zip i dont know why but for some reason it just dont work. there is a counter strike server active on 84.27.55.62:27015 u can use that ip to test. this is the function we are trying to build : A2S_INFO Basic information about the server. Thanks. Greetz Yucatan Edited May 10, 2011 by yucatan Link to comment Share on other sites More sharing options...
wakillon Posted May 10, 2011 Share Posted May 10, 2011 Do you read this ? tilktainc 1 AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Blue_Drache Posted May 10, 2011 Share Posted May 10, 2011 (edited) Do you read this ? But he's not automating the client. He's only asking servers for information. Similar to website queries ... or gamespy ... or xfire.Try reading TFA Edited May 10, 2011 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
wakillon Posted May 10, 2011 Share Posted May 10, 2011 But he's not automating the client. He's only asking servers for information. Similar to website queries ... or gamespy ... or xfire.Try reading TFAAre you sure Valik'll be in your opinion ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Valik Posted May 10, 2011 Share Posted May 10, 2011 I'm not sure how "DO NOT DISCUSS GAME AUTOMATION HERE" is ambiguous, but okay. Thread locked. Link to comment Share on other sites More sharing options...
Recommended Posts