The Tribes Packet works something like this:
Send "`**" - short server info only
Receive:
4 bytes "a**b"
1 byte: length of game name string
game name string
1 byte: length of version string
version string
1 byte: lenth of server name
server name
1 byte: [0|1] dedicated server
1 byte: [0|1] password
1 byte: number of players
1 byte: max players
1 byte: always 0 (null) denoting end of packet
Send "b**" - player and server info
Receive:
4 bytes "c**b"
1 byte: length of game name string
game name string
1 byte: length of version string
version string
1 byte: lenth of server name
server name
1 byte: [0|1] dedicated server
1 byte: [0|1] password
1 byte: number of players
1 byte: max players
2 bytes: (integer) cpu speed
1 byte: length of mods string
mods string
1 byte: length of mission string
mission string
1 byte: length of map string
map string
1 byte: length of server info string
server info string *see notes below
1 byte: (int) number of teams
1 byte: length of team score label string
team score label string *see notes below
1 byte: length of player label string
player label string
n packets, one for each team
1 byte: length of team name string
team name string
1 byte: length of team data string
team data string *see notes below
n packets, one for each player
1 byte: multiply by 4 to get ping time
1 byte: % packet loss
1 byte: team number
1 byte: length of player name string
player name string
1 byte: length of player data string
player data string *see notes below
1 byte: always 0 (null) denoting end of packet
*NOTES:
Server info string appears to be 3 strings separated
by a line feed (ascii char 10). GameSpy does not show
this info.
Team data and Player data strings contain the score
and place holders for some of the following seperated
by a tab (ascii char 9):
%n = Player Name
%t = Team Name
%p = Ping
%l = Packet Loss
Note that I have seen others in the team data but it
was only on a couple of servers I could not locate
that server again.
Logged In: YES
user_id=151010
Thanks for the info, I was able to use it for implementing the Tribes module. If you have similar info for
Tribes 2, please post it here. Thx.