Torsion for mac
#2
this is the feature im looking for.
thanks
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
In your main game instance, just do a
on the console and then fire up another instance and do a
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.
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
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
12/02/2009 (5:28 pm)
Hi againi 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
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.
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.
Associate David Montgomery-Blake
David MontgomeryBlake