Bugs - private variables being loaded vs tgbx entered values
by Will O'Reagan · in Torque X 2D · 04/16/2007 (11:14 am) · 6 replies
The scene loader has randomly started to load up the values in my private variables section on a particular component that i'm working on. Its anoying because i entered "empty" in the private variables section, and intentionally left the TGBX component blank, so I could check the string data in a method such as
if (_variableX != "")
{
do this...
}
and I'm finding my fake value there.
if (_variableX != "")
{
do this...
}
and I'm finding my fake value there.
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
04/16/2007 (12:28 pm)
Well I couldn't figure out what was going on till I looked in the debug folder. For some reason, It wasn't being updated. I have no idea why, but C# just feels like loading the xml now from the dubugger instead of from where my xml is being updated, the data file. Is this what its supposed to do? The variable i was trying to get to was missing from the debug folder, so it was just using the private variable i had set at the bottom of the document. So whats going on here is I just had to update my debug 3 times, and re-enter objects that were starting to dissapear from TGBX. I don't really know what it was trying to do, but the problem seems to be fixed...
#3
When this starts happening (or something like this) to me, I simply restart GSE/VS and at times the computer to resolve it.
edit: something to keep in mind too is that 90% of the bugs you find are user-bugs ;) I learned that the hard way.

04/16/2007 (12:41 pm)
VS(GSE) isn't always running optimally and can sometimes cause things like this to happen. It's good to hear it wasn't a TGBX problem.When this starts happening (or something like this) to me, I simply restart GSE/VS and at times the computer to resolve it.
edit: something to keep in mind too is that 90% of the bugs you find are user-bugs ;) I learned that the hard way.

#4
Isn't xml deserialized by torqueX? I think this could be a torquex bug..
04/18/2007 (12:09 pm)
Ok. I was wrong, the problem isn't fixed because basically the game is still loading from the debugger. Shouldn't the game be loading from the data file and afterwords saving to the debug x86 file, not the other way around? I'd say restarting would fix it, but its a problem that has been persistant over the last few days. I just havn't noticed it while working in C# cause I wasn't having to edit in TGBX. Isn't xml deserialized by torqueX? I think this could be a torquex bug..
#5

04/18/2007 (1:15 pm)
The xml is deserialized by TX, that's how it gets your level data you did in TGBX into the engine. All I can say is set up some tracing and step through each line of code to see what the issue is.
#6
edit: re-install fixed emerging problems
04/18/2007 (10:14 pm)
Ok... heres an update on this strange situation... C# wont let me load templates now, and its basically freezing whenver i try to close down. Its done it 3-4 times now. I guess its time to pack up the old C#. And then of course, unpack the old C#, XNA, TorqueX all over again. what fun...edit: re-install fixed emerging problems
Torque 3D Owner Jonathon Stevens