Game Development Community

Bug in torsion? (newbie question)

by John Klimek · in Torque Game Builder · 02/08/2006 (11:46 am) · 1 replies

I've only had my hands of T2D for about three days but I've already read most (if not all) of the documentation available but I still seem to have lots of questions... (sorry about that if I'm being annoying!)

Anyways, I'm trying to use Torsion and I think I'm beginning to understand how T2D uses the script files. More specifically, it seems like T2D executes "main.cs" in the MAIN directory (same directory as T2D.EXE) and then that script executes all of the other main.cs files.

So, if I want to test out a game through Torsion, I need to run the main.cs file, right?

Now here's where I think the bug comes in...

If I run the default main.cs that was included in the latest release of T2D, then Torsion will display the following output in the debug window:

Loading compiled script common/main.cs.
Loading compiled script T2D/main.cs.
--------- Parsing Arguments ---------

...but it will NOT show the T2D window or anything like that.

If I add BLANK LINES to the BOTTOM of the main.cs file (after the if ($displayHelp) at the bottom) then it seems to execute everything perfectly and I see the main T2D window.

Is that a bug in Torsion?

Finally... what is the point to running anything script files in Torsion besides the main.cs file? It seems like nothing would really happen... (eg. no window would be displayed, etc)


Sorry for the long post, and sorry for all of my questions.

#1
02/08/2006 (12:09 pm)
Yep that's a Torsion bug and that is the right work around. I've got it fixed and a bunch of new things added in for release in the next few days.