Game Development Community

Disabling the console

by Bruno · in Torque Game Builder · 10/19/2005 (9:47 am) · 9 replies

That's it :)
Each time i run t2d.exe, he writes the log to the console.txt ., sometimes hundreds of mb in a log, slowing down the application, how can i disable writting to the log ?

thanks,
Bruno

#1
10/19/2005 (10:07 am)
Look for 'setLogMode()' in the main.cs in the root Torque directory. Setting this to zero will stop it from logging at all. The stock files also take a -log command line parameter so if you turn the default off (change it from 6 to 0) then you could still turn it back on easily for debugging by doing -log 6 at the command line.
#2
10/19/2005 (10:39 am)
Thanks Luke :)
#3
10/19/2005 (10:58 am)
The question is though, what is it being written? There is no reason 100's of mb's should be written to the log file unless you have some serious issues with your project...

Instead of turning off debugging, you should probably analyze the problems being reported and fix them instead!
#4
10/19/2005 (4:03 pm)
You were absolutely right Stephen, actually it was more serious than i initial tought.
I had a huge output in the console, but i tought it was just warnings, but i just found out that if i restarted the game
about 3 times without exit, those warnings were actually crippling the game eating resources to a point of the game running at 1 fps..,
I got rid of them, and the console is now clean..,

thanks guys
#5
10/19/2005 (4:12 pm)
Recently I had a problem where my TGE game locked up and crashed, I then looked at my console log, was 87MB... lol it definately can get too big for the engine to handle.
#6
10/23/2005 (11:12 pm)
BTW will taking out the key bind for tilde ~ to console. Well that will keep it from pulling down in game right?
#7
10/24/2005 (4:54 am)
What uses up all the memory, having a large console.log file, or actually ~ opening the console and viewing it in the engine?

I wouldn't want to setLogMode(0) even for a production game because that could be useful debugging info for users to send mail (or have the game post back via http)
#8
10/24/2005 (9:44 pm)
I don't care about memory hence the BTW meaning I was going a tad off topic. I want to hide it
for cosmetic reasons.
#9
10/24/2005 (9:52 pm)
Yep I am pretty sure if you unbind the ~ key there is no other way to pop open the console.