Game Development Community

LoadMission

by gamer · in Torque Game Engine · 04/26/2006 (11:22 am) · 2 replies

I am trying to load mission when the game is not in play. I tried loadMission(%missionName, %isFirstMission), if I set isFirstMission to false, then it would go to
schedule( $MissionLoadPause, ServerGroup, loadMissionStage2 ); and then nothing happens. seems like the it didn't schedule the task to run.
if I set isFirstMission to true, then it would generate some error:

Stage 1 load
Stage 2 load
Executing "...xx.mis"
Object 'SpawnSphereMarker' is not a member of the 'GameBaseData' data block class.
.
.
.

If I invoke LoadMission(%missionName) during another mission game play, then it loads fine.
what am I missing?
thanks

#1
04/26/2006 (12:44 pm)
Well yes, you were forcing it to skip the mission loading stage where it loads the datablocks, so a bundh of objects aren't going to be able to load. Where are you trying to call loadMission from? I'd try to look at what the start mission dialouge (the list where you normally load missions from) calls to load a mission.
#2
04/26/2006 (2:33 pm)
Make sure you are loading it from the client. i had this problem