BitStream breaking byte!

Miscellaneous Forums/General Discussion/BitStream breaking byte!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Howdy,

im using a bitstream for my MMORPG. So, then i found out how do i break packets?
My choice is to use an INT(2147483647), in HEX: FFFFFF7F.
This value will never be reached in my game in any way.
Im still searching for complications. For example, if one where to type ÿÿÿ?, it would break. But i can filter on this to not allow such a combination to send. It is not the end-user end im concerned about, but rather my own bitstream.
Example: I send X,Y,Speed,Angle. Now, if for SOME RARE reason, this would be 255,255,255,127, it would break up. Altough.. thats not true, because i would send it like this: Type,Size,Value, and the size is only specified if it where a string or file. So, Type1=byte=1 in size. Actualy, my packet would look like 1.255.1.255.1.255.1.127 instead.
So, if i where to have a Type2 = short + Type5= float, im going to get troubles... i guess: 2.5525.5.255127
But that is the ASCII presentation, so it would be different in bytes. Ugh... im lost. *graps hexeditor yet again*

Meenwhile, Any comments?