Hello All

Not many posts been posted in here as late :(

Anyway I have been playing about with Server Queries using PHP and have had
no problems what so ever.
Took me a little while to update my PHP code to handle the Challenge &
Response for Packets (A2S_INFO, A2S_PLAYER and A2S_RULES) for both HL1 and
HL2 type Servers.

All which was fine :)

But today I have just noticed that if you don't put the <4 byte challenge
number> when requesting the players or rules info for a (Non Source Server)
say Counter Strike (cstrike) it just times out (i.e you don't get no
response packet from the server).

The above works fine on a Source Server running Counter Strike: Source...

I thought the Server Query Protocol was the same for both types of servers?

Example:

[Non Source Servers]

(Request for Player Info, no Challenge bytes)
FF FF FF FF 55

No response back, then the socket times out.

[Source Servers]
(Request for Player Info, no Challenge bytes)
FF FF FF FF 55

(Response from Server saying I need to request with the last 4 bytes as my
challenge)
FF FF FF FF 41 6A E9 78 0A

(Request for Player Info, With Challenge bytes)
FF FF FF FF 55 6A E9 78 0A

(Response from server followed by the Player info packet)
FF FF FF FF 44 .....


Using FF FF FF FF 55 or FF FF FF FF 55 FF FF FF FF on a Source Server makes
no difference, yet on a non Source server it does, Why?

Anyone know why this is the case, and will this be corrected in a future
patch (no rush).

Thanks in advance
Paul



_______________________________________________
hlds_apps mailing list
[email protected]
http://list.valvesoftware.com/mailman/listinfo/hlds_apps

Reply via email to