Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Killa on September 14, 2003, 05:18 PM

Title: sc/bw games
Post by: Killa on September 14, 2003, 05:18 PM
after sending and receiving the 03 packet on the udp port what do i need to send to get in the game?
Title: Re:sc/bw games
Post by: Spht on September 14, 2003, 05:42 PM
How about looking at what the real game does?
Title: Re:sc/bw games
Post by: Killa on September 14, 2003, 06:52 PM
well im not understanding the Udp packets,like whats

SEND-> 0000   06 00 00 00 1D B2 AF 01                            ........



SEND-> 0000   00 00 00 00 28 C4 10 00 00 00 01 00 00 01 FF 00    ....(...........
SEND-> 0010   01 00 00 00                                        ....



SEND-> 0000   00 00 00 00 40 A8 10 00 01 00 02 00 00 03 FF 00    ....@...........
SEND-> 0010   01 00 00 00                                        ....



do


Edit - Try out the [ pre ] tags.
Title: Re:sc/bw games
Post by: Banana fanna fo fanna on September 14, 2003, 07:48 PM
I got almost to the game room when i quit on it...it's pretty tough.
Title: Re:sc/bw games
Post by: Killa on September 14, 2003, 08:36 PM
care to share any progress you made?
Title: Re:sc/bw games
Post by: iago on September 14, 2003, 10:32 PM
And ruin your fun?
Title: Re:sc/bw games
Post by: Killa on September 15, 2003, 02:59 PM
lol well can somone atleast explain what 06 does?
Title: Re:sc/bw games
Post by: UserLoser on September 15, 2003, 03:33 PM
warcraft iii/frozen throne TCP is much much easier than any other game i've tried...so far i've gotten to being able to host custom games, users can join, and chat, and it sends the list of users currently in the game, and when a user leaves...
Title: Re:sc/bw games
Post by: Spht on September 15, 2003, 04:54 PM
Quote from: UserLoser on September 15, 2003, 03:33 PM
warcraft iii/frozen throne TCP is much much easier than any other game i've tried...so far i've gotten to being able to host custom games, users can join, and chat, and it sends the list of users currently in the game, and when a user leaves...

That's mamazing, but we're on the topic of SC/BW UDP transfer.
Title: Re:sc/bw games
Post by: Killa on September 16, 2003, 05:25 PM
don't suppose anyone can help me with calculating the checksum?
Title: Re:sc/bw games
Post by: UserLoser on September 16, 2003, 05:38 PM
storm.dll and a IDA could help you :P
Title: Re:sc/bw games
Post by: iago on September 16, 2003, 07:14 PM
It would make more sense if it's done in battle.snp, but who's counting?
Title: Re:sc/bw games
Post by: UserLoser on September 17, 2003, 06:41 PM
Quote from: iago on September 16, 2003, 07:14 PM
It would make more sense if it's done in battle.snp, but who's counting?

Oops - i was told storm.dll! :P
Title: Re:sc/bw games
Post by: Banana fanna fo fanna on September 19, 2003, 05:56 AM
I don't think it was in battle.snp but I could be wrong. Battle.snp is the interface to bncs afaik.
Title: Re:sc/bw games
Post by: Camel on September 19, 2003, 03:38 PM
Quote from: St0rm.iD on September 19, 2003, 05:56 AMI don't think it was in battle.snp but I could be wrong. Battle.snp is the interface to bncs afaik.
Battle.snp sends the packet, but I havn't traced it back to see where the data comes from.
.text:1901ADE7                 mov     cl, 1Ch         ; PacketID
.text:1901ADE9                 sub     esi, edx
.text:1901ADEB                 lea     edx, [esp+1A0h+PacketBuf] ; PacketBuf
.text:1901ADEF                 lea     eax, [eax+esi+arg_10+1] ; PacketLength
.text:1901ADF3                 push    eax
.text:1901ADF4                 call    sendPacket