Valhalla Legends Forums Archive | Battle.net Bot Development | Friends list (0x65) Parsing

AuthorMessageTime
Gangz
[pre]0000: FF 65 B7 00 0A 42 6C 65 5B 73 5D 73 00 00 00 00 ÿe·..Ble[s]s....
0010: 00 00 00 00 43 65 72 62 65 72 75 73 00 01 02 50 ....Cerberus.P
0020: 58 45 53 43 6C 61 6E 20 63 4C 00 44 61 72 6B 4C XESClan cL.DarkL
0030: 6F 72 64 00 00 00 00 00 00 00 00 6C 29 65 76 69 ord........l)evi
0040: 6C 69 73 68 5B 65 53 5D 40 4C 6F 72 64 41 65 72 lish[eS]@LordAer
0050: 6F 6E 00 00 00 00 00 00 00 00 45 64 77 61 72 64 on........Edward
0060: 6F 77 00 00 00 00 00 00 00 00 2E 2E 2E 40 5E 5E ow...........@^^
0070: 40 2E 2E 2E 00 00 00 00 00 00 00 00 53 65 72 69 @...........Seri
0080: 61 6C 7E 4B 69 6C 6C 61 00 00 00 00 00 00 00 00 al~Killa........
0090: 47 61 6E 67 7A 00 00 02 50 58 45 53 00 55 5F 53 Gangz..PXES.U_S
00A0: 75 78 00 00 00 00 00 00 00 00 54 6F 4E 6B 41 00 ux........ToNkA.
00B0: 00 00 00 00 00 00 00 [/pre]
This is what comes back on a packet log, but i dont understand how to parse out the incomming data. Any tips or advice anyone can add to point me in the right direction?

Edit - Added [ pre ] tags so your paste looks prettier.
March 10, 2004, 5:25 AM
FuzZ
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48690 date=1078896337]
Any tips or advice anyone can add to point me in the right direction?
[/quote]

http://bnetdocs.valhallalegends.com
This may or may not help you, I hope it does.
March 10, 2004, 6:43 AM
Gangz
bnet docs did not help much in this case.. I am having problems triing to parse it. The incomming data is a little mixed up. If it was for a single user it would not be hard. But for a list up to 25 I dont understand how to seperate each user
March 10, 2004, 7:15 AM
o.OV
I believe it looks hectic to you because of the illegal username in there ;)

And some character's you paste doesn't show up when you paste it..
that may be another cause.

Add-On:
[code]
2E 2E 2E 40 5E 5E 40 2E 2E 2E
...@^^@...

Example Parse:

FF 65 B7 00 ÿe·.
packet / length data

0A .
I would use this to signify where to start the parsing

42 6C 65 5B 73 5D 73 Ble[s]s
this is the username

00 .
this is the uesername's null terminator

00 .
this is the status byte (he is offline)

00 .
this is the location byte (he is offline)

00 00 00 00 ....
this is the client/product he is using (he is offline)

00 .
this is another null terminator that follows the channel name.. if any
(he is offline)

43 65 72 62 65 72 75 73 Cerberus
username

00 .
username's null terminator

01 .
he is a "mutual" friend

02 .
he is in_chat

50 58 45 53 PXES
he is using Starcraft Broodwar

43 6C 61 6E 20 63 4C Clan cL
he is in Clan cL

