26-07-2006, 02:25 AM
Gilgamesch Wrote:is there an easy way to add this :lol:
i looked at the code and didnt really understand it :/
Simply - no. 8)
If you want to use binary packets, you're going to have to redesign every single packet once to fit the system, then again to optimize them.
Oh also, something I noticed is that you guys pack an integer to show how large the string is - you should rarely be sending strings over 255 characters long, so a byte should suffice. I created two functions - Put_String and Put_StringEX, where Put_String packs a byte and Put_StringEX packs an integer, and I only have to use Put_StringEX for when I am retrieving/writing the main body message of in-game mail. May not be that big of a change, but that is -1 byte for every string you send. 8)