• Welcome to Valhalla Legends Archive.
 

Warcraft III Request Profile Packet Log

Started by Archangel, April 21, 2005, 04:13 PM

Previous topic - Next topic

Archangel

Does someone got the Warcraft III Request Profile Packet Log?
I don't have warcraft iii right now, so if you could help me that would be wonderfull :]

[Edit: Or a bot that can request this packet so i can download and packet log myself]
I'm not an Addict.

MyndFyre

Here is the link to my topic describing its format.  Note that the mechanism for requesting it is also documented in BnetDocs.

Also, it's been a long time since this code was updated, but I believe that ArmaBot Alpha 4 displayed profiles.  I know that I implemented it somewhere, but the most recent version of my bot did not support it yet (it was a complete rewrite).
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

MyndFyre

#2
Please note: I replied because I added (IMO) signficantly more useful information in the new post, and thought it would be worthwhile to bring it back up.  :)  So yes, I am aware that I could have hit "Modify."

Given the only example I have is on my bot's screenshots page, I'll recreate a sample packet sequence for you using this data.

First, C->S SID_PROFILE (0x35)

00000000h: FF 35 18 00 01 00 00 00 46 79 72 65 54 65 6D 70 ; ÿ5......FyreTemp
00000010h: 6C 61 72 2D 41 6F 41 00                         ; lar-AoA.

Then, server reply, S->C SID_PROFILE (0x35)

00000000h: FF 35 49 00 01 00 00 00 00 4A 6F 69 6E 74 20 43 ; ÿ5I......Joint C
00000010h: 68 69 65 66 20 47 65 6E 65 72 61 6C 20 44 61 72 ; hief General Dar
00000020h: 6B 54 65 6D 70 6C 61 72 2D 41 6F 41 00 68 74 74 ; kTemplar-AoA.htt
00000030h: 70 3A 2F 2F 77 77 77 2E 63 6C 61 6E 2D 61 6F 61 ; p://www.clan-aoa
00000040h: 2E 6F 72 67 00 00 41 6F 41                      ; .org..AoA


Note that I am in a clan ('AoA ') so we'll send the clan information request:

C->S SID_GETCLANMEMBERINFO (0x82)

00000000h: FF 82 1C 00 01 00 00 00 00 41 6F 41 46 79 72 65 ; ÿ,.......AoAFyre
00000010h: 54 65 6D 70 6C 61 72 2D 41 6F 41 00             ; Templar-AoA.

Reply: S->C SID_GETCLANMEMBERINFO (0x82)

00000000h: FF 82 27 00 01 00 00 00 00 41 6E 67 65 6C 73 20 ; ÿ,'......Angels
00000010h: 6F 66 20 41 72 6D 61 67 65 64 64 6F 6E 00 03 90 ; of Armageddon..?
00000020h: E7 90 4F 1F 47 C2 01                            ; ç?O.GÂ.


C->S SID_WARCRAFTGENERAL (Subcommand 0x08 CLANPROFILE)

00000000h: FF 44 11 00 08 01 00 00 00 00 41 6F 41 50 58 33 ; ÿD........AoAPX3
00000010h: 57                                              ; W


Now, I don't really have the information about the clan statistics; however, I'm going to make it so that they match my personal statistics as displayed in the screenshot (note that I set tournament scores to 0-0 as I did not have them available when that screenshot was taken):

S->C SID_WARCRAFTGENERAL (Subcommand 0x08 CLANPROFILE)

00000000h: FF 44 43 00 08 01 00 00 00 00 02 4F 4C 4F 53 01 ; ÿDC........OLOS.
00000010h: 00 01 00 01 00 91 00 00 00 00 00 4D 41 45 54 30 ; .....'.....MAET0
00000020h: 00 41 00 09 00 80 70 00 00 00 00 06 11 00 14 00 ; .A...€p.........
00000030h: 01 00 02 00 15 00 27 00 02 00 02 00 18 00 20 00 ; ......'....... .
00000040h: 00 00 00                                        ; ...

