RCON is a protocol through which remote commands can be send to the server to control it.
Both Source and COD2/4 servers support rcon functionality (but have different protocols).
My request is to add a method to the parent Protocol class to send remote commands to the game server (via RCON or any other way that is possible). That way, it will extend this library to not only get information but also control game servers, which would be a great addition I think.
Apart from adding the method to send commands to the server, there will also need to be added a new configuration option - "password" (not required)
Here is a link to the specifications for Source's RCON protocol: http://developer.valvesoftware.com/wiki/Source_RCON_Protocol
Here is a link to a page, explaining what kind of things you can do through RCON: http://hlds101.com/rcon.htm
I've attached a sample class, that connects to RCON servers and is able to send commands to them. (Use with caution - it's gathered from different sources and not tested).
If you are open to the idea, but don't have the time to extend this, let me know and I'll try to find time to send you a patch.
Thanks
RCon Sample Class
Hello cyberhorse,
this is a nice idea and it was discussed and thought about a few times before. But we want GameQ to stay a "Game Query" Library only. But i think you should think about creating your own Project ("GameC" ? - Game Server Control :) , possibly based on GameQ, but made for controlling Game Servers. I would also provide some help, if you intressted.
Cheers evilpie
The problem with creating my own is supporting a second database of games. As of now GameQ has one of the most complete list of games it supports and that (along with it's good code) is what makes it really valuable. I don't mind developing a separate project, but I don't think I'll be able to support a current database of games to keep that project useful ...
I think it should be easy to export GameQ games list. Furthermore there are not soo much Rcon Protocols, i only know Quake 3 (used in quake, quake mods and CoD). Source, BF2 and CryEngine and i dont think there will be much more.