Server Query?
agmike
Join Date: 2011-01-13 Member: 77299Members
Now that there is a dedicated server with hldsupdatetool, is there a way we can query the server and get the same kind of information like a source engine query? I have a custom PHP for my website that queries my source servers, I'd like to modify it slightly to be able to get NS2 query info so I can display the information on my site using my own query image PHP.
Thanks, and I love the engine.
EDIT: Btw, if so I'm looking for specific information on what sort of packet you need to send like (<a href="http://developer.valvesoftware.com/wiki/Server_queries#A2S_INFO" target="_blank">http://developer.valvesoftware.com/wiki/Se...ueries#A2S_INFO</a>) and what it sends back.
Thanks, and I love the engine.
EDIT: Btw, if so I'm looking for specific information on what sort of packet you need to send like (<a href="http://developer.valvesoftware.com/wiki/Server_queries#A2S_INFO" target="_blank">http://developer.valvesoftware.com/wiki/Se...ueries#A2S_INFO</a>) and what it sends back.
Comments
There you go, that's what you need ;)
NS2 listens for queries on join port + 1 (typically 27016). Note that it doesn't return useful data for A2S_PLAYERS nor A2S_RULES, but A2S_INFO returns useful data.
EDIT: Also, seems I can't do a steam://connect so it's not very helpful at this point.