S>C 0x44 SID_WARCRAFTGENERAL
Transport Layer: | Transmission Control Protocol (TCP) |
---|---|
Application Layer: | Battle.net v1 TCP Messages (SID) |
Message Id: | 0x44 |
Message Name: | SID_WARCRAFTGENERAL |
Direction: | Server to Client |
Options: | In Research |
Used By: | Warcraft III Reign of Chaos, Warcraft III The Frozen Throne |
Message Format: (does not include protocol header) |
|
Remarks
This message is still being researched!
This message is used for multiple purposes on Warcraft III. Known and validated purposes are listed here.
The following UINT32 identifiers are similar to Product IDs and clan tags, 4-byte strings reversed by endian.
Icon ID
s are the identifiers used in icons-WAR3.bni (an MPQ file) and found reversed in user statstrings (for example 'W3O1' is Orc Peon).Ladder type ID
(WID_USERRECORD):'SOLO'
,'TEAM'
, or'FFA '
(where the last character is a space, 0x20).Team type ID
(WID_USERRECORD):'2VS2'
,'3VS3'
, or'4VS4'
.Ladder type ID
(WID_CLANRECORD):'CLNS'
(solo),'CNL2'
(2v2),'CLN3'
(3v3),'CLN4'
(4v4).
* The field was formerly labeled as "Hours until XP decay", but as no evidence to support this claim has ever been verified (and through personal testing has been found to be altogether false), it has been renamed as unknown for the time being. More information on this value would be appreciated.
** This is the name of the unit for which this icon should be displayed for. The names can be found in the war3.mpq/Units/UnitData.slk.
Comments
I'd like to submit a couple updates to this based on the PvPGN source.
(http://svn.berlios.de/svnroot/repos/pvpgn/trunk/pvpgn/src/bnetd/handle_anongame.cpp)
(http://svn.berlios.de/svnroot/repos/pvpgn/trunk/pvpgn/src/common/anongame_protocol.h)
Subcommand 0x09:
- the second DWORD is the ID of the currently selected icon
- the second DWORD of each icon is the W3 unit ID - these IDs are listed in war3.mpq\Units\UnitData.slk
- last BYTE of each icon is 0 if disabled in user icon selection, 1 if enabled
There's also several other subcommands related to setting up PG and AT games. The packet structures can be found in the PvPGN source files that I listed above.
They apply to both. This is how the official client interprets the 0x09 response fields, regardless of the server implementation (BNet or PvPGN). I've tested these out with my own server.
Updated. Thanks for your addition, RichardNixon.
these IDs are listed in war3.mpq\Units\UnitData.slk
Or War3x.mpq respectively.
What should this mean?
0x00 (WID_GAMESEARCH):
0x00000004: Banned CD-Key
What compression algorithm is used here?
Edit: nevermind.
For WID_GAMESEARCH, a status of 0x00000006 means you have reached the maximum games (~200 or so is the limit) and you have to wait a period of time before playing again.