Debugging cs scripts using Vis Studio 6
by Andy Hawkins · in Torque Game Engine · 08/05/2005 (10:25 am) · 32 replies
I was looking at the new tute at smlabs of using TBE to debug cs scripts.
How do I use/setup Visual Studio 6 to debug scripts and handle Torque projects. Is it possible?
How do I use/setup Visual Studio 6 to debug scripts and handle Torque projects. Is it possible?
#22
The only difference I see is we've installed Torque SDK into different directories, though that shouldn't matter since everything's relative to the .exe -- correct?
Thanks.
11/07/2006 (10:35 am)
Yes. As mentioned previously, my teammate has the same setup and it seems to work on his machine. I've reinstalled both Torque and Torision several times already, however, and that didn't help. So it appears to be a matter of something different configuration-wise on our machines.The only difference I see is we've installed Torque SDK into different directories, though that shouldn't matter since everything's relative to the .exe -- correct?
Thanks.
#23
Have you got Directx 8 or 9 installed? you'll need one of these.
11/07/2006 (3:14 pm)
Have you actually got Torque to run by itself? Sorry I haven't had a chance to try it on my default machine yet. Maybe copy the same way it was installed on your team mates machine.Have you got Directx 8 or 9 installed? you'll need one of these.
#24
Cheers.
11/08/2006 (2:59 pm)
Yes, Torque runs fine as does all the demos and the samples from the book. Latest Dx9 installed as well. The only difference on the other machine is what directory it's installed into.Cheers.
#25
11/08/2006 (4:22 pm)
Okay, try installing it into the same dir as your team mates. Also, are you configuring Torque properly in Torsion. Copy your mates setting and maybe grab their Torque exe. Sometimes a bad compile exe can be the problem. I'll try my test today on a work machine then tonite on another lappy.
#26
Installed Torsion, created new project, set base folder to C:\Torque\SDK\example
Added new configuration and pointed to Torquedemo.exe
Opened main.cs and changes to starter.fps. Saved
Opened game.fps and put in a break point at exec(".chimney.cs');
Pressed F5 - windows said unblock torquedemo.exe? I said yes - this might be your problem - and loaded Stronghold, it ran to the breakpoint and jumped backed to Torsion - pressed F5 to continue - back into game no problem... worked fine, no lock up.
I don't know what suggest... hmmm
11/09/2006 (7:04 am)
Okay I installed on a machine that's never has the SDK or Torsion installed. Install Torque to C:\TorqueInstalled Torsion, created new project, set base folder to C:\Torque\SDK\example
Added new configuration and pointed to Torquedemo.exe
Opened main.cs and changes to starter.fps. Saved
Opened game.fps and put in a break point at exec(".chimney.cs');
Pressed F5 - windows said unblock torquedemo.exe? I said yes - this might be your problem - and loaded Stronghold, it ran to the breakpoint and jumped backed to Torsion - pressed F5 to continue - back into game no problem... worked fine, no lock up.
I don't know what suggest... hmmm
#27
I can run starter.fps on it's own just fine. It's only when trying to run it within Torision that it chokes.
Thanks.
11/09/2006 (11:32 am)
Can you try installing into C:\Dev\Torque instead of C:\Torque on your test machine? That's the only difference.I can run starter.fps on it's own just fine. It's only when trying to run it within Torision that it chokes.
Thanks.
#29
1. Is it 1.4 or 1.4.2 that has the code included? There is conflicting opinion on these forums.
2. If 1.4.2 is needed, why does my teammate's machine work?
3. When we downloaded the SDK recently (prior to 1.5) it gave us 1.4, not 1.4.2.
Shouldn't we have received the latest version?
This will hopefully be a moot point once we switch to v1.5...
Thanks.
11/10/2006 (11:08 am)
Hmm. My teammate and I installed the exact same version of Torque from this website and the version number is 1400. Torision debugging works on his machine but not mine. Also, at the Telnet patch link above people say the patch is no longer needed starting with version 1.4. In trying to resolve all this, three questions come to mind.1. Is it 1.4 or 1.4.2 that has the code included? There is conflicting opinion on these forums.
2. If 1.4.2 is needed, why does my teammate's machine work?
3. When we downloaded the SDK recently (prior to 1.5) it gave us 1.4, not 1.4.2.
Shouldn't we have received the latest version?
This will hopefully be a moot point once we switch to v1.5...
Thanks.
#30
11/10/2006 (1:41 pm)
Are you unblocking Torque in your firewall? Are you unblocking Torsion? Torsion can't be blocked otherwise it wont function. 1.5 will solve your debugger issues - yes, it's all inclusive. I'll try that 2nd test now.
#31
Pressed F5, block message came up for torqueDemo.exe, I left it at Keep Blocking this time. Torque started, loaded Stronghold mission, and then it flipped back to Torsion at the break point. Pressed F5 to continue - game loaded.
So I don't know what's going on with your machine - but in my semi-professional opinion - NUKE WINDOWS!!!! When's the last time you did a fresh install? Other than that, I'm stuck for any other solutions.
Only thing I can see is that if you're running 1.4 you had to add the telnet support and recompile from a fresh install of Torque EVERY time. However as you have 1.5 (I don't yet) it shouldn't be a problem.
11/10/2006 (2:06 pm)
Okay I installed Torque 1.4.2 to C:\Dev\Torque, Torsion to C:\Program Files\Torsion and opened Torsion, created a new project, set base directory to C:\Dev\Torque\example\, added new configuration and pointed to C:\Dev\Torque\example\torqueDemo.exe. Opened main.cs and changed default game to starter.fps. Opened game.cs and set a breakpoint (F9) at exec("./chimney.cs");Pressed F5, block message came up for torqueDemo.exe, I left it at Keep Blocking this time. Torque started, loaded Stronghold mission, and then it flipped back to Torsion at the break point. Pressed F5 to continue - game loaded.
So I don't know what's going on with your machine - but in my semi-professional opinion - NUKE WINDOWS!!!! When's the last time you did a fresh install? Other than that, I'm stuck for any other solutions.
Only thing I can see is that if you're running 1.4 you had to add the telnet support and recompile from a fresh install of Torque EVERY time. However as you have 1.5 (I don't yet) it shouldn't be a problem.
#32
11/10/2006 (4:11 pm)
1.4.2 launched when 1.5 did. You need to redownload.
Associate Andy Hawkins
DrewFX