Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: MichaeL on March 09, 2004, 05:28 PM

Title: Packet for joining a game
Post by: MichaeL on March 09, 2004, 05:28 PM
Where can i get the packet information for "joining a starcraft game"?
 :)
Title: Re:Packet for joining a game
Post by: Stealth on March 09, 2004, 05:43 PM
http://www.ethereal.com is a start.
Title: Re:Packet for joining a game
Post by: hismajesty on March 15, 2004, 04:49 AM
(DWORD) Product
(DWORD) VerByte
(STRING) Game Name
(Send) 0x22 (SID_NOTIFYJOIN)
(Send) 0x10 (SID_LEAVECHAT)

Edit: [see next post]
Title: Re:Packet for joining a game
Post by: Eric on March 15, 2004, 12:35 PM
Quote from: hismajesty on March 15, 2004, 04:49 AM
(NonNTString) Product
*DWORD

Quote from: hismajesty on March 15, 2004, 04:49 AM
(NTSTring) Game Name
*STRING
Title: Re:Packet for joining a game
Post by: hismajesty on March 15, 2004, 01:33 PM
Quote from: LoRd[nK] on March 15, 2004, 12:35 PM
Quote from: hismajesty on March 15, 2004, 04:49 AM
(NonNTString) Product
*DWORD

Sending it as a DWORD will raise an error, correct?
Title: Re:Packet for joining a game
Post by: Eric on March 15, 2004, 03:07 PM
There's no such thing as a NonNTString, it's correct form is a DWORD.
Product ID's are always sent as DWORD's.
Title: Re:Packet for joining a game
Post by: ChR0NiC on March 16, 2004, 03:01 PM
Quote from: hismajesty on March 15, 2004, 04:49 AM
(DWORD) Product
(DWORD) VerByte
(STRING) Game Name
(Send) 0x22 (SID_NOTIFYJOIN)
(Send) 0x10 (SID_LEAVECHAT)

If you follow this, you will join a game. Remember STRING means null terminated. So don't be a fool about this.

Edit: To understand more about how this was figured out and such I suggest using BNCSMon (http://www.valhallalegends.com/arta/files/BNCSMon.zip) and set it to capture the log.

EG: X:\BNCSMon -l capture.txt [Enter]
and it will start logging and will capture as soon as the data starts to flow.
Very great tool I recommend to all bot programmers, newbie or expert. This of course is a packet logger...very good detail and very well made.
Title: Re:Packet for joining a game
Post by: MichaeL on March 18, 2004, 02:25 PM
Alright, thank you all :)
Title: Re:Packet for joining a game
Post by: iago on March 18, 2004, 03:49 PM
I say NTString and NonNTString as well, except for 4 byte backwards ones (which are DWords).