Hello everyone. I was wondering if anyone could help me decipher how to utilize the Steam API for server queries.
Documentation: https://developer.valvesoftware.com/wiki/Server_Queries#A2S_INFO
Just curious how to query the server, is it through a URL like the other API features?
Hello everyone. I was wondering if anyone could help me decipher how to utilize the Steam API for server queries.
Documentation: https://developer.valvesoftware.com/wiki/Server_Queries#A2S_INFO
Just curious how to query the server, is it through a URL like the other API features?
No, you have to send formatted UDP packets to grab the info. You can use a library like Steam Condenser to do the heavy lifting in that regard.
No, you have to send formatted UDP packets to grab the info. You can use a library like [url=http://koraktor.de/steam-condenser/]Steam Condenser[/url] to do the heavy lifting in that regard.
Hmm. I've not messed with UDP and sockets before.
Could you give me an example of what a query would look like in plain format?
So let's say I wanted to query it for A2S_Info for the map name.
To me it sounds like I could do something like...
UDPSend($aSocket, "Map")
Where $aSocket holds the connection to the server and "Map" is the request I am making.
Hmm. I've not messed with UDP and sockets before.
Could you give me an example of what a query would look like in plain format?
So let's say I wanted to query it for A2S_Info for the map name.
To me it sounds like I could do something like...
[code]UDPSend($aSocket, "Map")[/code]
Where $aSocket holds the connection to the server and "Map" is the request I am making.
The "Request Format" is what you need to be looking at:
http://i.imgur.com/2kCjn1A.png
The "Request Format" is what you need to be looking at:
[IMG]http://i.imgur.com/2kCjn1A.png[/IMG]
Yeah.. that doesn't make any sense to me, lol. Anyway anyone can break it down in layman terms? lol
But thanks a lot for the help thus far!
Yeah.. that doesn't make any sense to me, lol. Anyway anyone can break it down in layman terms? lol
But thanks a lot for the help thus far!