Newb Tutorial Question
by NaTaS · in Torque Game Engine · 09/19/2006 (11:21 pm) · 2 replies
Ok I have been trying to run the tutorial that uses tutorial.base in the example dir and I have got it going fine up till the part where I modify if the GUI.
Basically this is what is happening.
I add the button with the command added to it of loadMyMission();
then I save the GUI and exit.
When I start the demo back up and click on the button I just get WAITING FOR SERVER...
I checked in the console to see if there were any errors and the only ones that show up are the following
Could not locate texture: GameOne/client/ui/buttons/exit_d
Could not locate texture: GameOne/client/ui/buttons/exit_i
Could not locate texture: GameOne/client/ui/buttons/forum_d
Could not locate texture: GameOne/client/ui/buttons/forum_i
Could not locate texture: GameOne/client/ui/buttons/options_d
Could not locate texture: GameOne/client/ui/buttons/options_i
but on the top of the console it stats "No Script compilaiton errors occured"
Any help that you guys might have would be great.
Thanks ahead of time
Basically this is what is happening.
I add the button with the command added to it of loadMyMission();
then I save the GUI and exit.
When I start the demo back up and click on the button I just get WAITING FOR SERVER...
I checked in the console to see if there were any errors and the only ones that show up are the following
Could not locate texture: GameOne/client/ui/buttons/exit_d
Could not locate texture: GameOne/client/ui/buttons/exit_i
Could not locate texture: GameOne/client/ui/buttons/forum_d
Could not locate texture: GameOne/client/ui/buttons/forum_i
Could not locate texture: GameOne/client/ui/buttons/options_d
Could not locate texture: GameOne/client/ui/buttons/options_i
but on the top of the console it stats "No Script compilaiton errors occured"
Any help that you guys might have would be great.
Thanks ahead of time
#2
createServer("SinglePlayer", expandFilename("./data/missions/gameonemission.mis");
But in the tutorial it never said to rename your .mis file. So hence it was causing the program to stall out..
And so when I renamed the .mis file to gameonemission.mis it worked fine. And when I modded the .cs file to call the flat.mis file it also worked fine.
I guess when in doubt just look at the code.. :)
thanks for the help though J \"hplus\" W
09/20/2006 (3:44 pm)
Well after a little looking around in the main.cs file in the GameOne folder I found that the loadMyMission function has a hard coded request for createserver which looks as follows:createServer("SinglePlayer", expandFilename("./data/missions/gameonemission.mis");
But in the tutorial it never said to rename your .mis file. So hence it was causing the program to stall out..
And so when I renamed the .mis file to gameonemission.mis it worked fine. And when I modded the .cs file to call the flat.mis file it also worked fine.
I guess when in doubt just look at the code.. :)
thanks for the help though J \"hplus\" W
Torque Owner J "hplus" W
Chances are, the loadMyMission() function doesn't actually properly create, start and connect to the local server.