TSShapeConstructor Sequence limit ?
by Billy L · in Torque Game Engine · 02/20/2004 (7:05 am) · 5 replies
Hi all
Need some help !!
I reached the limit on the sequences , when i reach over 35
sequences i get the char bufferlimit from TSShapeConstructor.
There is also a NumSequenceBits = 7 in TSShapeConstructor.h ?
This only happens when a client joins a server.
Im not a skilled coder so i need some hints how i can change this without messing things up .
-Billy
Need some help !!
I reached the limit on the sequences , when i reach over 35
sequences i get the char bufferlimit from TSShapeConstructor.
There is also a NumSequenceBits = 7 in TSShapeConstructor.h ?
This only happens when a client joins a server.
Im not a skilled coder so i need some hints how i can change this without messing things up .
-Billy
#2
It is generated by the fact that the server sends, to the client, the path of the animations all in one string and since each path is something like :
in the script you have sequence0 = "./animation1.dsq root" that is expanded to, in example, C:\torque\example\data\shape\player\animation1.dsq ... etc and this for all your animations, all this strings are packed into one string only and if this string is more than 1500 bytes (characters) you get the error.
I have solved this problem adding a new variable in the script like baseSequencePath = "./", than I send the base path and only sequence0 = "animation1.dsq root" and rebuild the full string client side.
Or you can just increase that value, instead of 1500 you can use 2000, 2500 etc, now I don't remember the name of this constant, but just do a full search for 1500 if I remember well there are only 2 or 3 lines where there is the number 1500 :) one line is that constant :)
Davide
02/21/2004 (12:30 am)
Hi, if I have understood well, this is the same problem I had.It is generated by the fact that the server sends, to the client, the path of the animations all in one string and since each path is something like :
in the script you have sequence0 = "./animation1.dsq root" that is expanded to, in example, C:\torque\example\data\shape\player\animation1.dsq ... etc and this for all your animations, all this strings are packed into one string only and if this string is more than 1500 bytes (characters) you get the error.
I have solved this problem adding a new variable in the script like baseSequencePath = "./", than I send the base path and only sequence0 = "animation1.dsq root" and rebuild the full string client side.
Or you can just increase that value, instead of 1500 you can use 2000, 2500 etc, now I don't remember the name of this constant, but just do a full search for 1500 if I remember well there are only 2 or 3 lines where there is the number 1500 :) one line is that constant :)
Davide
#3
Atleast something to play with :)
I try the buffersize values first to see if they work.
02/21/2004 (5:39 am)
Thanks guysAtleast something to play with :)
I try the buffersize values first to see if they work.
#4
11/05/2004 (12:33 pm)
Hi!! y can't find the constant to modify the limit of the sequense , i do a full search of '1500' and i found a lot of this, but i can't figure out what is the really i need to modify anyone can help me?
#5
check gameconnectionevents.cc & shapebase.cc & event.h i think i changed it these 3 to get this to work.
11/05/2004 (1:03 pm)
I dont rember this exactly it was a long time ago.check gameconnectionevents.cc & shapebase.cc & event.h i think i changed it these 3 to get this to work.
Associate Ben Garney