Forum Mod Bakery Docs

Completing the tutorial crashes the game...?

Posted in Support
Please login to contribute to the conversation.
Yes, i am not lying about the title, so here is some info about the mod.
before i edited the code for "m1sdi.mfk" it did not crash, here is some info for it,
SelectMission("m1sd");

SetMissionResetPlayerOutCar("level1_homer_start", "level1_carstart");
SetDynaLoadData("l1z1.p3d;l1r1.p3d;l1r7.p3d;");

UsePedGroup( 0 ); 

AddStage(0);
	RESET_TO_HERE();
	SetMaxTraffic(2);
	SetHUDIcon("mansion");
	SetStageMessageIndex(167);
	AddObjective( "goto" );
		AddNPC("snake", "m1_marge_sd");
		SetDestination( "m0_gasc", "carsphere");
		SetCollectibleEffect("wrench_collect");
	CloseObjective();
CloseStage();

AddStage(0);
	SetStageMessageIndex(00);
	SetHUDIcon("snake");
	AddObjective("talkto","both");
		AddNPC("snake", "m1_marge_sd");
		AddObjectiveNPCWaypoint( "snake" );
		SetTalkToTarget("snake", 0, 0.2);
	CloseObjective();
CloseStage();

AddStage(1);
	AddObjective("dialogue");
		SetPresentationBitmap( "art/frontend/dynaload/images/mis01_01.p3d" );
		AmbientAnimationRandomize( 1, 0 );      // ( pc=0, npc=1) (nonrandom=0, random=1)
		AmbientAnimationRandomize( 0, 0 );
		SetConversationCam( 0, "pc_far" );
		SetConversationCam( 1, "npc_far" );
		SetConversationCam( 2, "pc_far" );
		AddAmbientNpcAnimation( "none" );
		AddAmbientNpcAnimation( "dialogue_thinking" );
		AddAmbientNpcAnimation( "dialogue_scratch_head" );
		AddAmbientPcAnimation( "dialogue_shake_hand_in_air" );
		AddAmbientPcAnimation( "none" );
		AddAmbientPcAnimation( "dialogue_open_arm_hand_gesture" );
		//SetConversationCamNpcName("npc_far");
		//SetConversationCamPcName("pc_far");
		SetDialogueInfo("homer","snake","somthing",0);
		SetCamBestSide("bestside_m1");
		SetDialoguePositions("m1_homer_talking_start","m1_snake_talking_start","m1_talking__carstart");
	CloseObjective();
CloseStage();

CloseMission();

//dialogue_hands_in_air
//dialogue_hands_on_hips
//dialogue_scratch_head
//dialogue_shaking_fist
//dialogue_thinking
//dialogue_yes
//dialogue_no
//dialogue_cross_arms
//dialogue_open_arm_hand_gesture
//dialogue_shake_hand_in_air
(Btw the dialogue is not finished)
and plus, the mission complete does not show when i complete the tutorial mission. here is a preview,
AddStage();
	SetHUDIcon("homer");
	AddObjective("timer");
		SetStageMessageIndex(193);
		SetDurationTime(2.0);
	CloseObjective();
CloseStage();

AddStage();
	SetHUDIcon("burns");
	AddObjective("timer");
		SetStageMessageIndex(194);
		SetDurationTime(3.4);
	CloseObjective();
CloseStage();

AddStage();
	SetHUDIcon("homer");
	AddObjective("timer");
		SetStageMessageIndex(195);
		SetDurationTime(2.6);
	CloseObjective();
CloseStage();

AddStage();
	SetHUDIcon("burns");
	AddObjective("timer");
		SetStageMessageIndex(196);
		SetDurationTime(3.4);
	CloseObjective();
CloseStage();

AddStage();
	SetHUDIcon("homer");
	AddObjective("timer");
		SetStageMessageIndex(197);
		SetDurationTime(3.1);
	CloseObjective();
CloseStage();

AddStage();
	SetHUDIcon("burns");
	AddObjective("timer");
		SetStageMessageIndex(198);
		SetDurationTime(2.6);
	CloseObjective();
CloseStage();

CloseMission();


idk whats going on. any ideas?
Your last stage needs to start like this:
AddStage (final);
If that's not what's causing the crash, check that if you've loaded the correct mission icons in m1sd1.mfk. sdi files also use the locators in the level.p3d file, not the m1.p3d. Or just the locators have slightly different names being referenced.
That's usually what causes crashes, I can't see anything wrong with your code.