|
|
#1 |
|
Guest
Posts: n/a
|
Server Query Questions
Okay I understand that some of you may not understand php code. But I was reading on the dev wiki -> http://developer.valvesoftware.com/wiki/Server_queries (that page in particular) and reading I found that I can send this
Code:
\xFF\xFF\xFF\xFFTSource Engine Query\x00 But when start to try and do challenge the to get the code it returns a non number with cancel code in it. So what would i need to send in order to get player list and server rules? so I can get a valid response back in order to format in to a understandable output. |
|
|
|
#2 |
![]() Join Date: Sep 2006
Reputation: 9
Posts: 2,691
|
So you send this:
http://developer.valvesoftware.com/w...Y_GETCHALLENGE And it's not sending anyhting back? |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
The returned information in the string is
Code:
3 74 178 4 so translation is 3 = ETX (End of Text) ; 74 = J ; 178 Not there ; 4 = EOT (End of transmission) I got the data from here http://www.asciitable.com. and said string will not be allowed to be returned to the server so i can get the as2_player list edit if you are wondering how i got the ascii chars i added a debug section to my scripts that out puts the acsii char id in dec form. |
|
|
|
#4 |
![]() Join Date: Jan 2003
Reputation: 1834
Posts: 5,328
|
If I were going to try debugging this, I'd check: make sure you're sending the right data to the server, see if that string of 4 bytes is in fact a 4-byte number of some kind that might mean something, try changing which server you're querying, see if it returns the same value each time.
And if all that doesn't work, see if there's a PHP class available on the 'net that will do the job for you! |
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
well i am kinda regulated to make this from peices of other scripts and some of my code that i added as most if not all the scripts i have found are a no longer supported / discontinued support in 05 or is not php5 compliant with no intension of upgrading to php5
okay edit the ascii decode from my debug says this is what i am sending for the challenge requests Code:
255 255 255 255 87 Code:
\xff\xff\xff\xff\x57 Last edited by amw_drizz: 04-01-2008 at 02:57 PM. |
|
|
|
#6 |
|
Guest
Posts: n/a
|
so any more ideas?
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|