Game Development Community

Is it possible to send string larger than 255?

by MACHADO · in Torque Game Engine · 05/17/2006 (10:27 am) · 2 replies

Hi all!
I want to send some strings wich can be larger than 255.
I tried using ConnectionStringTable class, but this class also uses BitStream::writeString, which then calls HuffmanStringProcessor::writeHuffBuffer which is limited to 255 :(

So I just want to know if it is possible via TNL to send strings larger than 255?

thx :)

toms

About the author

Recent Threads


#1
05/17/2006 (11:03 pm)
Have you tried sending several 256 strings in the same update? I can't remember if TNL chops the bitstream over several packets or not.
#2
05/18/2006 (12:51 am)
Yes I tried but i reversed my code to use string tables as I had misunderstood the use of them (I thought string tables would be able to manage large strings)
So I know I can do it like that, but was wondering if there was something internal to TNL to manage large strings?
(because what I'm going to do is make a method wich takes a std::string, a BitStream, and splits the string into multiples 255 strings and had them all to the bit stream. And I think this could be a TNL feature?)