Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 03-31-2008, 06:18 PM   #1
amw_drizz
 
 
 
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
with out the challenge code.

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.
 
Reply With Quote
Old 04-01-2008, 10:27 AM   #2
Marine
 
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?
Marine is offline   Reply With Quote
Old 04-01-2008, 01:37 PM   #3
amw_drizz
 
 
 
Guest
Posts: n/a
The returned information in the string is

Code:
3 74 178 4
that is the ascii code numbers of the string data returned

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.
  Reply With Quote
Old 04-01-2008, 02:37 PM   #4
Epsilon
 
 
 
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!
Epsilon is offline   Reply With Quote
Old 04-01-2008, 02:52 PM   #5
amw_drizz
 
 
 
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
and it is this
Code:
\xff\xff\xff\xff\x57
which is the same from here http://developer.valvesoftware.com/w...Y_GETCHALLENGE

Last edited by amw_drizz: 04-01-2008 at 02:57 PM.
  Reply With Quote
Old 04-03-2008, 11:57 AM   #6
amw_drizz
 
 
 
Guest
Posts: n/a
so any more ideas?
  Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -7. The time now is 11:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.