Switching between missions.
by Santosh Pillai · in Technical Issues · 07/25/2008 (12:15 am) · 8 replies
Hi,
I am switching between different missions in my game which causes a crash from time to time. The reason as I see to this maybe because of the fact that I am not cleaning up the missions which were loaded before in the game properly. Can somebody please tell the steps to cleaning up a mission, disconnecting and then again connecting back into a mission properly.
Thanks.
I am switching between different missions in my game which causes a crash from time to time. The reason as I see to this maybe because of the fact that I am not cleaning up the missions which were loaded before in the game properly. Can somebody please tell the steps to cleaning up a mission, disconnecting and then again connecting back into a mission properly.
Thanks.
#2
07/29/2008 (9:09 am)
Anyone have an idea. I am dynamically loading stuff into the mission. Would deleting them and cleaning up the mission solve the problem?
#4
disconnect(); // to disconnect from the current mission
MissionGroup.delete();
MissionCleanup.delete();
deleteAllInteriors(); // do delete all interior instances created dynamically.....
deleteBots(); // to delete all bots
RunMission(%missionname); // run the mission....
Still my game crashes... Am I missing out on something?
08/31/2008 (11:41 pm)
Okay I am doing this..... And am using TGE.....disconnect(); // to disconnect from the current mission
MissionGroup.delete();
MissionCleanup.delete();
deleteAllInteriors(); // do delete all interior instances created dynamically.....
deleteBots(); // to delete all bots
RunMission(%missionname); // run the mission....
Still my game crashes... Am I missing out on something?
#5
09/01/2008 (11:35 am)
TGE is already setup so that things that need to be cleaned up between missions will be. What makes you think that is the source of your crash? I mean it could be, but most likely you will need to debug this in visual studio.
#6
09/01/2008 (11:49 am)
I noticed that if AI were spawned it caused a crash on mission change. This was TGEA, by the way,
#7
I was not too sure on that. Hence, I thought deleting the missiongroup and missioncleanup may help. But I am not sure if that is actually the reason (or whether it actually is).
I will though check with the dynamic AI spawning.
09/01/2008 (10:22 pm)
Quote:TGE is already setup so that things that need to be cleaned up between missions will be.
I was not too sure on that. Hence, I thought deleting the missiongroup and missioncleanup may help. But I am not sure if that is actually the reason (or whether it actually is).
I will though check with the dynamic AI spawning.
#8
http://www.garagegames.com/mg/forums/result.thread.php?qt=33492
09/09/2008 (12:04 am)
Also I am having some problem switching between missions. I found the following link. But my game has a lot of interiorinstances being created dynamically. I am deleting those interiorinstances properly. But still I end up crashing my game when switching missions. Can somebody help me out?http://www.garagegames.com/mg/forums/result.thread.php?qt=33492
Torque Owner Santosh Pillai
Default Studio Name