Jump to content
Sign in to follow this  
Holden93

Campaign structure

Recommended Posts

I've been following this http://community.bistudio.com/wiki/Campaign_Description.ext but I haven't understood... this is the campaign thing in the description.ext

class MissionDefault

{

lives = -1;

lost = ;

end1 = ;

end2 = ;

end3 = ;

end4 = ;

end5 = ;

end6 = ;

};

class Campaign

{

name = "Stratis' invasion";

firstBattle = Beginning;

class Beginning

{

name = "Beginning";

cutscene = ;

firstMission = mission2;

end1 = ;

end2 = ;

end3 = ;

end4 = ;

end5 = ;

end6 = ;

lost = ;

class mission2: MissionDefault

{

end1 = mission3;

template = ;

};

class mission3: MissionDefault

{

end1 = mission4;

};

class mission4: MissionDefault

{

end1 = mission5;

};

class mission5: MissionDefault

{

end1 = mission6;

};

class mission6: MissionDefault

{

end1 = mission7;

};

class mission7: MissionDefault

{

end1 = mission8;

};

class mission8: MissionDefault

{

end1= mission9;

};

class mission9: MissionDefault

{

end1 = mission10;

end2 = mission10_1

};

class mission10: MissionDefault

{

};

class mission10_1: MissionDefault

{

};

};

};

But when I try to play it at the end of the loading screen it goes back to the main menu, could you tell me what's wrong with it?

Share this post


Link to post
Share on other sites

I don't think that campaigns are working properly for arma3 yet, but not entirely sure yet.

Share this post


Link to post
Share on other sites

I'll wait then, but is there something wrong in the code? Could you please check it?

Share this post


Link to post
Share on other sites

Use the Code tags for code instead of quotes, easier to read. Or even PHP if you like it colorful. It's the # button in the advanced menu.

[code]
// code here
[/code]

Here's an actual campaign description.ext from an ArmA2 campaign to compare to:

class MissionDefault
{
	lives = -1;

lost = ;
end1 = ;
end2 = ;
end3 = ;
end4 = ;
end5 = ;
end6 = ;
};

class Campaign
{
name = "Black Lands";
firstBattle = Chapter1;
disableMP = true;

class Chapter1
{
	name = "";

	cutscene = ;

	firstMission = Intro1;
	end1 = ;
	end2 = ;
	end3 = ;
	end4 = ;
	end5 = ;
	end6 = ;
	lost = ;

	class Intro1: MissionDefault
	{
		end1 = Intro2;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = Intro1;
		template = zs00intro.Chernarus;
	};

	class Intro2: MissionDefault
	{
		end1 = DeathCameUponMe;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = Intro2;
		template = zs00intro2.Chernarus;
	};

	class DeathCameUponMe: MissionDefault
	{
		end1 = Nach_DeathCameUponMe;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = DeathCameUponMe;
		template = 01deathcameuponme.Chernarus;
	};

	class Nach_DeathCameUponMe: MissionDefault
	{
		end1 = Awakening;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = Nach_DeathCameUponMe;
		template = zs01deathcameuponme.Chernarus;
	};

	class Awakening: MissionDefault
	{
		end1 = StartingToInflameAgain;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = Awakening;
		template = 02awakening.Chernarus;
	};

	class StartingToInflameAgain: MissionDefault
	{
		end1 = SettingUpTime;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = StartingToInflameAgain;
		template = 03startingtoinflameagain.Chernarus;
	};

	class SettingUpTime: MissionDefault
	{
		end1 = ;
		end2 = ;
		end3 = ;
		end4 = ;
		end5 = ;
		end6 = ;
		lost = SettingUpTime;
		template = 04settinguptime.Chernarus;
	};



};



};



class CfgIdentities

