Valhalla Legends Forums Archive | Battle.net Bot Development | Does Any One Have 0x9

AuthorMessageTime
ChR0NiC
I noticed 0x9 (Get BW Game List) is not on BNET Docs
And UL told me 0x9 is the correct packet for this.

So does anyone have a detailed documentation on 0x9?

In the form that BNET Docs might have it???
March 14, 2004, 12:52 AM
UserLoser.
BnetDocs doesn't have *everything*

You can easily figure out that it's 0x09 and it's format, by using a great utility called a packet logger. It's also used to retrieve the game list for any product, not just Starcraft Brood War.

If you're looking for a packet logger, try using WPE Pro.

To use WPE Pro, follow these easy steps:

1) After opening WPE Pro, click the "Target Program" button.
2) When the "Select Target Program" window comes up, find the program that you want to packet log.
3) When you found the program on the list, select it, and hit "Open", the dialog will now disappear.
4) To start logging, hit the button that's an arrow pointing to the right
5) The packet logger is now enabled, to stop it, press the red square. If any packets were logged, they would be displayed in a new output window.
March 14, 2004, 12:57 AM
ChR0NiC
[quote author=UserLoser. link=board=17;threadid=5765;start=0#msg49273 date=1079225830]
BnetDocs doesn't have *everything*

You can easily figure out that it's 0x09 and it's format, by using a great utility called a packet logger. It's also used to retrieve the game list for any product, not just Starcraft Brood War.

If you're looking for a packet logger, try using WPE Pro.

To use WPE Pro, follow these easy steps:

1) After opening WPE Pro, click the "Target Program" button.
2) When the "Select Target Program" window comes up, find the program that you want to packet log.
3) When you found the program on the list, select it, and hit "Open", the dialog will now disappear.
4) To start logging, hit the button that's an arrow pointing to the right
5) The packet logger is now enabled, to stop it, press the red square. If any packets were logged, they would be displayed in a new output window.
[/quote]

WPE Pro requires Windows 2000 or Windows XP which I do not have.
March 14, 2004, 1:10 AM
Kp
[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49278 date=1079226627]WPE Pro requires Windows 2000 or Windows XP which I do not have.[/quote]

That statement would imply you still use a Windows 9x kernel. If so, you should upgrade immediately as that product line is a horrible mistake that should have never been released to the public.
March 14, 2004, 1:37 AM
St0rm.iD
or a non ms os
March 14, 2004, 1:47 AM
Eli_1
[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49272 date=1079225530]
I noticed 0x9 (Get BW Game List) is not on BNET Docs
And UL told me 0x9 is the correct packet for this.

So does anyone have a detailed documentation on 0x9?

In the form that BNET Docs might have it???
[/quote]

