Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: tA-Kane on January 12, 2003, 06:59 AM

Title: profile requests
Post by: tA-Kane on January 12, 2003, 06:59 AM
in the document at http://botdev.valhallalegends.com/documents/cpobnet.html, skywing states that the packet supports retrieving profiles from multiple accounts.

but i am unable to do this; the server always replies with 0 accounts and 0 keys.

I'm thinking that since the games don't support retrieving multiple profiles at a time, the servers have disabled that feature...

either that, or perhaps i'm doing it wrong... if that's the case, then could can show me a packetlog of it being done correctly?

(note that i'm able to retrieve a single account's profile successfully, it's just when i try to retrieve profiles from multiple accounts in a single request that im troubled with)
Title: Re: profile requests
Post by: Spht on January 12, 2003, 10:31 AM
Hmm.

Are you sure you did it right? Maybe you could paste your code.
Title: Re: profile requests
Post by: tA-Kane on January 12, 2003, 01:53 PM
more importantly, here's some packetlogs of some requests i've made, and the replies i had received...

//a 1-user request returns success
Send data (43 bytes).
FF 26 2B 00  01 00 00 00  01 00 00 00  E9 82 8D 75  .&+............u
78 68 6F 6C  79 78 00 50  72 6F 66 69  6C 65 5C 64  xholyx.Profile\d
65 73 63 72  69 70 74 69  6F 6E 00                  escription.

Receive data (32 bytes).
FF 26 20 00  01 00 00 00  01 00 00 00  E9 82 8D 75  .& ............u
BB B6 BB B6  BB B6 21 21  21 21 21 0D  0A 0D 0A 00  ......!!!!!.....

//another 1-user request returns success
Send data (43 bytes).
FF 26 2B 00  01 00 00 00  01 00 00 00  02 CB 42 1B  .&+...........B.
74 65 78 61  73 2D 00 50  72 6F 66 69  6C 65 5C 64  texas-.Profile\d
65 73 63 72  69 70 74 69  6F 6E 00                  escription.

Receive data (183 bytes).
FF 26 B7 00  01 00 00 00  01 00 00 00  02 CB 42 1B  .&............B.
20 20 20 20  20 20 20 20  20 20 20 20  20 20 20 20                  
20 20 20 20  20 20 20 20  20 20 20 20  20 A6 A3 A2               ...
C4 A6 A4 0D  0A 20 20 20  20 20 20 20  20 20 20 20  .....          
20 20 20 20  20 20 20 A2  C5 2F 20 20  20 20 20 20         ../      
20 20 20 20  5C 20 20 20  20 20 20 20  A2 C5 2F 0D      \       ../.
0A 20 20 20  20 20 20 20  20 20 20 20  20 20 20 20  .              
20 20 20 2F  20 20 20 20  20 20 20 20  20 20 20 20     /            
20 3C 5C 20  20 20 20 20  20 2F 20 0D  0A 20 20 20   <\      / ..  
20 20 20 20  20 20 20 20  20 20 20 20  20 3C 5C 20               <\
20 20 20 20  20 20 20 20  20 20 20 20  20 20 20 20                  
20 20 20 3C  5C 20 00                                  <\ .

//first format for a 2-user request fails
//format: User+Null+Key_List+User+Key_List
end data (70 bytes).
FF 26 46 00  02 00 00 00  02 00 00 00  49 FE 1D 3E  .&F.........I..>
78 48 4F 4C  59 78 00 50  72 6F 66 69  6C 65 5C 64  xHOLYx.Profile\d
65 73 63 72  69 70 74 69  6F 6E 00 74  65 78 61 73  escription.texas
2D 00 50 72  6F 66 69 6C  65 5C 64 65  73 63 72 69  -.Profile\descri
70 74 69 6F  6E 00                                  ption.

Receive data (16 bytes).
FF 26 10 00  00 00 00 00  00 00 00 00  49 FE 1D 3E  .&..........I..>

//second format fails
//format: User_List+Key_List
Send data (50 bytes).
FF 26 32 00  02 00 00 00  01 00 00 00  7B 8A 21 23  .&2.........{.!#
78 48 4F 4C  59 78 00 74  65 78 61 73  2D 00 50 72  xHOLYx.texas-.Pr
6F 66 69 6C  65 5C 64 65  73 63 72 69  70 74 69 6F  ofile\descriptio
6E 00                                               n.

Receive data (16 bytes).
FF 26 10 00  00 00 00 00  00 00 00 00  7B 8A 21 23  .&..........{.!#

//third format fails
//format: User_List+Key_List[User1]+Key_List[User2]
Send data (70 bytes).
FF 26 46 00  02 00 00 00  02 00 00 00  5B 39 64 23  .&F.........[9d#
78 68 6F 6C  79 78 00 74  65 78 61 73  2D 00 50 72  xholyx.texas-.Pr
6F 66 69 6C  65 5C 64 65  73 63 72 69  70 74 69 6F  ofile\descriptio
6E 00 50 72  6F 66 69 6C  65 5C 64 65  73 63 72 69  n.Profile\descri
70 74 69 6F  6E 00                                  ption.

Receive data (16 bytes).
FF 26 10 00  00 00 00 00  00 00 00 00  5B 39 64 23  .&..........[9d#
Title: Re: profile requests
Post by: Arta on January 12, 2003, 08:24 PM
I've never tried making this work either, but the second format is what I understand to be the correct one:

(DWORD)             Number of Accounts
(DWORD)             Number of Keys
(DWORD)             Request ID
(STRINGS)       Requested Accounts
(STRINGS)       Requested Keys

I think that your guess at it having been disabled is reasonable. It may just be that this functionality was never implemented on the servers since, as you point out, the games don't need it.