Game Development Community

Problems setting up the ability to debug with Torsion..

by Dustin Sims · in Torque Game Builder · 12/29/2006 (7:27 pm) · 6 replies

I hope there is someone that will shed some light on this for me..
I have been searching everywhere and have been to sickgames torsion site and went through
the videos and forums...
I have a TGB game set up and it runs fine from the level editor.
I have set up a torion project and have pointed it to my TGB.exe.
When I press (F5) in torsion to start it, it pops up the Connecting box with address, port, password...
It dissappears and then Nothing..
I can go to Windows Task Manager and I see the TGB.exe process running with 98-99% CPU..
It will not do anything. I have to End the Process.

What could I possibly be doing wrong, I am desperate to get debugging capability(Breakpoints and such) working?
Thanks.

#1
01/01/2007 (4:32 pm)
Ok everyone, if in fact anyone is looking..
Tom Spilman from Sickhead Games got me straightened out on this one..

Tom said
Quote:
The issue is a fairly common one... your trying to run your game directly from the mod directory. This isn't how mod folders work. It is a bit confusing.

You need to point Torsion to the main.cs in the root of the games folder, games/main.cs... not games/FishDemo/main.cs. Then set your arguments to "-game FishDemo".

There it is if anyone else ever has problems getting it going..
Like it says, I had pointed Torsion to the Fishdemo dir instead of the Base Game Dir.
#2
01/06/2007 (7:16 am)
Thanks for the tip. This has been an issue for me since last August. Is therea way to make only a single game folder show and not the entire games sub-directory?
#3
01/06/2007 (8:36 am)
Not that I've found, but I haven't been trying to do that really.
The way it is now, I have access to all my other projects scripts so that I can copy and paste between them easily which is a good thing.
#4
01/06/2007 (12:13 pm)
The hide the other mod folders just go into the project properties and enter their names in the "Ignored Mods" section.
#5
05/31/2007 (10:54 pm)
I'm not sure if this is what you mean or not, but I set the main executable to TGB.exe in the games directory and add [project dir] and common to the mods list and those are the only folders it shows.

Here's a copy of my torsion file using the TGB project: (I save the .torsion files in games\torsion, hence the WorkingDir being ..\)

<TorsionProject>
<Name>TGB</Name>
<WorkingDir>..\</WorkingDir>
<EntryScript>main.cs</EntryScript>
<Mods>
<Folder>TGB</Folder>
<Folder>common</Folder>
</Mods>
<ScannerExts>cs; gui</ScannerExts>
<Configs>
<Config>
<Name>Default</Name>
<Executable>..\TGB.exe</Executable>
<Arguments>-game TGB</Arguments>
<HasExports>false</HasExports>
<Precompile>true</Precompile>
<InjectDebugger>true</InjectDebugger>
<UseSetModPaths>false</UseSetModPaths>
</Config>
</Configs>
<SearchURL/>
<SearchProduct>TGB</SearchProduct>
<SearchVersion>HEAD</SearchVersion>
<ExecModifiedScripts>true</ExecModifiedScripts>
</TorsionProject>
#6
05/31/2007 (11:51 pm)
That is technically another way to do it, but since this post the "Ignored Mods" setting has been changed into *include* "Mods".