IIRC, the race scores come in this order: human, orc, night elf, undead, random, tournament (only in W3XP).

Finally, C->S SID_WARCRAFTGENERAL (0x44, subcommand PROFILE, 0x04)

00000000h: FF 44 1D 00 04 01 00 00 00 46 79 72 65 54 65 6D ; ÿD.......FyreTem
00000010h: 70 6C 61 72 2D 41 6F 41 00 50 58 33 57          ; plar-AoA.PX3W

and its result:

00000000h: FF 44 C0 00 04 01 00 00 00 6F 65 70 6F 02 4F 4C ; ÿDÀ......oepo.OL
00000010h: 4F 53 01 00 01 00 02 00 91 00 00 00 00 00 4D 41 ; OS......'.....MA
00000020h: 45 54 30 00 41 00 09 00 80 70 00 00 00 00 06 11 ; ET0.A...€p......
00000030h: 00 14 00 01 00 02 00 15 00 27 00 02 00 02 00 18 ; .........'......
00000040h: 00 20 00 00 00 00 00 03 32 53 56 32 00 00 02 00 ; . ......2SV2....
00000050h: 01 00 00 00 00 00 00 00 90 E7 90 4F 1F 47 C2 01 ; ........?ç?O.GÂ.
00000060h: 01 77 72 65 63 68 65 64 00 33 53 56 33 01 00 01 ; .wreched.3SV3...
00000070h: 00 02 00 79 00 00 00 00 00 90 E7 90 4F 1F 47 C2 ; ...y.....?ç?O.GÂ
00000080h: 01 02 44 65 6D 65 6E 74 69 61 2D 41 6F 41 00 50 ; ..Dementia-AoA.P
00000090h: 61 79 62 61 63 6B 2D 41 6F 41 00 32 53 56 32 00 ; ayback-AoA.2SV2.
000000a0h: 00 01 00 01 00 00 00 00 00 00 00 90 E7 90 4F 1F ; ...........?ç?O.
000000b0h: 47 C2 01 01 4B 6E 69 67 68 74 51 75 69 6C 6C 00 ; GÂ..KnightQuill.

Note: I artifically made the FILETIME values up, so they're the same.  It corresponds to August 18, 2002, 6:18:25:35.425 pm (or something like that, kiss my butt UL).

Other disclaimer: values contained herein are made up and I hope and have tried to the best of my ability to make them reflect what you would actually get from Battle.net.

Anyway, hope that helps you out.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

UserLoser.

Quote
6:18:25:35.425 pm.

That's some timestamp :p

MyndFyre

Quote from: UserLoser on April 21, 2005, 09:03 PM
Quote
6:18:25:35.425 pm.

That's some timestamp :p

LoL, my bad.  I don't know which -- the first or second set of seconds -- is correct.  I suspect that it's really 6:25:35.425, because I may have just had an extra 18.  I came up with the filetime value by making up some random date and plugging it into a debugger function so :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

UserLoser.

#5
Quote from: Deception on April 22, 2005, 02:57 AM
Why exactly would you need to use this packet when the original SID_READUSERDATA works fine for viewing WarCraft III profiles?

I guess I'm asking what is the advantage

ArchAngel, if you still need the packet log just ask me on AIM.

This way you can view the user's stats.  Wins, losses, games, rank, team partners, etc.

MyndFyre: "supcommand PROFILE, 0x04".  Typo ;D

Archangel

I'm not an Addict.

Archangel

And the Icons, you know where i can get them?
i looked on warcraft iii laddr site, but they are to small.
I'm not an Addict.

MyndFyre

Quote from: Archangel on April 23, 2005, 03:28 PM
And the Icons, you know where i can get them?
i looked on warcraft iii laddr site, but they are to small.
I believe the ones you can get from the MPQ files will be smaller than the ones available on the web.

You also run the risk of the animated ones being in some format like Bink video, which you won't be able to play, as Bink is a licensed product.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.