Game Development Community

How to do to deactivate console?

by Isaac Barbosa · in Torque Game Builder · 07/18/2007 (3:53 pm) · 8 replies

Is there a way to deactivate the console in the compiled game?

Console = the place where every variable is print out and you use the tilde key to open.

Thanks

#1
07/19/2007 (6:17 am)
If I'm not mistaken with 1.5 the console is not available with the final release. In case you are using 1.3, you can look into the keybindings for that key and load it only if $runwitheditors is true. To take a step further, you can also look for the console.gui loading and conditionally load it.

Hope this helps.
#2
07/19/2007 (10:24 am)
I will look for that file... thanks Ricardo

Yes, I'm using 1.3
#3
07/19/2007 (10:37 am)
@Ricardo: where is that console.gui?

I'm afraid I will need more specific instructions :(

like, open this file and do this with this line...

Thanks
#4
07/20/2007 (1:14 pm)
Common/gamescripts/common.cs is where many of the default GUIs and scripts are loaded, including console.gui.
#5
07/20/2007 (2:31 pm)
@Kalle, thanks,

but in the compiled version of my game the file in that path is a cs.dso file and there is no way i can't open and modify it :(

In my project there is no a common folder...

I'm missing something?
#6
07/21/2007 (3:15 am)
You'll have to edit the common.cs before you build the project and then build it again. I've revamped the common folder completely (actually I don't have it anymore) but if you need further help, drop a line here and I'll check my 1.3 folder and tell you what to do.
#7
07/21/2007 (7:53 am)
Thanks both of you :)

I was looking the folder inside my game folder but not in the games folders that is the place where the common.cs file is.

Now I can deactivate the console :)

Thanks again
#8
07/21/2007 (8:25 am)
There is another way that works in stock TGB 1.5, namely, simply hit control-tilde (~).
It opens up the console (Even in the level editor) and closes it.

As I understand it, this was to allow the use of the tilde character in the actual console.

exec(~/somedirectory/someotherdirectory/somefile.cs

For example, if you wrote a file path for testing purposes like the example above in previous versions of TGB, typing in the ~ symbol simply closed the console.