User Tools

Site Tools


projects:jxqf:protocols:savage

MasterServer

Format

7E 41 03 00 00 [header information]
D9 0A FC FE [four IP octects in network byte order] ( 217.10.252.254 )
E3 2B [port number in network byte order] ( 2b * 256 + E3 = port number 11235 )

Basic Server Info

Send a 10-byte UDP packet off to the server (at the given IP and port) in the following format:
9E 4C 23 00 00 [header information]
C8 (C8 is shorter information) CE is the more detailed information from the server)
28 18 00 00 (4 bytes of your ping value, which will be echoed back in the server response)

Reply

9E 4C 23 00 00 [standard header]
C9
0A (the current net protocol version. If it doesn't match your client's net protocol version, don't display this server, as they are incompatible)
28 18 00 00 (your ping value sent back to you)

Then come two strings, both of which are null-terminated.
Both strings contain standard key/value pairs, using FF and FE as the field delimiters. FF marks the key and FE marks the value.

Full Server Info

Send a 10-byte UDP packet off to the server (at the given IP and port) in the following format:
9E 4C 23 00 00 [header information]
CE (CE is the more detailed information from the server, including the current player names and other data)
28 18 00 00 (4 bytes of your ping value, which will be echoed back in the server response)

Reply

9E 4C 23 00 00 [standard header]
CF (because it is the more detailed info)
0A (the current net protocol version. If it doesn't match your client's net protocol version, don't display this server, as they are incompatible)
28 18 00 00 (your ping value sent back to you)

Then come two strings, both of which are null-terminated.
Both strings contain standard key/value pairs, using FF and FE as the field delimiters. FF marks the key and FE marks the value.
There is a special key named “players” whose value contains all the players and teams, they are separated by 0x0A (newline).

projects/jxqf/protocols/savage.txt · Last modified: 2009/01/08 21:04 by kratz00