Valhalla Legends Forums Archive | Battle.net Bot Development References | 0x09 Game Info Statstring Parsing

AuthorMessageTime
MesiaH
anybody know anything about the game statstrings? anything at all?
October 7, 2002, 4:21 PM
0xdeadc0de
straight from bnet_protocol.h from bnetd

#define SERVER_GAMELISTREPLY 0x09ff
typedef struct
{
   t_bnet_header h;
   bn_int        gamecount;
   /* games */
} t_server_gamelistreply PACKED_ATTR();

typedef struct
{
   bn_int   unknown7;
   bn_short gametype;
   bn_short unknown1; /* langid under Diablo... */
   bn_short unknown3;
/*  bn_int   deleted; */ /* they changed the structure at one point */
   bn_short port;     /* big endian byte order... at least they are consistent! */
   bn_int   game_ip;  /* big endian byte order */
   bn_int   unknown4;
   bn_int   unknown5; /* FIXME: got to figure out where latency is */
   bn_int   status;
   bn_int   unknown6;
   /* game name */
   /* clear password */
   /* info */
} t_server_gamelistreply_game PACKED_ATTR();
#define SERVER_GAMELISTREPLY_GAME_UNKNOWN7       0x00000000 /* 0x0000000c */
#define SERVER_GAMELISTREPLY_GAME_UNKNOWN1           0x0001 /* 0x0000 */
#define SERVER_GAMELISTREPLY_GAME_UNKNOWN3           0x0002
#define SERVER_GAMELISTREPLY_GAME_UNKNOWN4       0x00000000
#define SERVER_GAMELISTREPLY_GAME_UNKNOWN5       0x00000000
#define SERVER_GAMELISTREPLY_GAME_STATUS_OPEN    0x00000004
#define SERVER_GAMELISTREPLY_GAME_STATUS_FULL    0x00000006
#define SERVER_GAMELISTREPLY_GAME_STATUS_STARTED 0x0000000e
#define SERVER_GAMELISTREPLY_GAME_STATUS_DONE    0x0000000c
#define SERVER_GAMELISTREPLY_GAME_UNKNOWN6       0x0000002b /* latency? */

Doesn't help much once you get to the game name and stuff that is comma seperated...

Oh, yeah... individual game infos seem to be terminated by 0x0D followed by 0x00

Also, I just found some info here :)
http://botdev.valhallalegends.com/documents/gamelist.txt
October 8, 2002, 6:04 PM

Search