Game Development Community

Following the pdf that comes with torque

by Allan Seguin · in General Discussion · 04/08/2008 (11:08 pm) · 4 replies

Following the pdf that comes with torque I created the back ground and have a cool enough Main menu gui I create the GuiButtonCtrl and name it start add the loadMyMission(); command at the Command box under the parent menu set and it seems to be ok when i restart the and click on the start button it goes to the load screen and hangs there... any comments

#1
04/09/2008 (4:44 am)
This reallly needs to be in that GettingStarted.pdf....

In the folder with the torque.exe, there is a new file called "console.log" Open it with a text editor and see what error it's giving. Whenever you have a problem in torque, that log is your best source of information as it tells you most everything torque did.
#2
04/09/2008 (9:04 am)
Ok i kinda sorta figard it out You needs have the saved game gameonemission.mis or change the code in you "gameone" folder the main. cs in that folder has a line under the heading LOAD MY MISSION

createServer("SinglePlayer", expandFilename("./data/missions/gameonemission.mis"));

did not make a gameonemission.mis .........

so change the line to
createServer("SinglePlayer", expandFilename("./data/missions/flat.mis"));

and it will work ... always remeber to follow the Whole tutorial then it will work ... but if your like me lol you wil need to learn how to read code quickly to fix problems that arise......
#3
04/09/2008 (9:08 am)
Ok so now i need to know the command to link a guibuttonctrl to a new gui.... what i am doing is i have a logo page in which i then have the guibuttonctrl that i want hit and take me to the mainmenugui.gui.... how do i do this?
#4
04/09/2008 (9:50 am)
Something like this should serve:
Canvas.setContent( MainMenuGui );

The TGE demo mod starter.fps file client/init.cs has a method called loadMainMenu() that does a bit more than this. It would be a good idea to look over the demo MOD after running through the tutorial.

It makes a good platform to make small experimental changes against.
Also, look for CodeWeaver or Torsion that are TorqueScript Integrated Development Environments (IDE's). They make doing text searchs through script files easy, along with many other common tasks.