String data reset bug
by Will O-Reagan · in Torque X 2D · 06/24/2007 (12:19 am) · 2 replies
Basically, If I add an object type to one of my things all my string data resets to "" in txb for that object
About the author
I have a degree in dramatic art, and literature, from UC Santa Barbara. I've worked for a few studios, also at Animax Ent in 2008, and some smaller studios. Currently studying Computer Science at CSU Channel Islands.
#2
06/25/2007 (8:36 pm)
Hmmm, haven't heard about this one before. I'll check it out tomorrow and let you know if there's a simple fix. As a temporary workaround, you could use enums instead of strings, assuming there's a small set of strings that are used.
Torque Owner Michael Bermann
When creating new components for TXB I'm adding public string accessors. This works fine in TXB until; I add a new component to the scene object, add a new link point, change the collision polygon, mount it, set the world limits, modify a list in one of the components, basically do anything in TXB. This immediately clears out all string fields not in a list on the scene object.
I noticed that public string accessors are not used anywhere in TXB components except inside lists and I don't want to create lists in of every component. Since all of the other standard variable types work outside of lists it seems reasonable that you should be able to use string. Any help on this issue would be greatly appreciated.