Server Query Protocol?

General discussion of the port and Doom-related chat.
Post Reply
User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

Server Query Protocol?

#1

Post by StrikerMan780 » Sat Jan 26, 2013 11:00 pm

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!

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Server Query Protocol?

#2

Post by Watermelon » Sun Jan 27, 2013 12:08 am

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.
Last edited by Watermelon on Sun Jan 27, 2013 12:08 am, edited 1 time in total.

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: Server Query Protocol?

#3

Post by StrikerMan780 » Sun Jan 27, 2013 1:09 am

Thanks a bunch. :)

User avatar
AlexMax
Forum Regular
Posts: 244
Joined: Tue May 29, 2012 10:14 pm
Contact:

RE: Server Query Protocol?

#4

Post by AlexMax » Sun Jan 27, 2013 5:13 pm

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
Last edited by AlexMax on Sun Jan 27, 2013 5:14 pm, edited 1 time in total.
The only limit to my freedom is the inevitable closure of the
universe, as inevitable as your own last breath. And yet,
there remains time to create, to create, and escape.

Escape will make me God.

User avatar
bond
 
Posts: 44
Joined: Mon Jun 04, 2012 1:43 pm
Contact:

RE: Server Query Protocol?

#5

Post by bond » Sun Jan 27, 2013 8:01 pm

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

User avatar
AlexMax
Forum Regular
Posts: 244
Joined: Tue May 29, 2012 10:14 pm
Contact:

RE: Server Query Protocol?

#6

Post by AlexMax » Wed Jan 30, 2013 1:15 am

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.
The only limit to my freedom is the inevitable closure of the
universe, as inevitable as your own last breath. And yet,
there remains time to create, to create, and escape.

Escape will make me God.

Post Reply