C>S 0x2C SID_GAMERESULT

Transport Layer:Transmission Control Protocol (TCP)
Application Layer:Battle.net v1 TCP Messages (SID)
Message Id:0x2C
Message Name:SID_GAMERESULT
Direction:Client to Server
Used By:Starcraft Original, Starcraft Broodwar
Starcraft Shareware, Starcraft Japanese
Warcraft II BNE
Message Format:
(does not include protocol header)
(UINT32) Game type
(UINT32) Number of results - always 8
(UINT32) [8] Results
(STRING) [8] Game players - always 8
(STRING) Map name
(STRING) Player score

Remarks

Contains end-of-game statistics, sent to the server by all clients that participated in the game.

Player Score is a string containing right-aligned lines separated by 0x0A. The positions in the 'Results' array and the 'Players' array are equivalent.

Game type

Game type Description
0x00 Normal
0x01 Ladder
0x03 Ironman (W2BN only)

Result

Result Description
0x00 No player or still playing
0x01 Win
0x02 Loss
0x03 Draw
0x04 Disconnect
0x05 Observer *

* from PvPGN

| Edited: Anonymous

Comments

timfelgentreff

From the PVPgn sources, it seems the value "0x00" in results can mean "still playing or no player". So a client that disconnects e.g. because they lost the game already should report all remaining players as 0x00 (which will mean still playing). The distinction if it means "still playing" or "no player" is done using the username, a "no player" must have an empty username

Caaaaarrrrlll

Updated