Game Development Community

Torsion is inserting GUI elements into new project...

by Ted Southard · in Torsion · 02/06/2008 (7:50 pm) · 5 replies

Here's a weird one for everyone...

I just started using TGB and Torsion, and I'm running into a strange issue. I've created a Torsion project for a game project, but when I start the exe, I see GUI elements that I had added to another project which has since been deleted. Looking through the scripts in the project tree, I don't see where those GUI objects could be hiding, but they have to be coming from somewhere. Anyone run into similar problems?

Thanks in advance!

#1
02/07/2008 (6:49 am)
Maybe a bit more background when I'm not going out of my mind would help: The above behavior only occurs when I run TGB from Torsion, but when I run it from TGB, it's fine. That is, the same project in TGB shows up as I made it, but when I run it in Torsion (same project and exe's in same locations), the GUI elements I added to a now-deleted project somehow appear.
#2
02/07/2008 (3:36 pm)
Hum... thats a strange one.

I'm guessing it has to be related to how by default TGB executable is not in your game directory. You talking about GUI elements in script or stuff built into the EXE? Do you have the TGB executable in your project folder or in that shared player directory?
#3
02/07/2008 (3:45 pm)
It's in the shared player directory, but the GUI stuff was put into the mainmenu.gui in the project folder (I just modded the gui file). I've checked a million times and it's not in the new one. Ironically, at some point during the day it stopped, but I was also pulling my hair out about another weird issue that had nothing to do with it, so I don't remember what I could have done, but there definitely seems to be differences in launching a game from Torsion, and from the default directory outside of it.

Does it have it's own settings or cs files that might be used like that outside the project folders?
#4
02/07/2008 (6:42 pm)
I believe this thread may describe the same situation as you are having, in which case it would be a torque bug and not a torsion bug. Hope this helps.

http://www.garagegames.com/mg/forums/result.thread.php?qt=69572
#5
02/07/2008 (7:11 pm)
That's a similar issue, though what I get is a "mixing" of the two. When I started the new project, I started using assets from the Asteroids tutorial instead of my own, but when I started up, it had GUI elements from the last project layered with the background and sprites of the new one. The reason why I believe it's a Torsion issue is because it doesn't happen if you launch TGB from a folder, only when you launch it from Torsion.

As it is, I think Pauliver got it covered when he advised me that it could be the dso's in the tgb directories rather than the dso's in the project directories. I flushed those earlier in the day, but I was so flustered at another problem that I didn't notice until later that the behavior had stopped even under Torsion. It's not happening anymore, but if it does, I think I have a better idea of where to look, and I'll post it here if I confirm the problem (and solution).