Source Query Protocol

  • Thread starter Thread starter gertjuhh
  • Start date Start date
G

gertjuhh

Guest
Does anybody know where to find this?
I want to make a server status script and a live server watching bot for irc.
But i need to query code to accomplish either ;)

Ain't been able to find any of up besides the chages made so that Half-Life would be on the same protocol (atleast that what i think).

If anyone got an example script in php this would be welcome aswell, if not the query code would be verry much appriciated!

Thnx in advance.
 
Thank you verry much for that.
Got the query bit done now, only got some troubles parsing the results...
first i tried a challange query and put the result on the end of the players query, never got this working... :s
Then i tried it with the -1 value and this gets me A result.
But im having troubles parsing this, is any1 willing to help me a hand with this?
I would be verry thankfull!
 
I would like to extend my IRC bot with Source Queries too, so anyone know a good page with references?

EDIT!1 - Just found a library for that purpose, also checked out Valve Editing Resource Center :>
 
Could you link me up with that aswell please Chrysalid??

Any help parsing is still welcome btw!
 
shame its not open source and c++
pretty useless for me now as i want to do it with php
but thnx for the reply anyway!
 
found PHP Class

Found a great class for everyone wanting to use php to query both HL1 and/or HL2 (source) servers.
Its got all the things you need to query a server, but most importantly (for me that was) its got all the parsing function to make something usefull out of the reply from the server ;)
serverspy_php4.zip for PHP4 and serverspy_php5.zip for PHP5
Hope this helps
 
Back
Top