User Tools

Site Tools


projects:jxqf:protocols:savage2

MasterServer

Server Info

Send a 12-byte UDP packet off to the server (at the given IP and port) in the following format:
9a de 97 f1 01 [header information]
c4 [unknown]
80 [unknown]
01 [unknown]
28 18 00 00 (4 bytes of your ping value, which will be echoed back in the server response)

Reply

9a de 97 f1 01 [standard header]
1 byte [unknown, value differs]
1 byte [unknown, value differs]
1 byte [unknown, always 0x02]
28 18 00 00 (your ping value sent back to you)
x bytes + 0x00 [server name, null terminated string]
1 byte [player count]
1 byte [max player count]
8 byte + 0x00 [time/status, null terminated string]
x bytes + 0x00 [current map, null terminated string]
x bytes + 0x00 [next map, null terminated string]
x bytes + 0x00 [location, null terminated string]
1 byte [min. players per team]
1 byte [server sends stats or not (0 indicates no, 1 indicates yes)]
3 bytes + 0x00 [races, null terminated string]
7 bytes + 0x00 [version string, null terminated string]
1 byte [password set or not (0 indicates no, 1 indicates yes)]
1 byte [unknown]
8 bytes [unknown, all 0xFF]

0000   9a de 97 f1 01 70 a6 02 29 00 00 00 55 6e 6e 61  .....p..)...Unna
0010   6d 65 64 20 53 65 72 76 65 72 00 02 14 30 30 3a  med Server...00:
0020   30 33 3a 31 39 00 64 75 65 6c 5f 61 72 65 6e 61  03:19.duel_arena
0030   00 61 6e 63 69 65 6e 74 63 69 74 69 65 73 00 55  .ancientcities.U
0040   6e 6b 6e 6f 77 6e 00 02 00 48 76 42 00 31 2e 37  nknown...HvB.1.7
0050   2e 35 2e 30 00 01 00 ff ff ff ff ff ff ff ff     .5.0...........
0000   9a de 97 f1 01 b4 67 02 24 00 00 00 5e 67 45 72  ......g.$...^gEr
0010   6f 27 73 20 5e 79 43 54 46 20 52 50 53 20 5e 72  o's ^yCTF RPS ^r
0020   43 68 61 72 67 65 00 00 10 57 61 69 74 69 6e 67  Charge...Waiting
0030   00 63 74 66 5f 62 65 61 63 68 00 63 74 66 5f 62  .ctf_beach.ctf_b
0040   65 61 63 68 00 43 68 69 20 53 75 62 75 72 62 73  each.Chi Suburbs
0050   2c 20 49 4c 00 03 00 48 76 42 00 31 2e 37 2e 35  , IL...HvB.1.7.5
0060   2e 30 00 00 00 ff ff ff ff ff ff ff ff           .0...........
projects/jxqf/protocols/savage2.txt · Last modified: 2009/01/06 10:53 by kratz00