Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Fr3DBr on September 02, 2006, 06:10 PM

Title: D2GS S->C Packets (I Need Information)
Post by: Fr3DBr on September 02, 2006, 06:10 PM
Im writting a packet stream reader for all the D2GS Incomming Data "S->C", so i need to know exactly when a packet is compressed or not,
there should be a easy way, or at least a not too hard way for detecting that considering the client does that lol...

Could someone enlight me ? Thanks.
Title: Re: D2GS S->C Packets (I Need Information)
Post by: l2k-Shadow on September 02, 2006, 06:13 PM
Packets are always compressed.
Title: Re: D2GS S->C Packets (I Need Information)
Post by: Fr3DBr on September 02, 2006, 06:16 PM
Oh so lets see... any compressed packet has its lenght on its first byte ?
Title: Re: D2GS S->C Packets (I Need Information)
Post by: l2k-Shadow on September 02, 2006, 06:50 PM
Yep.
Title: Re: D2GS S->C Packets (I Need Information)
Post by: Fr3DBr on September 02, 2006, 06:51 PM
so the maximum lenght of a compressed packet is 255 ?
Title: Re: D2GS S->C Packets (I Need Information)
Post by: l2k-Shadow on September 02, 2006, 09:01 PM
No, in case that happens the length is 2 bytes rather than 1.