Forum Mod Bakery Docs

Is something wrong with the Mod Launcher Update?

Posted in Support
Please login to contribute to the conversation.
Hi,

Ever since I downloaded the 1.20 update, I've been experiencing problems with the mod I'm making. The custom text file no longer works. I've also had trouble adding new objectives into missions involving other vehicle AIs (destroying, dumping, and following have all been troublesome, even though I hadn't experienced such an issue before). After spending most of the day breaking down the code and what I could possibly be missing, I've come to the forums to figure out if it's something I've done or the update. Attached is an altered script for Mission 3 of Level 3. You'll find the code I added in the third stage.

Many thanks,

Nathan

SelectMission("m3");

SetMissionResetPlayerInCar("m3_apucarstart_sd");
SetDynaLoadData("l3z1.p3d;l3r1.p3d;l3r5.p3d;l3r5_dam.p3d;");
InitLevelPlayerVehicle("apu_v","m3_apucarstart_sd","OTHER");

SetNumValidFailureHints( 5 );

UsePedGroup(0);

SetForcedCar();

AddStage(16); 
	RESET_TO_HERE();
	SetMaxTraffic(5);
	SetStageMessageIndex(118);
	SetHUDIcon( "flatmeat" );
	AddStageVehicle("cletu_v","m3_cletus_carstart","target","Missions\level03\M3dump.con", "cletus");
	SetVehicleAIParams( "cletu_v", -10, -9 );   // very dumb - no shortcuts
	AddStageWaypoint( "m3_cletus_path5" );
	AddStageWaypoint( "m3_cletus_path9" );
	AddStageWaypoint( "m3_cletus_path1" );

	StartCountdown(count);
	AddToCountdownSequence( "3", 1000 ); // duration time in milliseconds
	AddToCountdownSequence( "2", 1000 ); // duration time in milliseconds
	AddToCountdownSequence( "1", 1000 ); // duration time in milliseconds
	AddToCountdownSequence( "GO", 400 ); // duration time in milliseconds

	AddObjective("dump", "neither");
		SetObjTargetVehicle("cletu_v");
		AddNPC("apu", "m3_apu_hide");
		AddCollectible("m3_flatmeat_1","roadkill");
		AddCollectible("m3_flatmeat_2","roadkill");
		AddCollectible("m3_flatmeat_3","roadkill");
		AddCollectible("m3_flatmeat_4","roadkill");
		AddCollectible("m3_flatmeat_5","roadkill");
		AddCollectible("m3_flatmeat_6","roadkill");
		AddCollectible("m3_flatmeat_7","roadkill");
		AddCollectible("m3_flatmeat_8","roadkill");
		AddCollectible("m3_flatmeat_9","roadkill");
		AddCollectible("m3_flatmeat_10","roadkill");
		AddCollectible("m3_flatmeat_11","roadkill");
		AddCollectible("m3_flatmeat_12","roadkill");
		AddCollectible("m3_flatmeat_13","roadkill");
		AddCollectible("m3_flatmeat_14","roadkill");
		AddCollectible("m3_flatmeat_15","roadkill");
	CloseObjective();
	SetStageTime(120);
	AddCondition("timeout");
	CloseCondition();
	AddCondition("outofvehicle");
		SetCondTime( 10000 );
	CloseCondition();
	AddCondition( "damage" );
		SetCondMinHealth( 0.0 );
		SetCondTargetVehicle( "apu_v" );
	CloseCondition();
	SetCompletionDialog("jerkwater","apu");
	ShowStageComplete();
CloseStage();

AddStage(0);
	SetMaxTraffic(5);
	SetStageMessageIndex(181);
	SetHUDIcon( "observ" );
	AddObjective("goto", "both");
		SetDestination("m3_observatory", "carsphere");
		SetCollectibleEffect("wrench_collect");
	CloseObjective();
	AddCondition("outofvehicle");
		SetCondTime( 10000 );
	CloseCondition();
	AddCondition( "damage" );
		SetCondMinHealth( 0.0 );
		SetCondTargetVehicle( "apu_v" );
	CloseCondition();
	SetStageTime(40);
	AddCondition("timeout");
	CloseCondition();
AddStageVehicle("cKlimo","m3_cKlimo_carstart","NULL","Missions\level07\M7Chase.con","krusty");
CloseStage();

AddStage(1);
SetMaxTraffic(5)
SetStageMessageIndex(407);
SetHUDIcon("krusty");
ActivateVehicle("cKlimo","NULL","chase");
AddObjective("losetail");
SetObjTargetVehicle("cKlimo");
SetObjDistance(250);
CloseObjective();
SetStageTime(60);
AddCondition("timeout");
CloseCondition();
ShowStageComplete();
CloseStage();

AddStage(2);
	SetMaxTraffic(5);
	SetStageMessageIndex(181);
	SetHUDIcon( "observ" );
	AddObjective("goto", "both");
		SetDestination("m3_observatory", "carsphere");
		SetCollectibleEffect("wrench_collect");
	CloseObjective();
	AddCondition("outofvehicle");
		SetCondTime( 10000 );
	CloseCondition();
	AddCondition( "damage" );
		SetCondMinHealth( 0.0 );
		SetCondTargetVehicle( "apu_v" );
	CloseCondition();
	SetStageTime(40);
	AddCondition("timeout");
	CloseCondition();
	SetFadeOut( 1.0 );
	SwapInDefaultCar();
	SetSwapDefaultCarLocator("m3_carend");
	SetSwapForcedCarLocator("m3_apu_carend");
	SetSwapPlayerLocator("m3_lisa_observatory");
	ShowStageComplete();
CloseStage();

AddStage(3);
	SetStageMessageIndex(182);
	SetHUDIcon( "observ" );
	AddObjective("interior");
		AddNPC("frink", "m3_frink");
		SetDestination("Observatory", "obsv_mission_doorstar");
	CloseObjective();
CloseStage();

AddStage(4);
	SetStageMessageIndex(66);
	SetHUDIcon( "frink" );
	AddObjective("talkto", "neither");
		AddNPC("frink", "m3_frink");
		AddObjectiveNPCWaypoint( "frink", "m3_frink_walk_1" );
		SetTalkToTarget("frink", 0, 0);
	CloseObjective();
CloseStage();

AddStage("final");
	AddObjective("dialogue");
		AmbientAnimationRandomize( 1, 0 );      // ( pc=0, npc=1) (nonrandom=0, random=1)
		AmbientAnimationRandomize( 0, 0 );
		SetConversationCam( 0, "pc_far" );
		SetConversationCam( 1, "npc_near" );
		SetConversationCam( 2, "pc_far" );
		AddAmbientNpcAnimation( "none" );
		AddAmbientPcAnimation( "dialogue_hands_in_air" );
		SetDialogueInfo("lisa","frink","conspiracy",0);
	CloseObjective();
CloseStage();

CloseMission();
Might not be the whole problem but you definitely need a semicolon after "SetMaxTraffic(5)" in your third stage.
In addition to that, a stage message index of 407 seems way outside the normal range, you may want to look into custom text for a specific mission and go lower with your numbering.
[CustomTextL3M3]
MISSION_OBJECTIVE_01=TEST OBJECTIVE 1
MISSION_OBJECTIVE_02=TEST OBJECTIVE 2
Yes, that should do it! I might revisit other missions, see if the problem's still present or it's another blasted semicolon! Didn't know you could specify the missions for custom texts, definitely makes it easier! Thanks Homer/Bender!