Problems with long strings?
by Charlie Mauck · in Torque Game Builder · 08/17/2007 (12:55 pm) · 2 replies
Has anyone else had trouble with using strings that are over 1800 characters long?
We have a help text in our game that is causing the game to crash hard when it goes over around 1830 characters long. We get a Wondows exception consistentally on the four different systems we've tried it on. Funny enough, no problems on our Mac. The strange thing is the string variable is being set fine (the $var="blah..." doesn't throw an error), but then the game crashes shortly thereafter. Seems much like a buffer overrun error.
I'd post this in the bugs section, but I wanted to make sure this wasn't a know limitation on Torque strings that I'm just failing to find in the documentation.
Thanks!
We have a help text in our game that is causing the game to crash hard when it goes over around 1830 characters long. We get a Wondows exception consistentally on the four different systems we've tried it on. Funny enough, no problems on our Mac. The strange thing is the string variable is being set fine (the $var="blah..." doesn't throw an error), but then the game crashes shortly thereafter. Seems much like a buffer overrun error.
I'd post this in the bugs section, but I wanted to make sure this wasn't a know limitation on Torque strings that I'm just failing to find in the documentation.
Thanks!
About the author
#2
--clint
08/22/2007 (2:44 pm)
We were using fields/records to store tutorial text prompts. It sometimes seems easier to use fields/records than arrays in Torquescript.--clint
Torque Owner Lawrence Benedicto