{

class Tomas 
{
	name="Tomas";
	face="Face101";
	glasses="None";
	speaker="Male03EN";
	pitch=1.0;
};

class Tomas_Camo
{
	name="Tomas";
	face="Face101_camo1";
	glasses="None";
	speaker="Male03EN";
	pitch=1.0;
};

class Dimitri 
{
	name="Dimitri";
	face="Face93";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class USAgent 
{
	name="Usagent";
	face="Face19";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Sergej 
{
	name="Sergej";
	face="Face06";
	glasses="None";
	speaker="Male02EN";
	pitch=1.0;
};

class Tomek 
{
	name="Tomek";
	face="Face102";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Miroslav 
{
	name="Miroslav";
	face="Face71";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Verhoerer 
{
	name="Verhoerer";
	face="Face69";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Kamil 
{
	name="Kamil";
	face="Face91";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Matei 
{
	name="Matei";
	face="Face74";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Offzsee 
{
	name="Offzsee";
	face="Face65";
	glasses="SunGlasses";
	speaker="Male01EN";
	pitch=1.0;
};

class Maulwurf 
{
	name="Maulwurf";
	face="Face64";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Barkeeper 
{
	name="Barkeeper";
	face="Face44";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Pribotow 
{
	name="Pribotow";
	face="Face21";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Jegor 
{
	name="Jegor";
	face="Face20";
	glasses="RoundGlasses";
	speaker="Male02EN";
	pitch=1.0;
};

class Leiter 
{
	name="R. Gonzales";
	face="Face42_camo6";
	glasses="None";
	speaker="Male05EN";
	pitch=1.0;
};

class Piper 
{
	name="S. Young (Piper)";
	face="Face79_camo2";
	glasses="None";
	speaker="Male04EN";
	pitch=1.0;
};

class SF 
{
	name="J. Clark";
	face="Face21_camo5";
	glasses="None";
	speaker="Male03EN";
	pitch=1.0;
};

class Richards 
{
	name="P. Richards";
	face="Face33_camo4";
	glasses="None";
	speaker="Male02EN";
	pitch=1.0;
};

class Johnson 
{
	name="P. Johnson";
	face="Face03_camo2";
	glasses="None";
	speaker="Male01EN";
	pitch=1.0;
};

class Schsch 
{
	name="R. Bright";
	face="Face67_camo5";
	glasses="None";
	speaker="Male04EN";
	pitch=1.0;
};



};


Share this post


Link to post
Share on other sites

Hi! I have a problem with structure and I need the help. Earlier in Arma2 this structure of the Campaign worked

 

class Campaign
{
name = "$STR_Afgancampaign";
firstBattle = Intro;
enableHub = 1;
briefingName = "$STR_Afgancampaign";
author = "my nick";
overviewPicture = "Afganistan\img\vdv.paa";
overviewText = $STR_overAfgann;
doneKeys[] = {Mission000Key};
 
class MissionDefault
{
lives = -1;
lost = ;
end1 = ;
};
 
class Intro
{
name = "$STR_nameIntro";
 
cutscene = IntroAfgan.Altis;
 
firstMission = m1;
end1 = ;
lost = ;
 
class m1: MissionDefault
{
end1 = prolog1;
lost = m1;
template = Afgan_m1.Kunduz;
};
 
class prolog1: MissionDefault
{
end1 = m2;
lost = m2;
template = Prolog1Afgan.Altis;
};
 
class m2: MissionDefault
{
end1 = prolog2;
lost = m2;
template = Afgan_mm2.Kunduz;
};
 
class prolog2: MissionDefault
{
end1 = m3;
lost = m3;
template = Prolog2Afgan.Altis;
};
 
class m3: MissionDefault
{
end1 = m4;
lost = m3;
template = Afgan_m3.Kunduz;
};
 
class m4: MissionDefault
{
end1 = prolog3;
lost = m4;
template = Afgan_m4.Kunduz;
};
 
class prolog3: MissionDefault
{
end1 = m5;
lost = m5;
template = Prolog3Afgan.Altis;
};
 
class m5: MissionDefault
{
end1 = prolog4;
lost = m5;
template = Afgan_m5.Kunduz;
};
 
class prolog4: MissionDefault
{
end1 = m6;
lost = m6;
template = Prolog4Afgan.Altis;
};
 
class m6: MissionDefault
{
end1 = prolog5;
lost = m6;
template = Afgan_m6.Kunduz;
};
 
class prolog5: MissionDefault
{
end1 = m7;
lost = m7;
template = Prolog5Afgan.Altis;
};
 
class m7: MissionDefault
{
end1 = prologend;
lost = m7;
template = Afgan_m7.Kunduz;
};
 
class prologend: MissionDefault
{
end1 = ;
lost = ;
template = PrologendAfgan.Altis;
};
};
}; 
 
After release I began to write missions in the 3D editor to Arma3 of the 3D editor. And now this structure doesn't work as at the end of the Campaign I lose the Introduction without task and epilogs of a victory and defeat. Earlier everything worked. There is my structure! Perhaps you will help me. 
 
class MissionDefault
{
lives = -1;
lost = ;
end1 = ;
};
 
class Intro
{
name = "$STR_nameIntro2";
 
cutscene = IntroZargabad.Zargabad;
 
firstMission = m1;
end1 = ;
lost = ;
 
class m1: MissionDefault
{
end1 = m2;
lost = m1;
template = missionZar1.Zargabad;
};
 
class m2: MissionDefault
{
end1 = m3;
lost = m2;
template = missionZar2.Zargabad;
};
 
class m3: MissionDefault
{
end1 = m4;
lost = m3;
template = missionZar3.Zargabad;
};
 
class m4: MissionDefault
{
end1 = m5;
lost = m4;
template = missionZar4.Zargabad;
};
 
class m5: MissionDefault
{
end1 = m6;
lost = m5;
template = missionZar5.Zargabad;
};
 
class m6: MissionDefault
{
end1 = introEND;
lost = m6;
template = missionZar6.Takistan;
};
 
class introEND: MissionDefault
{
template = missionZar7intro.cain;
};
};
}; 

 

The structure works! The ending is started, but it asks in mission.sqm >>>>> Mission 
Before it wasn't. What to do?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×