Game Development Community

Torsion for mac

by Eyaly · in Torsion · 11/30/2009 (12:28 pm) · 6 replies

Hi,
is there a Torsion version for mac osx or any alternative tool for debugging ide?
please let me know what tool i need to work on mac.

Thanks

#1
11/30/2009 (2:06 pm)
You can use any text editor. I believe a number of Mac users are using Tide, a Java-based IDE.
#2
11/30/2009 (8:56 pm)
i know i can use any text editor but they dont help me with debugging.
this is the feature im looking for.

thanks
#3
11/30/2009 (9:19 pm)
I think there is no integrated IDE for TorqueScript available on the Mac but (other than echo()'ing) you can use Torque's built-in Telnet debugger which is actually rather powerful.

In your main game instance, just do a

dbgSetParameters( 45123, "foobar" ); // Choose port and password.

on the console and then fire up another instance and do a

startDebugger();

Hit "Connect" and enter "localhost", "45123", and "foobar", and you're good to go.

There's some (rather old) docs for it available here.

//Edit:
BTW, other than running a separate game instance, you can also Telnet directly into Torque and use the debugger via the command-line (or cook up your own graphical front-end) if that's more to your taste.
#4
12/01/2009 (5:56 am)
Thanks i will try that.
#5
12/02/2009 (5:28 pm)
Hi again
i get a message that say "Unable to find function startDebugger();..."
here is what im doing:

1.open my project
2.hit F5
3.hit ~ (to open console )
4. type "dbgSetParameters( 45123, "foobar" );" in console
5.hit enter

now i hit F5 again from my main project to get other instance then i do:
1. hit ~ (to open console )
2. type startDebugger();

then i get the message "Unable to find...."
please tell me what im doing wrong.

Thanks
#6
12/02/2009 (5:38 pm)
You're likely not doing anything wrong.

Actually, I haven't paid attention to the fact you seem to be using TGB and that in TGB the relevant code isn't in the game scripts but rather only in the editor scripts. The easiest solution is probably to just copy the tools/debugger directory into your game folder and execute debugger/main.cs from your game scripts. (Hopefully they didn't exclude the Telnet debugger from the player code).

//Edit for clarity:
The editor scripts are in the tgb/ folder.