Author | Message | Time |
---|---|---|
Mythics | I've just started with bots on bnet, using visual basic 6.0, and I was wanting to go a little further than just chatting with it. I can create, join, and win/lose games now, as long as they are joined/created by my same program (no udp stuff yet). My next step was to get the list of games to join before adding support to join those games, but I'm having difficulties with sending 0x09. In comparison to bnetdocs: http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=9 my dump appears to have a different format: 0000 00 0d 88 37 ce c0 00 40 f4 68 06 c2 08 00 45 00 ...7...@.h....E. 0010 00 3f d8 fc 40 00 80 06 56 3a c0 a8 00 6b 3f f0 .?..@...V:...k?. 0020 ca 7e 07 1c 17 e0 0d 39 d1 11 62 e5 1f 0c 50 18 .~.....9..b...P. 0030 fb 7f 11 71 00 00 ff 09 17 00 0a 00 00 00 1f 00 ...q............ 0040 00 00 00 00 00 00 19 00 00 00 00 00 00 ............. 09 is the correct id 17 00 = ? 0a 00 = Use map settings 00 00 = ? 1f 00 00 00 = ? 00 00 00 00 = ? 19 00 00 00 = ? Game name, Game password, and Game stats doesn't even seem like appropriate variables for the search... I assume I'm just missing something, so any help? | March 9, 2005, 12:16 AM |
UserLoser. | [quote author=Mythics link=topic=10861.msg102935#msg102935 date=1110327399] I've just started with bots on bnet, using visual basic 6.0, and I was wanting to go a little further than just chatting with it. I can create, join, and win/lose games now, as long as they are joined/created by my same program (no udp stuff yet). My next step was to get the list of games to join before adding support to join those games, but I'm having difficulties with sending 0x09. In comparison to bnetdocs: http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=9 my dump appears to have a different format: 0000 00 0d 88 37 ce c0 00 40 f4 68 06 c2 08 00 45 00 ...7...@.h....E. 0010 00 3f d8 fc 40 00 80 06 56 3a c0 a8 00 6b 3f f0 .?..@...V:...k?. 0020 ca 7e 07 1c 17 e0 0d 39 d1 11 62 e5 1f 0c 50 18 .~.....9..b...P. 0030 fb 7f 11 71 00 00 [color=yellow]ff 09 17 00 0a 00 00 00 1f 00 ...q............ 0040 00 00 00 00 00 00 19 00 00 00 00 00 00 .............[/color] 09 is the correct id 17 00 = ? 0a 00 = Use map settings 00 00 = ? 1f 00 00 00 = ? 00 00 00 00 = ? 19 00 00 00 = ? Game name, Game password, and Game stats doesn't even seem like appropriate variables for the search... I assume I'm just missing something, so any help? [/quote] To match that up vs BnetDocs: [pre] <four byte packet header> (WORD) Product-specific condition 1 (WORD) Product-specific condition 2 (DWORD) Product-specific condition 3 (DWORD) Product-specific condition 4 (DWORD) Maximum number of games to list (STRING) Game name (STRING) Game password (STRING) Game stats [/pre] to [pre] (BYTE) 0xff - header (BYTE) 0x09 - id (WORD) 0x17 - length (WORD) 0x0a - Game type to list: UMS (WORD) 0x00 (DWORD) 0x1F (DWORD) 0x00 (DWORD) 0x19 - 25 games to list (STRING) 0x00 - null terminator only, no actual data given (STRING) 0x00 - null terminator only, no actual data given (STRING) 0x00 - null terminator only, no actual data given [/pre] The game name, game password, and game stats will not always be there. If you want to list the games, you specify how many & don't supply a game name, game password, etc. The ones left blank, I can not help you with. | March 9, 2005, 12:25 AM |
Mythics | Very excellent, thank you very much. I was, however, wondering when using Game name, Game Password, and Game Stats would be used if you or anyone else would be able to fill me in on that. If not, no biggy..I understand my problem now :) | March 9, 2005, 4:29 AM |
UserLoser. | [quote author=Mythics link=topic=10861.msg102976#msg102976 date=1110342546] Very excellent, thank you very much. I was, however, wondering when using Game name, Game Password, and Game Stats would be used if you or anyone else would be able to fill me in on that. If not, no biggy..I understand my problem now :) [/quote] When getting the address/game info of the game that you're wanting to join or look at | March 9, 2005, 4:30 AM |
Quarantine | You might also want to look into parsing the Game Statstring (see: BnetDocs) to get even further info on the map (Map Size, Tileset, Speed, etc) | March 9, 2005, 2:27 PM |
KkBlazekK | If this is going to be in the Battle.Net references, can the name please be fixed? (0x90 to 0x09) | March 31, 2005, 7:46 PM |