LIES.
http://botdev.valhallalegends.com/documents/gamelist.txt
March 14, 2004, 3:46 AM
UserLoser.
[quote author=Eli_1 link=board=17;threadid=5765;start=0#msg49300 date=1079236002]
[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49272 date=1079225530]
I noticed 0x9 (Get BW Game List) is not on BNET Docs
And UL told me 0x9 is the correct packet for this.

So does anyone have a detailed documentation on 0x9?

In the form that BNET Docs might have it???
[/quote]

LIES.
http://botdev.valhallalegends.com/documents/gamelist.txt
[/quote]

Doesn't display the format for requesting it
March 14, 2004, 3:47 AM
Eli_1
[quote author=UserLoser. link=board=17;threadid=5765;start=0#msg49301 date=1079236067]
[quote author=Eli_1 link=board=17;threadid=5765;start=0#msg49300 date=1079236002]
[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49272 date=1079225530]
I noticed 0x9 (Get BW Game List) is not on BNET Docs
And UL told me 0x9 is the correct packet for this.

So does anyone have a detailed documentation on 0x9?

In the form that BNET Docs might have it???
[/quote]

LIES.
http://botdev.valhallalegends.com/documents/gamelist.txt
[/quote]

Doesn't display the format for requesting it
[/quote]

oops, sorry bout that chr0nic :P
March 14, 2004, 3:50 AM
ChR0NiC
Regardless of not being able to request it, thanks alot for that URL, it will help me alot once I am able to request it :)

Edit: Now My Search Shall Continue :P
March 14, 2004, 4:27 AM
Eli_1
C -> S
0000 ff 09 2c 00 0a 00 00 00 1f 00 00 00 00 00 00 00 ..,.............
0010 01 00 00 00 43 61 74 20 4d 69 63 65 20 43 72 79 ....Cat Mice Cry
0020 73 74 61 6c 20 77 61 72 7a 00 00 00 stal warz...

The last NTString I'm assuming is the last game name you joined.
Not sure on the info before it, nor the last 2 null characters...

[Edit]
Just packet logged again with the name of the game changed
0000 ff 09 1b 00 0a 00 00 00 1f 00 00 00 00 00 00 00 ................
0010 01 00 00 00 73 77 61 74 00 00 00 ....swat...


From the information there I can guess the format is something like this:

(DWORD) &H0A (unknown)
**(DWORD) 31? (unknown)
(DWORD) &H0 (unknown)
(DWORD) &H01 (unknown)
(STRING ) Last game joined
(WORD) &H0 (unknown)

** not exactly sure what to put here, the hex dump was 1F 00 00 00 and when I did the Val of &H0000001F I got 31 both times...
all the values besides the NonNTString seem to be non changing on this comp...
(when I typed this all the first time I read the packet wrong, so I guess you could just do (DWORD) &H1F)

(unknown) not exactly sure on what thier purpose is or what they actually represent, but that's what the packet shows... :-\
hope this somehow helps

Also:

I'v never done anything with packets and also havn't used anything besides CSB, so the information about adding the DWORDS and WORDS might be wrong, but you should get the idea... :P
March 14, 2004, 6:13 AM
ChR0NiC
[quote author=Eli_1 link=board=17;threadid=5765;start=0#msg49315 date=1079244825]
C -> S
0000 ff 09 2c 00 0a 00 00 00 1f 00 00 00 00 00 00 00 ..,.............
0010 01 00 00 00 43 61 74 20 4d 69 63 65 20 43 72 79 ....Cat Mice Cry
0020 73 74 61 6c 20 77 61 72 7a 00 00 00 stal warz...

The last NTString I'm assuming is the last game name you joined.
Not sure on the info before it, nor the last 2 null characters...

[Edit]
Just packet logged again with the name of the game changed
0000 ff 09 1b 00 0a 00 00 00 1f 00 00 00 00 00 00 00 ................
0010 01 00 00 00 73 77 61 74 00 00 00 ....swat...


From the information there I can guess the format is something like this:

(DWORD) &H0A (unknown)
**(DWORD) 31? (unknown)
(DWORD) &H0
(DWORD) &H01
(STRING ) Last game joined
(WORD) &H0

** not exactly sure what to put here, the hex dump was 00 00 00 1F and when I did the Val of &H0000001F I got 31 both times...
all the values besides the NonNTString seem to be non changing on this comp...

hope this somehow helps

Also:

I'v never done anything with packets and also havn't used anything besides CSB, so the information about adding the DWORDS and WORDS might be wrong, but you should get the idea... :P
[/quote]

Thanks Alot For Your Help, I'll Let You Know What I Find.
March 14, 2004, 6:33 AM
Eli_1
before you go, would that work?
can you add DWORDS like &H0A and 31?
March 14, 2004, 6:34 AM
o.OV
[quote author=Eli_1 link=board=17;threadid=5765;start=0#msg49321 date=1079246050]
before you go, would that work?
can you add DWORDS like &H0A and 31?
[/quote]

Of course you can.
It is just numbers.
March 14, 2004, 7:35 AM
dRAgoN
[quote author=o.OV link=board=17;threadid=5765;start=0#msg49323 date=1079249711]
[quote author=Eli_1 link=board=17;threadid=5765;start=0#msg49321 date=1079246050]
before you go, would that work?
can you add DWORDS like &H0A and 31?
[/quote]

Of course you can.
It is just numbers.
[/quote]
Are you sure about that.
March 14, 2004, 7:48 AM
o.OV
[quote author=dRAgoN link=board=17;threadid=5765;start=0#msg49325 date=1079250480]
[quote author=o.OV link=board=17;threadid=5765;start=0#msg49323 date=1079249711]
[quote author=Eli_1 link=board=17;threadid=5765;start=0#msg49321 date=1079246050]
before you go, would that work?
can you add DWORDS like &H0A and 31?
[/quote]

Of course you can.
It is just numbers.
[/quote]
Are you sure about that.
[/quote]

heh. yes.
unfortunately I read it too literally.
sorry, I didn't see the packetlog part of the post.
March 14, 2004, 8:20 AM
LoRd
Use the search feature of this forum.
March 14, 2004, 8:20 AM
Myndfyr
[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49320 date=1079245992]
Thanks Alot For Your Help, I'll Let You Know What I Find.
[/quote]

ChR0NiC, since when do you capitalize every word in a sentence? It's extremely annoying, and I don't see what exactly you were trying to say if you were making fun of him...
March 14, 2004, 9:11 AM
Arta
I have made this packet available on BnetDocs.
March 14, 2004, 2:56 PM
Eli_1
[quote author=Arta[vL] link=board=17;threadid=5765;start=15#msg49341 date=1079276182]
I have made this packet available on BnetDocs.
[/quote]

Packet ID: 0x09
Direction: Client -> Server (Sent)
Format:
(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

hehehe, I was way off :P

[quote]
Thanks Alot For Your Help, I'll Let You Know What I Find.



ChR0NiC, since when do you capitalize every word in a sentence? It's extremely annoying, and I don't see what exactly you were trying to say if you were making fun of him...
[/quote]
He was making fun of me? :'(


...anyway
Arta, how'd you figure all that info out, like that the first 4 bytes are 2 WORDS and not 1 DWORD? :o
March 14, 2004, 5:01 PM
ChR0NiC
[quote author=Arta[vL] link=board=17;threadid=5765;start=15#msg49341 date=1079276182]
I have made this packet available on BnetDocs.
[/quote]

Arta to the rescue again, thanks alot man.



[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49320 date=1079245992]
Thanks Alot For Your Help, I'll Let You Know What I Find.
[/quote]

[quote author=Myndfyre link=board=17;threadid=5765;start=15#msg49332 date=1079255489]
ChR0NiC, since when do you capitalize every word in a sentence? It's extremely annoying, and I don't see what exactly you were trying to say if you were making fun of him...
[/quote]

I was not making fun of him, it's just kind of a habit I need to break out of. Sorry if anyone took it as a diss.... :'(
March 14, 2004, 5:43 PM
UserLoser.
[quote author=ChR0NiC link=board=17;threadid=5765;start=15#msg49356 date=1079286223]
[quote author=Arta[vL] link=board=17;threadid=5765;start=15#msg49341 date=1079276182]
I have made this packet available on BnetDocs.
[/quote]

Arta to the rescue again, thanks alot man.



[quote author=ChR0NiC link=board=17;threadid=5765;start=0#msg49320 date=1079245992]
Thanks Alot For Your Help, I'll Let You Know What I Find.
[/quote]

[quote author=Myndfyre link=board=17;threadid=5765;start=15#msg49332 date=1079255489]
ChR0NiC, since when do you capitalize every word in a sentence? It's extremely annoying, and I don't see what exactly you were trying to say if you were making fun of him...
[/quote]

I was not making fun of him, it's just kind of a habit I need to break out of. Sorry if anyone took it as a diss....:(

Edit: Are these strings Null Terminated for the game name and game pass and game stats ??
[/quote]

Strings are always Null terminated. There's pretty much no such thing as a Non-null terminated string, as someone also stated before
March 14, 2004, 6:15 PM
ChR0NiC
[quote author=UserLoser. link=board=17;threadid=5765;start=15#msg49362 date=1079288118]
Strings are always Null terminated. There's pretty much no such thing as a Non-null terminated string, as someone also stated before
[/quote]

Yes I figured this out, which is why I deleted that part of the post, but you caught me :P
March 14, 2004, 6:38 PM
Eli_1
[quote]
FF = Header
17 00 = Packet Size
00 00 = First WORD
00 00 = Second WORD
30 00 00 00 = First DWORD
00 00 00 00 = Second DWORD
19 00 00 00 = Third DWORD
00 = Game Name
00 = Game Password
00 = Game Stats
[/quote]

Have you tryed using an actual game name besides null?
try using some random name like...

[code]
.InsertNTString "Some Game :D"
.InsertWORD &H0
[/code]

[quote]
Please correct me if I am wrong, BY OTHER MEANS than flaming.
[/quote]

The past has clearly stated that asking people not to flame you will get you flamed... :-*

[Edit 1] Fixed my tags
[Edit 2] Fixed the !@#$%^& tags... again
[Edit 3] haha, I caught you before you deleted your post :P
March 14, 2004, 7:15 PM
ChR0NiC
HEY I DELETED THAT POST !!!!!! DAMN YOU ELI !!!

But, I haven't tried inserting game names...
March 14, 2004, 7:24 PM
Eli_1
did you delete it because you fixed the problem, or because you just decided you didn't want it here yet?

If you did find the problem, post that, cause I wanna know... ;D
March 14, 2004, 7:29 PM
ChR0NiC
[quote author=Eli_1 link=board=17;threadid=5765;start=15#msg49374 date=1079292540]
did you delete it because you fixed the problem, or because you just decided you didn't want it here yet?

If you did find the problem, post that, cause I wanna know... ;D
[/quote]

(#1) I am sick of newbies taking code and popping it in their bots without even knowing how it's done

(#2) I showed alot of code in that post and I kind of don't like people having all the work done for them.

(#3) I fixed the problem and was thinking about redoing the post, but then decided not to.
March 14, 2004, 7:31 PM
Eli_1
[quote]
(#3) I fixed the problem and was thinking about redoing the post, but then decided not to.
[/quote]

What was the fix?
March 14, 2004, 7:34 PM
Myndfyr
[quote author=UserLoser. link=board=17;threadid=5765;start=15#msg49362 date=1079288118]
Strings are always Null terminated. There's pretty much no such thing as a Non-null terminated string, as someone also stated before
[/quote]

According to Open Bnetdocs, for either the Ladder or the Game List data, there are some 0x0d-terminated strings. I can't remember which, and I'm too lazy to look it up right now.
March 14, 2004, 7:35 PM
ChR0NiC
[quote]
(#3) I fixed the problem and was thinking about redoing the post, but then decided not to.
[/quote]

[quote author=Eli_1 link=board=17;threadid=5765;start=15#msg49376 date=1079292871]
What was the fix?
[/quote]

Well I realized that 30 00 00 00 meant &H1E not &H3
That's all =P
March 14, 2004, 7:35 PM
Kp
[quote author=Myndfyre link=board=17;threadid=5765;start=15#msg49377 date=1079292935]According to Open Bnetdocs, for either the Ladder or the Game List data, there are some 0x0d-terminated strings. I can't remember which, and I'm too lazy to look it up right now.[/quote]

Internally, these are copied as a single null-terminated string. When they are processed, the CR marks out the subsegments. It's pretty common to have some indicator character to partition up strings into subsegments for parsing, but no one calls it a "comma-terminated string" or "CR terminated string", etc.
March 14, 2004, 7:40 PM

Search