New User TGB Errors
by JBird211 · in Torque Game Builder · 02/14/2011 (6:13 pm) · 1 replies
I am looking to buy TGB and the platform starter but I have had a couple of problems following some of the tutorials. I have had it for 3 days now and most everything works great, but here are some issues I have had:
1) I cant access the console, I have tried the tilde key and every other key with and without shift, ctl, and alt and cannot access. I am on a laptop running on W7.
2) In the GUI builder when I add a GuiBitmapButton and then add a bitmap it looks weird and distorted and doesnt show when I run the game, only a blank button. PNG and jpeg show up fine in the editor but dont display in the game. The buttons only options for settings in the drop down are examples and guidefaultprofile which is different than what the tutorial said to select.
3)When I try to close out of the game, i am getting an error every time now, which is it has stopped working. This started after I started messing with the GUI builder.
Any help here in any area is greatly appreciated.
1) I cant access the console, I have tried the tilde key and every other key with and without shift, ctl, and alt and cannot access. I am on a laptop running on W7.
2) In the GUI builder when I add a GuiBitmapButton and then add a bitmap it looks weird and distorted and doesnt show when I run the game, only a blank button. PNG and jpeg show up fine in the editor but dont display in the game. The buttons only options for settings in the drop down are examples and guidefaultprofile which is different than what the tutorial said to select.
3)When I try to close out of the game, i am getting an error every time now, which is it has stopped working. This started after I started messing with the GUI builder.
Any help here in any area is greatly appreciated.
JBird211
Default Studio Name
You should be able to change it in C:\Program Files (x86)\Torque\Torque Game Builder 1.7.5 Pro\tgb\gameData\T2DProject\common\gameScripts and have it replicate with all new projects since that is the default template.
Replace this code:
GlobalActionMapbind(keyboard, $Game::ConsoleBind, toggleConsole);
GlobalActionMap.bind(keyboard, $Game::ScreenshotBind, doScreenShot);
GlobalActionMap.bindcmd(keyboard, $Game::FullscreenBind, "toggleFullScreen();","");
With the keyboard commmands you want to use like:
GlobalActionMap.bind(keyboard, "ctrl q", toggleConsole);
GlobalActionMap.bind(keyboard, "ctrl p", doScreenShot);
GlobalActionMap.bindcmd(keyboard, "alt k", "cls();", "");
This is only if you cant access the console from within the editor or while running a game.
Thanks for the help Dave