Console and Black window in T2D MAC
by Christopher Asche · in Technical Issues · 01/01/2012 (3:02 am) · 7 replies
Alright I've been looking through the forums, going over websites, other threads, playing around with tons of random script files in Torque, and have squat to show for it, been at it for several HOURS now. (Just to get that out of the way before someone just tells me to "Go search other threads before posting")
Let me also state that not only am I new to Torque, I'm new to using Macs as well. (Though not PCs)
My problems are two...
First, and most importantly, I can't access the darn console when I try to run a game through TGB. I saw several people in other threads saying "edit the common.cs" file and so on and so forth. I tried that. I did nothing. (for reference it was the tgb/common/gameScripts/common.cs) I tried changing the line
to
And amazingly, nothing happens. I tried others too, like "f5" and "ctrl c" with the same amount of success. It's getting to be more than a bit frustrating as I'm not sure what I'm doing wrong, and it's hampering my ability to learn Torque Script, given the tutorials I'm following pretty much immediately dive into the console.
Can anybody pull me out of this dark hole I'm in?
The other problem I'm sure is far more complex. I have that annoying second black window that pops up behind the main game window when I run anything... I saw previous posts on it about emptying the "OpenGLDevice::OpenGLDevice()" call out, in the macCarbOGLvideo.cc file.... par for the course, it did nothing for me.
Main problem is the first though. If I can't get the console open, I can't follow the tutorials! Please help!
Let me also state that not only am I new to Torque, I'm new to using Macs as well. (Though not PCs)
My problems are two...
First, and most importantly, I can't access the darn console when I try to run a game through TGB. I saw several people in other threads saying "edit the common.cs" file and so on and so forth. I tried that. I did nothing. (for reference it was the tgb/common/gameScripts/common.cs) I tried changing the line
GlobalActionMap.bind(keyboard, "ctrl tilde", toggleConsole);
to
GlobalActionMap.bind(keyboard, "slash", toggleConsole);
And amazingly, nothing happens. I tried others too, like "f5" and "ctrl c" with the same amount of success. It's getting to be more than a bit frustrating as I'm not sure what I'm doing wrong, and it's hampering my ability to learn Torque Script, given the tutorials I'm following pretty much immediately dive into the console.
Can anybody pull me out of this dark hole I'm in?
The other problem I'm sure is far more complex. I have that annoying second black window that pops up behind the main game window when I run anything... I saw previous posts on it about emptying the "OpenGLDevice::OpenGLDevice()" call out, in the macCarbOGLvideo.cc file.... par for the course, it did nothing for me.
Main problem is the first though. If I can't get the console open, I can't follow the tutorials! Please help!
About the author
#2
Thanks again!
...and yes anybody have info on the black screen?
01/06/2012 (1:27 am)
Ahhhh thanks a ton Frantisek, got it up and working. Having to add it to every game isn't great, but it's not too much of a downside all things considered. Far better than not having it at all... within about 30 seconds of getting my console enabled and I've discovered a couple of errors that I had no other way of discovering.Thanks again!
...and yes anybody have info on the black screen?
#3
I've been diggin into the blank black screen matter a bit and it seems we're not the only ones, however, it seems it's entirely Mac issue. Funny thing is, that i didn't get the second black screen with the previous 1.7.5 version. It started with the upgrade.
Anyways, in console there is a line that says "set screen mode 320 x 320 x 32, windowed, force it, dont repaint". This looks like our bad guy and it has something to do with OpenGL Init. If only I knew where to access this...
01/06/2012 (11:10 am)
No problem Christopher. I've been diggin into the blank black screen matter a bit and it seems we're not the only ones, however, it seems it's entirely Mac issue. Funny thing is, that i didn't get the second black screen with the previous 1.7.5 version. It started with the upgrade.
Anyways, in console there is a line that says "set screen mode 320 x 320 x 32, windowed, force it, dont repaint". This looks like our bad guy and it has something to do with OpenGL Init. If only I knew where to access this...
#4
01/06/2012 (11:21 am)
I get back the statement about 1.7.5 version. It did it as well, only the second screen was "more hidden" behind the main, large screen.
#5
01/06/2012 (11:28 am)
That is always how Torque on Mac has functioned. I honestly don't remember the specific technicals behind it, the last time it was explained to me was something like 8 years ago. Anyway, it has to do with how OS functions and the way Torque launches. It's normal. Normally it will close when you close your game, but sometimes it can hang around depending on how you exited the game.
#6
01/06/2012 (3:08 pm)
I wouldn't mind, if it didn't affect also compiled apps. With a floating black screen window I can't possibly think of publishing and distributiong a professional game. At least not with the support of windowed mode. While in full-screen it doesn't matter, because no one can really see it right? But still...
#7
Only if may I ask someone more funded in Torque source code...although everything seems to work just fine and gets me rid of the annoying small black screen, the function is named OpenGLDevice::activate()...so I don't know, it somehow sounds quite essential :-).
01/07/2012 (1:25 am)
Ok, I've done it! I found this post www.garagegames.com/community/forums/viewthread/124487 and it actually works, only it requires recompilation. But if you don't want to recompile your whole T2D distribution, it also works on project basis for example for your "final" build.Only if may I ask someone more funded in Torque source code...although everything seems to work just fine and gets me rid of the annoying small black screen, the function is named OpenGLDevice::activate()...so I don't know, it somehow sounds quite essential :-).
Frantisek Smrcka
Nitromsoft Entertainment Renaissance
Of course, the key stroke activating the console can be whatever now.
And as for the black window, I'm in the queue with you here. If it was just a "preview" issue I could get over it but when it does the same thing with a built project, that's hard to ignore. Any one a hint?