C>S 0x09 SID_GETADVLISTEX
0x09
SID_GETADVLISTEX
(does not include protocol header)
(UINT16) Game Type
(UINT16) Sub Game Type
(UINT32) Viewing Filter
(UINT32) Reserved (0)
(UINT32) Number of Games
(STRING) Game Name
(STRING) Game Password
(STRING) Game Statstring
Remarks
Retrieves a list of games.
Game Type:
For STAR
, SEXP
, SSHR
, JSTR
, and W2BN
, a value of 0
indicates that any type is acceptable.
Possible game types:
0x00
: All0x02
: Melee0x03
: Free for all0x04
: One vs one0x05
: CTF0x06
: Greed0x07
: Slaughter0x08
: Sudden Death0x09
: Ladder0x10
: Iron Man Ladder0x0A
: Use Map Settings0x0B
: Team Melee0x0C
: Team FFA0x0D
: Team CTF0x0F
: Top vs. Bottom
For DRTL
and DSHR
, Game Type is used to specify a level range, ensuring clients receive a list of games with similarly experienced players.
Possible level ranges:
0x00
: Level 10x01
: 2 – 30x02
: 4 – 50x03
: 6 – 70x04
: 8 – 90x05
: 10 – 120x06
: 13 – 160x07
: 17 – 190x08
: 20 – 240x09
: 25 – 290x0A
: 30 – 340x0B
: 35 – 390x0C
: 40 – 470x0D
: 48 – 50
For all other games, Game Type can be set to 0x00
.
Sub Game Type:
- For Greed: resources in multiples of 2500 (
0x01
= 2500,0x02
= 5000, etc.) - For Slaughter: minutes in multiples of 15 (
0x01
= 15,0x02
= 30, etc.) - For Ladder: indicates if disconnects count as a loss (
0x01
= Yes,0x00
= No) - For Team Melee: number of teams (
0x01
= 2,0x02
= 3, etc.) - For Team Free For All: number of teams (
0x01
= 2,0x02
= 3, etc.) - For Team Capture The Flag: number of teams (
0x01
= 2,0x02
= 3, etc.) - For Top vs. Bottom: players-to-team ratio (1–7)
- For all other game types:
0x01
indicates no sub game type
Viewing Filter:
0xFFFF
: Use the combination of values in this packet0xFF80
: Show all games- For
STAR
,SEXP
,SSHR
, andJSTR
: set to0x30
- For
DRTL
andDSHR
: game sets to0xFFFF
, but setting to0x00
disables viewing restrictions and shows all games
Reserved (0):
This value is hardcoded to 0x00
by all games.
Number of Games:
Specifies how many games to list.
- For a full listing: use
0xFF
- Default for
DRTL
andDSHR
:0x19
Comments
Any chance you could revise this, and include the values for WAR3 and W3XP in?
Condition 3 is 0xFFFF for SEXP as well.
or 0xFF80 for All Games
Updated according to Frost's documentation as well as the information here.
Thank you for your contributions.
I don't know if the second DWORD value is zero in ALL games and ALL versions. I do know that it is hard-coded in the current version of Starcraft: Broodwar, though.