Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Laff on October 06, 2004, 02:43 AM

Title: in game packet 0x06
Post by: Laff on October 06, 2004, 02:43 AM
anyone got information on this packet?  instead of starting with 0xFF, it starts with 0xF7.  i've got it to parse all names out, but i can't put a reason to the order OR figure out who is on what team.  any info on this packet would be greatly appreciated.
Title: Re: in game packet 0x06
Post by: Laff on October 06, 2004, 08:45 PM
!

i took data from packets and lined them up with how the people show on the screen and came up with this data

i-rae-i-elite    orc    team1 1 8 114 235 41  0  2
design_is_kinky       ud    team1 3 8 96  58  94  0  8
zul       orc    team1 5 8 186 76  3   0  2
da_farmer    ne    team1 7 8 166 14  218 0  4

hawk_25                    ne    team2 2 8 175 51  129 0  4
fuzzy_ferret    ud    team2 4 8 4   165 21  0  8
alsumabinlaggin       ra    team2 6 8 125 27  160 37 32

the numbers preceding are as follows:
the first byte is the team number.  odd numbers are team1, evens are team 2.  furthermore the number shows position in the load screen.

dunno what the numbers after that mean UNTIL the last one which i'm assuming is race and goes like this:
0x01 = human
0x02 = orc
0x04 = ne
0x08 = ud
0x10 = random

any insights to what the other numbers mean?
Title: Re: in game packet 0x06
Post by: UserLoser. on October 06, 2004, 08:50 PM
Show a hexdump of the packet
Title: Re: in game packet 0x06
Post by: Laff on October 07, 2004, 10:04 AM
np, i will when i get time.
Title: Re: in game packet 0x06
Post by: Laff on October 07, 2004, 10:56 AM
here is one packet


45 00 00 62 30 1c 00 00 74 06 c2 0a 3f f1 53 d4    E..b0...t...?.S.
c0 a8 00 02 17 e0 07 79 2c 3f 14 b3 83 53 74 eb    .......y,?...St.
50 18 ff c6 7a f7 00 00 f7 06 3a 00 00 00 00 00    P...z.....:.....
04 49 4b 6e 6f 77 49 54 00 08 73 47 d7 00 04 00    .IKnowIT..sG....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00
Title: Re: in game packet 0x06
Post by: UserLoser. on October 07, 2004, 01:03 PM
Should supply a log with more than one user, it's tough to figure out what all the trailing bytes after the first string (username) could mean with only one example.  Also, more info would help.  Is this received from the host, sent to host, sent to another player in the game?  First packet after connecting to host, ect?
Title: Re: in game packet 0x06
Post by: Sorc.Polgara on October 07, 2004, 02:57 PM
how exactly is your bot doing this? did it join the game? create the game? or is it just sitting in chat and picking up packets and stuff?
Title: Re: in game packet 0x06
Post by: Laff on October 07, 2004, 04:04 PM
-_-

sry i don't explain very well.

this bot does not log on to battle.net in any way, shape, or form.  it's using winpcap to sniff the packets.

@userloser: if i was at home i would put more packets up, but i'm not.  this is a packet sent from battle.net to my machine (which is currently joining a game).

what i already know:

the 0x04 coming in on the start of line 4 is to what team they are on.  if this number is even, they are on team2.  if it's odd, they are team1.  simple % will make this one easy.

the 0x04 at the end of the packet (before all the nulls) is race.  i've clarified these definitions above.
Title: Re: in game packet 0x06
Post by: MyndFyre on October 07, 2004, 07:04 PM
Quote from: Laff on October 07, 2004, 04:04 PM
the 0x04 coming in on the start of line 4 is to what team they are on.  if this number is even, they are on team2.  if it's odd, they are team1.  simple % will make this one easy.

Why modulo 2, though?  Warcraft III supports up to 12 teams IIRC.
Title: Re: in game packet 0x06
Post by: Laff on October 07, 2004, 07:49 PM
ha i guess i didn't think of that, i haven't tried customs yet so meh...
Title: Re: in game packet 0x06
Post by: The-FooL on October 07, 2004, 08:31 PM
It seems to me it might be player number, and the teams might just be an added effect.  Should try with customs/FFAs and see.