Gui Help
by Sam · in Torque Game Engine · 01/09/2007 (1:05 pm) · 3 replies
I can't get the menu to load my mission it says loading but nothing happens. Can anyone help?
p.s. i have been following the GettingStarted.pdf file.
p.s. i have been following the GettingStarted.pdf file.
#2
When using the GettingStarted.pdf tutorial i get up to GUI editing hich is making a startup for my game but when I link everything up it says loading mission but nothing happens.
01/10/2007 (12:34 am)
I'll try to be more clear,When using the GettingStarted.pdf tutorial i get up to GUI editing hich is making a startup for my game but when I link everything up it says loading mission but nothing happens.
#3
1) Press '~' to open the console. Then type in the function 'loadMyMission()' (or whatever you named the script function you wrote to load the mission). Press 'enter' and see if the mission loads.
2) After calling the function or pressing the button, press '~' to check the console log to see if there was an error.
3) Make sure the Command Field in the GUI button reads exactly as this: loadMyMission();. You have to have the semi-colon there.
4) Close the game and open console.log. Do a search for this word 'syntax'. This will take you to any script syntax errors in your script code.
I just loaded the tutorial.base mod. At the main menu, I created a new GuiButtonCtrl and put the command on it. When I launched, I got the same problem as you. When I checked the error log, I got this:
Make sure the path to your mission is valid, and that the mission file exists.
Let us know what you come up with.
01/10/2007 (5:46 am)
Ok Sam. Based on the tutorial, you've created a button to load the sample mission. Here are my suggestions:1) Press '~' to open the console. Then type in the function 'loadMyMission()' (or whatever you named the script function you wrote to load the mission). Press 'enter' and see if the mission loads.
2) After calling the function or pressing the button, press '~' to check the console log to see if there was an error.
3) Make sure the Command Field in the GUI button reads exactly as this: loadMyMission();. You have to have the semi-colon there.
4) Close the game and open console.log. Do a search for this word 'syntax'. This will take you to any script syntax errors in your script code.
I just loaded the tutorial.base mod. At the main menu, I created a new GuiButtonCtrl and put the command on it. When I launched, I got the same problem as you. When I checked the error log, I got this:
*** Stage 2 load Could not find mission tutorial.base/data/missions/gameonemission.mis
Make sure the path to your mission is valid, and that the mission file exists.
Let us know what you come up with.
Employee Michael Perry
ZombieShortbus
Also, it would help if you posted your code. . .
Kind of hard to help with such a vague post =)