Game Development Community

How could I load a mission to the mainMenuGui ?

by Gilles Jr Lafrance · in Torque Game Engine · 04/19/2003 (10:42 am) · 10 replies

How could I load a mission to the mainMenuGui when starting the game ? I'd like to have a mission in back of the menu. Thanks for any tips :)

Gilles Jr Lafrance
Lafbros

#1
04/20/2003 (7:43 am)
Look in startMissionGui.gui. There is a function in that file that launches a mission. You will need to move that function to mainMenu.gui and change a button to call it. It will need to be modified slightly.
#2
04/20/2003 (6:30 pm)
Thanks Eric. ok, function SM_StartMission() ? I tryed a couples of things without success. I'm trying to do a menu with a camera path on a mission, similar to the Orbz menu. I've been able to load a mission, but it wasn't loading some .cs that where needed so ... XP crash :( It was doing phase 1 and phase 2 only. I continue my search but if someone can help, I'd really appreciate it. Thanks !
#3
04/21/2003 (11:35 am)
Open startMissionGui.gui in notepad. The function Sm_StartMission is at the bottom. The function actually creates a server which then loads the mission. If you have a server already created you should be able to just call loadmission.

Have you modified any of the script that deals with loading missions?
#4
04/22/2003 (4:08 am)
You need to put a GameTSCtrl in your main GUI.
I have done it in one game. If you want, i can send you and email with the source code as soon as I'm back home (end of the week).
#5
04/22/2003 (10:40 pm)
Thanks again Eric. No, I didn't modify the loading scripts. Where I want that mission is in the mainmenu, so, no server is created already.

What Frank is saying is what I want to do, with GameTSCtrl, like in the playgui. I'd really appreciate your help again Frank :) So sure, I'd really like to see what you had done to do this. Thanks much !
#6
04/22/2003 (10:51 pm)
@Gilles: ok, as soon as I'm back home I will send you a code snipits (I will be back on Sunday).
#7
04/22/2003 (10:58 pm)
If you're going to write it up, why not submit it as a resource?
#8
04/22/2003 (11:06 pm)
Yoky, thanks much Frank !
#10
04/28/2003 (6:21 pm)
Frank, your the man. Thanks again.