Game Development Community

Can't open console

by Mr Zurkon · in iTorque 2D · 06/04/2011 (11:56 am) · 12 replies

Issue: I can't open the console.

Is there a file where I can set the key myself? I've searched the forums but was unable to find any of the mentioned files in this engine.

#1
06/04/2011 (12:03 pm)
default.bind.cs and config.cs. Config.cs is generated at run-time based on default.bind.cs. If the keys are different, config.cs overrides default.bind.cs binds. Look for tilde instead of ~
#2
06/04/2011 (12:11 pm)
iTorque2D doesnt have the console.

Alternatives:

  1. With enableWinConsole(true); you can open a separate window console.
  2. You can see the console output via Xcode's console debugger.
  3. You can open console.log
  4. You can access it using Torsion, Tide, Coveweaver or similar debugger.


This topic should be sticky, and/or added to the docs.

Edited with Bank's info.
#3
06/04/2011 (1:07 pm)
Quote:
iTorque2D doesnt have the console.

Alternatives:

You can see the console output via Xcode's console debugger.
You can open console.log
You can access it using Torsion.


This topic should be sticky, and/or added to the docs.

Ah, I assumed he was running on Windows/OSX
#4
06/15/2011 (6:04 am)
When running iTorque 3D on MS Windows you can access console by adding this to the top of main.cs:

enableWinConsole(true);
#5
06/15/2011 (7:12 am)
Jeeez Bank! Thats Excellent Thank you!

I can confirm it works fine on iTorque2D as well.
#6
08/09/2011 (10:52 pm)
If there is no console via ~ in iTorque2D then someone needs to change the doc set which is downloaded with the engine as well as the online version. Both has a tutorial for using the console via ~. I'm using iTorque2D on a Mac and have been trying to do the tutorial. The console docs for iTorque2D on Mac are in iTorque2d->Scripting->Simple->Echo Examples. In there it says to open the console using the ~.

#7
08/10/2011 (6:30 am)
@Two Bit Studios - Yeah, those docs are going to change or be deprecated in 1.5 final.

As for the console, I can restore it for Windows and OS X (using the ~) if everyone wants. 1.5 could ship with it ready out of the box, I just need to hear people asking for it.
#8
08/10/2011 (7:03 am)
Im for restoring it!
#9
08/15/2011 (9:08 pm)
Either way is fine with me. I have gotten used to running the *.log file in an editor for output. Of course that doesn't give me live testing of code etc.

So, I would use a console if it was implemented. I am curious why it was pulled from iTorque2D?
#10
08/15/2011 (11:06 pm)
+1 :)
#11
08/16/2011 (12:36 am)
Just remember to turn off enableWinConsole() when building on the iphone. enableWinConsole can greatly impact performance on the iphone.
#12
08/19/2011 (12:32 pm)
@Johnny - Exactly. I'll make sure none of that runs on iOS, but still provide the console for Windows/OS X.

@Brian - Basically because of what Johnny just said. There were performance impacts from the console, so someone deprecated it entirely. I'll work on getting it hooked back up after I fix some crashes.