Hi All,
I hope a KF2 developer could possible help me out here, or someone who has gotten far with this;
I am currently writing a small PHP framework that communicates with a KF2 server over the Query port in order to retrieve information about the server for a web page I'm making for my friends. I've come a long way and discovered how to retrieve basic player information, server details, server rules and the whole protocol in general is done.
The one thing I'm looking for is a specification for the data sent back. I send the challenge request, then a request for either players, details, rules etc. however I don't quite understand the data returned from the server details request for example.
There is a comma separated string coming back, with each entry a key-value pair. The key is always one character and the value always seems to be a numeric one, however I don't know what these values mean. By deduction, I thought that 'd' was the key for the number of waves a server is set to, but I cannot be sure easily.
Is there a specification available for this information structure? Retrieving it was easy enough, however interpreting it is proving to be difficult. I now have map name, game directory, game mode etc. all done - but I would like to be able to interpret all information.
Thank you!
I hope a KF2 developer could possible help me out here, or someone who has gotten far with this;
I am currently writing a small PHP framework that communicates with a KF2 server over the Query port in order to retrieve information about the server for a web page I'm making for my friends. I've come a long way and discovered how to retrieve basic player information, server details, server rules and the whole protocol in general is done.
The one thing I'm looking for is a specification for the data sent back. I send the challenge request, then a request for either players, details, rules etc. however I don't quite understand the data returned from the server details request for example.
There is a comma separated string coming back, with each entry a key-value pair. The key is always one character and the value always seems to be a numeric one, however I don't know what these values mean. By deduction, I thought that 'd' was the key for the number of waves a server is set to, but I cannot be sure easily.
Is there a specification available for this information structure? Retrieving it was easy enough, however interpreting it is proving to be difficult. I now have map name, game directory, game mode etc. all done - but I would like to be able to interpret all information.
Thank you!