Torsion and the new alpha..
by Jason Booth · in Torque Game Builder · 01/22/2006 (4:15 pm) · 27 replies
Has anyone else had problems using torsion with the new alpha release? I can't seem to get it to run with the debugger connected anymore; it just hangs after:
Loading compiled script common/main.cs.
Loading compiled script tools/main.cs.
Loading compiled script T2D/main.cs.
--------- Parsing Arguments ---------
I've tried everything I can think of, and the project looks as if is set up correctly. Has anyone else had this issue, or has it just worked?
Loading compiled script common/main.cs.
Loading compiled script tools/main.cs.
Loading compiled script T2D/main.cs.
--------- Parsing Arguments ---------
I've tried everything I can think of, and the project looks as if is set up correctly. Has anyone else had this issue, or has it just worked?
About the author
#2
01/24/2006 (10:04 am)
I'll take a look at this guys and fix it ASAP.
#3
01/26/2006 (4:46 pm)
Any news on this tom?
#4
01/26/2006 (5:08 pm)
I've been quite busy the last few days, but i'm gonna test the alpha tonight and see what the issue is. Now to figure out where to get the alpha. =)
#5
The first issue i encountered was with the Torsion project file that comes with T2D (thanks for including that Mel/Josh). It only has a debug configuration for the Space Shooter game and it points to T2D_DEBUG.EXE which doesn't exist unless you build it. Still Torsion comes up and reports that it cannot launch the exe... so that isn't your issue how you describe it.
Debugging the T2D release build seems to work as expected. It doesn't have the extra breaklines enabled, so it won't hit lines in the main body of a CS file.
I built T2D_DEBUG.EXE and tried debugging with that and it seems to work as well.
So as far as i can tell the alpha3 release should work with the current Torsion alpha just fine. Is there anything different about your setup from what i tested here?
01/26/2006 (7:01 pm)
@Jason - I just got Alpha3a setup. The first issue i encountered was with the Torsion project file that comes with T2D (thanks for including that Mel/Josh). It only has a debug configuration for the Space Shooter game and it points to T2D_DEBUG.EXE which doesn't exist unless you build it. Still Torsion comes up and reports that it cannot launch the exe... so that isn't your issue how you describe it.
Debugging the T2D release build seems to work as expected. It doesn't have the extra breaklines enabled, so it won't hit lines in the main body of a CS file.
I built T2D_DEBUG.EXE and tried debugging with that and it seems to work as well.
So as far as i can tell the alpha3 release should work with the current Torsion alpha just fine. Is there anything different about your setup from what i tested here?
#6
The only way I found around it was to insert the setDebug stuff manually, launch the game manually, and then have Torsion connect to it.
01/26/2006 (7:32 pm)
I am also having problems Tom with the latest release. The release from before launched into a debug session just fine, and then the update came out and it no longer worked.The only way I found around it was to insert the setDebug stuff manually, launch the game manually, and then have Torsion connect to it.
#7
FYI. I also updated the TelnetDebugger resource.
01/26/2006 (7:48 pm)
@Robert - Curious... i'll look further. =)FYI. I also updated the TelnetDebugger resource.
#8
function parseArgs()
{
// Let the parent grab the arguments it wants first.
Parent::parseArgs();
// Loop through the arguments.
for (%i = 1; %i < $Game::argc; %i++)
{
It just sits there after this point. I loaded up the test.torson file in the sdk, however, and that seems to work; so it appears there's some issues with my configuration that was not a problem before this alpha. But since everything runs fine in non-debug mode, I'm not sure what that problem could be..
01/26/2006 (10:29 pm)
I spent a few minutes trying to figure out what was going on tonight; basically, if I put a breakpoint in main.cs it'll actually break and allow me to step through. When I step through, it jumps into main.cs in the common directory, and dies here on the for loop:function parseArgs()
{
// Let the parent grab the arguments it wants first.
Parent::parseArgs();
// Loop through the arguments.
for (%i = 1; %i < $Game::argc; %i++)
{
It just sits there after this point. I loaded up the test.torson file in the sdk, however, and that seems to work; so it appears there's some issues with my configuration that was not a problem before this alpha. But since everything runs fine in non-debug mode, I'm not sure what that problem could be..
#9
01/26/2006 (10:34 pm)
@Jason - I've looked further myself. Both creating a new Torsion project and using an existing one work just fine. My only thought now is that it may be some glitch with an old Torsion project file. Try seeing if creating a new one works.
#10
When you hit the 'if' statement and single step once the break stays at the same location... it seems like it did nothing. In reality it's just executing the next loop, but it doesn't look like that. This is because the parser doesn't emit a line at the top of the loop for each pass. This issue has confused me in the past, thinking that the thing is locked up, when it's just sitting at a breakpoint.
@Robert - Can you give me any more specifics on your issue? Is it with T2D alpha3? Debug or release? Does it have the extra line breaks enabled in allocNode.cc?
01/27/2006 (6:44 am)
I doubt this is the issue, but i'll point it out anyway. If your stepping thru this section of code at the bottom of main.cs://--------------------------------------------------------------------------
// Display an error message for unused arguments
//--------------------------------------------------------------------------
for ($i = 1; $i < $Game::argc; $i++)
{
// Unused?
if ( !$argUsed[$i] )
// Yes, so show error.
error("Error: Unknown command line argument: " @ $Game::argv[$i]);
}When you hit the 'if' statement and single step once the break stays at the same location... it seems like it did nothing. In reality it's just executing the next loop, but it doesn't look like that. This is because the parser doesn't emit a line at the top of the loop for each pass. This issue has confused me in the past, thinking that the thing is locked up, when it's just sitting at a breakpoint.
@Robert - Can you give me any more specifics on your issue? Is it with T2D alpha3? Debug or release? Does it have the extra line breaks enabled in allocNode.cc?
#11
01/27/2006 (7:55 am)
I tried created a new torsion project as well; no dice. I'll step through some more tonight and see if I can figure out any other info..
#12
01/27/2006 (8:01 am)
Hum... i'll do a diff between the last two Torsion releases and see if i can spot anything suspicious. Another silly question... it wouldn't be some sort of firewall issue would it?
#13
Perhaps I should consider re-porting the project to the current alpha and see if that helps..
01/27/2006 (12:33 pm)
How so? Debugging worked fine before and I haven't changed anything with my network in months. Besides, the test.torsion file in the sdk works fine in debug mode, so it has to be something with how our projects are configured or scripted. Mine is fairly simple, and I haven't changed main.cs in the project at all, if that helps..Perhaps I should consider re-porting the project to the current alpha and see if that helps..
#14
01/27/2006 (12:41 pm)
@Jason - Your absolutely right. Could you email me your Torsion project file to tom at sickheadgames dot com? I'll do a quick comparison and see if i can spot the issue. It must be how the configurations are setup. In fact i wonder if it's a -mod vs. -game issue.
#15
01/27/2006 (2:06 pm)
Sure; I'll do it tonight when I get home. Do you just need the torsion project file, or anything else?
#16
01/27/2006 (2:06 pm)
Just the project file... thanks!
#17
02/20/2006 (10:06 pm)
I have exactly the same problem - it just stops at --parsing arguements---
#18
02/20/2006 (10:22 pm)
@Skitchy - Sorry i didn't update this thread. Just add a few blank lines to the end of main.cs. It was a stupid bug on my part and it will be fixed in the next release.
#19
02/28/2006 (4:34 pm)
Just to be clear, when Tom mentions to add a few blank lines to the end of main.cs, it is the main.cs found in the root games folder, not the main.cs files found in the checkersdemo/fishdemo/etc directories.
#20
incredible people and their contribution.
I'm totally new to Torsion, (installed today) but I like the idea of debugging
my scripts in real time, without have to put a lot of echos() in my code. :)
I'm using T2D beta 1.1, and with Torsion I was able to step through my code
I wonder if:
1) The resource above mentioned is still necessary
2) Torsion supports edit and continue
3) There is a way to change the font and colors of the editor
Sorry I was looking for those but I couldn't find
Kudos to all the people involved.
03/07/2006 (8:36 am)
Hi there. First of all I must to put some words of gratitude here for thisincredible people and their contribution.
I'm totally new to Torsion, (installed today) but I like the idea of debugging
my scripts in real time, without have to put a lot of echos() in my code. :)
I'm using T2D beta 1.1, and with Torsion I was able to step through my code
I wonder if:
1) The resource above mentioned is still necessary
2) Torsion supports edit and continue
3) There is a way to change the font and colors of the editor
Sorry I was looking for those but I couldn't find
Kudos to all the people involved.
Torque Owner Ezra