SM_startmission function
by Jean-Francois Paquin · in Torque Game Engine · 09/03/2008 (10:08 am) · 4 replies
Hey guys,
I recently brought the TGE SDK and completed all of the GUI tutorials Michael Perry made. Right now i'm trying to get a single player mission/world editor to load so i can start working on some maps for my game. My problem is; I setted up the Sm_Startmission function but none of my mission are showing up in the mission list. I did take some missions from the starter.fps kit since i couldnt load anything to save it in my current folder, I guess this could be the problem. But if that its, i have no idea how to solve this problem.
Any help would be greatly appreciated!
A fellow GG community member,
J-F
I recently brought the TGE SDK and completed all of the GUI tutorials Michael Perry made. Right now i'm trying to get a single player mission/world editor to load so i can start working on some maps for my game. My problem is; I setted up the Sm_Startmission function but none of my mission are showing up in the mission list. I did take some missions from the starter.fps kit since i couldnt load anything to save it in my current folder, I guess this could be the problem. But if that its, i have no idea how to solve this problem.
Any help would be greatly appreciated!
A fellow GG community member,
J-F
#2
09/03/2008 (11:59 am)
@Jean-Francois - Now, are you trying to load from a GUI, from the Mission Editor, or from script?
#3
I'm a bit lost really, i dont have a lot of experience when it comes to torque script so i've been trying to make it work with some files i found in the starter.fps kit(startmissiongui) which i just took and copied it into my folder.
09/04/2008 (5:43 am)
I'm trying to load from the Main menu/single player GUI, i took the startmissiongui.gui from the starter.fps kit and imported it into my own gui. I just dont get any mission to load in the SM_missionlist. I dont know if im missing some .cs files or something.I'm a bit lost really, i dont have a lot of experience when it comes to torque script so i've been trying to make it work with some files i found in the starter.fps kit(startmissiongui) which i just took and copied it into my folder.
#4
You need to separate 2 functionalities: showing what missions to load (GUI functionality), and launching a selected mission (game functionality).
SM_startmission(...) is a game functionality method. You'll want to look for the other functions in Start Mission GUI file in starter.fps
09/04/2008 (8:50 am)
Well, the SM_startmission function has nothing to do with populating the GUI list with mission files. Several functions actually make that happen.You need to separate 2 functionalities: showing what missions to load (GUI functionality), and launching a selected mission (game functionality).
SM_startmission(...) is a game functionality method. You'll want to look for the other functions in Start Mission GUI file in starter.fps
Torque 3D Owner Neill Silva