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.
Packets are always compressed.
Oh so lets see... any compressed packet has its lenght on its first byte ?
Yep.
so the maximum lenght of a compressed packet is 255 ?
No, in case that happens the length is 2 bytes rather than 1.