Game Development Community

console

by George Balla · in iTorque 2D · 04/07/2011 (9:20 am) · 5 replies

I was just reading the documentation for iTorque 2D 1.4.1. Here is the snippet that is giving me problems.

Example
Start by running a Torque 3D project. Once the game is up, open the console by pressing the ~ key. In the console, type the following:


Example 1

echo("Hello World");

OUTPUT: Hello World

When I press ~ nothing happens.

Thanks

#1
04/07/2011 (9:54 am)
@George - My apologies. Those simple script example docs were supposed to be fixed or removed. The console, which is called by ~, is disabled for iTorque 2D. The output will actually show up in your game's console.log file.
#2
04/08/2011 (8:31 pm)
Alternatively hookup with Torsions telnet debugger or another telnet client to get them straight from there to your system. (assuming that wasn't cut in 1.4.1, not tested yet, but worked fine before)
#3
04/09/2011 (12:21 am)
Thanks Marc,

Just tested telnet and it works. Thanks for the info. Will make debugging a lot easier.
#4
04/24/2011 (4:59 pm)
How do you script on the fly if you only have a mac with no torsion? Thats for iTorque2d 1.4.1 that is.
#5
04/24/2011 (5:52 pm)
telnet as torsion does it too if you talk about executing script code at runtime.

just be aware that apple can and will reject your application if you add additional script code after its approval. you aren't allowed to modify code without an application update, not even script code, just so you can preplan for this already