Refreshx

The REFRESHX is a Raw command used in Soldat to give admin clients information about the server. It contains more information than REFRESH. The 1992 (as of 2.7.0e) byte-long REFRESHX-packet is sent right after REFRESHX\r\n.

Attention: The structure can change when a new version of Soldat comes.

Structure

 * Player (1888 Bytes)
 * Names (32*25 Bytes; first Byte (unsigned char) indicates length of the nick)
 * HWIDs (32*12 Bytes)
 * Teams (32*1 Byte; 0=DM Team, 1..4=Alpha..Delta, 5=Spectator)
 * Kills (32*2 Bytes; unsigned short)
 * Caps (32*1 Byte; unsigned char)
 * Deaths (32*2 Bytes; unsigned short)
 * Pings (32*4 Bytes; signed long)
 * IDs (32*1 Byte; unsigned char)
 * IPs (32*4 Bytes; each byte can be decoded as unsigned char then put together in the given order to a 0.0.0.0 format; or unpack as unsigned long (big endian) and use long2ip)
 * X Locations (32*4 Bytes; float)
 * Y Locations (32*4 Bytes; float)
 * Red Flag X Location (4 Bytes; float)
 * Red Flag Y Location (4 Bytes; float)
 * Blue Flag X Location (4 Bytes; float)
 * Blue Flag Y Location (4 Bytes; float)
 * Team Scores (4*2 Bytes; unsigned short)
 * Map Name (17 Bytes; first Byte (unsigned char) indicates length)
 * Time Limit (4 Bytes; unsigned long; in Ticks)
 * Time Left (4 Bytes; unsigned long; in Ticks)
 * Cap/Kill Limit (2 Bytes; unsigned short)
 * Gamestyle (1 Byte; unsigned char; 0=DM, 1=PM, 2=TM, 3=CTF, 4=RM, 5=INF, 6=HTF)
 * Max Players (1 Byte; unsigned char)
 * Max Spectators (1 Byte; unsigned char)
 * Game Passworded? (1 Byte; boolean)
 * Next Map (17 Bytes; first Byte (unsigned char) indicates length)