Game Development Community

Running game with console open

by Backman · in Torque Game Builder · 02/11/2007 (2:16 am) · 2 replies

Is there a way to have the console open while running the game and registering input?

Just now it's a bit annoying that as soon as you open the console window all input goes into there so you can't play the game.

Maybe a small thing to many, but something I'd really like to be able to do.

#1
02/11/2007 (1:53 pm)
@PacMania ... if your attempting to 'debug' "on the fly" while playing your game ... you could attach to the Telnet Debugger Console (with Torsion, preferably, or with 'telnet') and just play the game in windowed mode ... if you play with your window positioning ... you can get the console output to display so you can see it while playing the game ...

Hope this was helpful ... oh and, to get the telnetdebugger to start listening, use the following code:

dbgSetParameters(6060, "password");

You can then launch Torsion and "Connect" through the debug window, or ...

(In Windows), goto Start->Run, type "cmd", then type "telnet localhost 6060", when the screen goes "blank" type in your password ("password" in this case) ... long as the telnet console does not "disconnect" (if it does, the password was incorrect -- type again ... and no, it does not echo it back to you)

Once the telnet console is connected and you've authenticated ... you can then jump into tgb and start doing things that echo out to the console ...

Viola ...

Oh and ... the TelnetDebugger is not the "same" as the Console, you can interact with it by typing commands ... but you have to be familiar with the TelnetDebugger commands, not just the TGB console (where you can type any valid TorqueScript and it simply "eval"s it for you ...)
#2
02/11/2007 (11:35 pm)
If you're running on a Mac or Linux (or if you have Cygwin for Windows) you can also just run "tail -f console.log" in a terminal session. You don't get the extra features of the telnetDebugger, but it's handy when you just want to read the console log in realtime.