00 .
this is the channel_name's null terminator
[/code]
March 10, 2004, 12:08 PM
Adron
0A looks like how many you should parse?
March 10, 2004, 5:46 PM
Gangz
[quote author=Adron link=board=17;threadid=5707;start=0#msg48739 date=1078940789]
0A looks like how many you should parse?
[/quote]

Is that a sure thing? Or a possibly?
March 10, 2004, 6:24 PM
tA-Kane
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48744 date=1078943072]
[quote author=Adron link=board=17;threadid=5707;start=0#msg48739 date=1078940789]0A looks like how many you should parse?[/quote]Is that a sure thing? Or a possibly?
[/quote]What is 0x0A? How many people do you have on your friends list? Is it likely that they're the same?

If so, is it possible that it's a coincidence?

If so, how likely is it a coincidence?

Read the packet one variable at a time while referencing BnetDocs, instead of trying to figure it all out at once. It will make a whole lot more sense.

Take it one step at a time and it'll be a lot easier.
March 10, 2004, 7:13 PM
Adron
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48744 date=1078943072]
[quote author=Adron link=board=17;threadid=5707;start=0#msg48739 date=1078940789]
0A looks like how many you should parse?
[/quote]

Is that a sure thing? Or a possibly?
[/quote]

There are no sure things in the real world, they only exist in math.
March 10, 2004, 11:28 PM
Gangz
Thanks for the help all... Imma see if i can get this shit parsed out
March 11, 2004, 1:04 AM
o.OV
[quote author=Adron link=board=17;threadid=5707;start=0#msg48739 date=1078940789]
0A looks like how many you should parse?
[/quote]

That would make sense :)
I would test this myself but..
I don't have war3 or diablo client/bot..

So Gangz. You have 10 usernames in your f list?
March 11, 2004, 2:29 AM
LoRd
[quote author=o.OV link=board=17;threadid=5707;start=0#msg48853 date=1078972167]
[quote author=Adron link=board=17;threadid=5707;start=0#msg48739 date=1078940789]
0A looks like how many you should parse?
[/quote]

That would make sense :)
I would test this myself but..
I don't have war3 or diablo client/bot..

So Gangz. You have 10 usernames in your f list?
[/quote]

You don't actually need to be logged on to Warcraft III to use 0x65 as well as various other packets meant only for Warcraft III use.
March 11, 2004, 2:38 AM
o.OV
[quote]
You don't actually need to be logged on to Warcraft III to use 0x65 as well as various other packets meant only for Warcraft III use.
[/quote]

Eh. That I didn't know.
Thanks for sharing it.
March 11, 2004, 3:28 AM
Gangz
0x65 is not war3 onlyu is it? im recievinng it properly on Starcraft.
March 11, 2004, 4:19 AM
LoRd
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48881 date=1078978792]
0x65 is not war3 onlyu is it? im recievinng it properly on Starcraft.
[/quote]
It's meant to be, the only client you'll see it being used in is Warcraft III
March 11, 2004, 4:30 AM
Gangz
[quote author=LoRd[nK] link=board=17;threadid=5707;start=0#msg48883 date=1078979420]
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48881 date=1078978792]
0x65 is not war3 onlyu is it? im recievinng it properly on Starcraft.
[/quote]
It's meant to be, the only client you'll see it being used in is Warcraft III
[/quote]

hrmm do you know the packet ment for starcraft?
March 11, 2004, 4:37 AM
Skywing
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48884 date=1078979867]
[quote author=LoRd[nK] link=board=17;threadid=5707;start=0#msg48883 date=1078979420]
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48881 date=1078978792]
0x65 is not war3 onlyu is it? im recievinng it properly on Starcraft.
[/quote]
It's meant to be, the only client you'll see it being used in is Warcraft III
[/quote]

hrmm do you know the packet ment for starcraft?
[/quote]
There is none. Starcraft doesn't (and probably will never) support this functionality natively in the UI, so there isn't fully-working support for the "programmatic" friends management that Warcraft III has.
March 11, 2004, 4:40 AM
LoRd
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48884 date=1078979867]
[quote author=LoRd[nK] link=board=17;threadid=5707;start=0#msg48883 date=1078979420]
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48881 date=1078978792]
0x65 is not war3 onlyu is it? im recievinng it properly on Starcraft.
[/quote]
It's meant to be, the only client you'll see it being used in is Warcraft III
[/quote]

hrmm do you know the packet ment for starcraft?
[/quote]

As I said, you can use it on all clients.
March 11, 2004, 4:41 AM
Skywing
[quote author=LoRd[nK] link=board=17;threadid=5707;start=15#msg48886 date=1078980066]
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48884 date=1078979867]
[quote author=LoRd[nK] link=board=17;threadid=5707;start=0#msg48883 date=1078979420]
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48881 date=1078978792]
0x65 is not war3 onlyu is it? im recievinng it properly on Starcraft.
[/quote]
It's meant to be, the only client you'll see it being used in is Warcraft III
[/quote]

hrmm do you know the packet ment for starcraft?
[/quote]

As I said, you can use it on all clients.
[/quote]
Note, however, that you won't properly receive notifications of users changing state if you aren't using Warcraft III/The Frozen Throne.
March 11, 2004, 4:42 AM
Gangz
K THANKS FOR THE HELP! :D
March 11, 2004, 6:34 AM
tA-Kane
[quote author=Gangz link=board=17;threadid=5707;start=0#msg48884 date=1078979867]hrmm do you know the packet ment for starcraft?[/quote]Are you asking if there's a friends packet specifically for StarCraft? Look up SID_CHATCOMMAND and SID_CHATEVENT, event ID EID_INFO. You use CHATCOMMAND to send "/f l", and receive CHATEVENT (INFO event) to parse the friends list using StarCraft's "native" packets.
March 11, 2004, 11:15 PM

Search