Page 1 of 1

Server Query Protocol?

Posted: Sat Jan 26, 2013 11:00 pm
by StrikerMan780
Is there somewhere where I can get the specs for the server query protocol? I wish to query a server via PHP, in order to return things such as Player Count, Current Map, Server Name, and a list of Players in-game.

If someone could point me in the right direction, that would be excellent. Thanks!

RE: Server Query Protocol?

Posted: Sun Jan 27, 2013 12:08 am
by Watermelon
You should be able to get everything you need here:
http://wiki.zandronum.com/Launcher_protocol


One thing I just discovered is that the huffman package actually has a PHP file in it that takes care of all the Huffman coding for you so it's nice and easy to implement instead of having to spend hours making your own table/functions!


If you run into any more possible problems I should be able to help among others here.

RE: Server Query Protocol?

Posted: Sun Jan 27, 2013 1:09 am
by StrikerMan780
Thanks a bunch. :)

RE: Server Query Protocol?

Posted: Sun Jan 27, 2013 5:13 pm
by AlexMax
Watermelon wrote: You should be able to get everything you need here:
http://wiki.zandronum.com/Launcher_protocol

One thing I just discovered is that the huffman package actually has a PHP file in it that takes care of all the Huffman coding for you so it's nice and easy to implement instead of having to spend hours making your own table/functions!
When I last took a look at it, the PHP function had a couple of bugs in terms of handling of certain datagrams...though it's been so long that I can't for the life of me remember what they were.

Here is my implementation of the huffman encoder/decoder in Python. It was based off the PHP version and is heavily commented, so just compare the two and see if the PHP version leaves anything out:

https://bitbucket.org/alexmax2742/pysku ... at=default

Tests:

https://bitbucket.org/alexmax2742/pysku ... at=default

RE: Server Query Protocol?

Posted: Sun Jan 27, 2013 8:01 pm
by bond
It would be very nice to remove huffman encoding from all launcher (server and master) protocols at all
It is completely useless and only overburden various launcher implementations

RE: Server Query Protocol?

Posted: Wed Jan 30, 2013 1:15 am
by AlexMax
bond wrote: It would be very nice to remove huffman encoding from all launcher (server and master) protocols at all
It is completely useless and only overburden various launcher implementations
Agreed. From what I've seen, the zandronum huffman frequency tree isn't even particularly well optimized for zandronum traffic.