Game Development Community

Objects Disappear from TXB when I Rebuild

by Rich Wilson · in Torque X 2D · 10/16/2007 (8:49 pm) · 3 replies

Lately, when I rebuild the game in Visual Studio, several of my template objects and a few other miscellaneous scene objects disappear from the editor altogether. This is a serious setback, as I have to redo all the parameters on these objects from scratch, as well as remember what exactly has been erased.

It looks like this is a problem with saving and reloading the scene. I think they're saving properly, since I can playtest the level, but when I load the level the objects in question are gone.

I've also verified that these objects are in the XML file, but the peculiar thing is they all comprise the last 5 objects in the list. Not sure why they're all clumped at the bottom, but cutting and pasting them elsewhere in the file doesn't seem to do any good.
If this isn't a known issue, or nobody knows anything off the top of their head, I can paste one or more of the objects' XML dump in here.

#1
10/17/2007 (2:05 am)
I've seen stuff like this to do with mounting one template on another...but yeah it sounds like your XML works but doesn't parse in TXB, posting the code would be useful. Also, when you run in debug mode can you see if there are any warnings on the console when the txscene is deserialised?
#2
10/17/2007 (1:22 pm)
I've seen this happen when I gave multiple objects the same scripting name. Even if you haven't given two objects the same scripting name deliberately, it's pretty easy to do when copying and pasting.

I don't really trust TXB as it has bitten me this way a few times so I backup my scene file routinely. Hopefully the next version fixes this problem and the others that have been pointed out in other threads.

I honestly think what we need is an entirely new editor written in C# and released with source code. Then the editor could be customized easily for each game just as the engine can be customized. I hope GarageGames is taking this route for the 3d tools at least, but I sure would like to see TXB phased out and a new, C# tool take its place.
#3
10/28/2007 (7:43 am)
Seems like it was just a weird synch problem, as I closed the editor and Visual Studio and everything loaded fine after that.