• Welcome to Valhalla Legends Archive.
 

0x09 Please

Started by Mythics, March 08, 2005, 06:16 PM

Previous topic - Next topic

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  [email protected].
0010   00 3f d8 fc 40 00 80 06 56 3a c0 a8 00 6b 3f f0  [email protected]:...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?

UserLoser.

Quote from: Mythics on March 08, 2005, 06:16 PM
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  [email protected].
0010   00 3f d8 fc 40 00 80 06 56 3a c0 a8 00 6b 3f f0  [email protected]:...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?

To match that up vs BnetDocs:

<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

to


(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


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.

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 :)

UserLoser.

Quote from: Mythics on March 08, 2005, 10:29 PM
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 :)

When getting the address/game info of the game that you're wanting to join or look at

Warrior

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)
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Blaze

If this is going to be in the Battle.Net references, can the name please be fixed? (0x90 to 0x09)
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No