Transport Layer:Transmission Control Protocol (TCP)
Application v1 TCP Messages (SID)
Message Id:0x2C
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


Contains end-of-game statistics.

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

Possible values for Game type:

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

Possible values for Result:

Result Description
0x00 No player or still playing
0x01 Win
0x02 Loss
0x03 Draw
0x04 Disconnect
| Edited: Anonymous



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