Valhalla Legends Forums Archive | Battle.net Bot Development | Warcraft III Request Profile Packet Log

AuthorMessageTime
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]
April 21, 2005, 9:13 PM
Myndfyr
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).
April 21, 2005, 9:40 PM
Myndfyr
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)
[code]
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.
[/code]
Then, server reply, S->C SID_PROFILE (0x35)
[code]
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
[/code]

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

C->S SID_GETCLANMEMBERINFO (0x82)
[code]
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.
[/code]
Reply: S->C SID_GETCLANMEMBERINFO (0x82)
[code]
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Â.
[/code]

C->S SID_WARCRAFTGENERAL (Subcommand 0x08 CLANPROFILE)
[code]
00000000h: FF 44 11 00 08 01 00 00 00 00 41 6F 41 50 58 33 ; ÿD........AoAPX3
00000010h: 57                                              ; W
[/code]

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)
[code]
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                                        ; ...
[/code]
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)
[code]
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
[/code]
and its result:
[code]
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.
[/code]
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.
April 22, 2005, 1:59 AM
UserLoser.
[quote]
6:18:25:35.425 pm.
[/quote]

That's some timestamp :p
April 22, 2005, 2:03 AM
Myndfyr
[quote author=UserLoser link=topic=11343.msg109345#msg109345 date=1114135403]
[quote]
6:18:25:35.425 pm.
[/quote]

That's some timestamp :p
[/quote]

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
April 22, 2005, 3:41 AM
UserLoser.
[quote author=Deception link=topic=11343.msg109370#msg109370 date=1114156623]
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.
[/quote]

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

MyndFyre: "supcommand PROFILE, 0x04".  Typo ;D
April 22, 2005, 11:43 AM
Archangel
Ok, thnx thats what i needed ^^.
April 22, 2005, 8:17 PM
Archangel
And the Icons, you know where i can get them?
i looked on warcraft iii laddr site, but they are to small.
April 23, 2005, 8:28 PM
Myndfyr
[quote author=Archangel link=topic=11343.msg109618#msg109618 date=1114288109]
And the Icons, you know where i can get them?
i looked on warcraft iii laddr site, but they are to small.
[/quote]
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.
April 24, 2005, 7:41 AM

Search