Jump to content
Sign in to follow this  
Aldo15

Campaign Error

Recommended Posts

Hey guys

I've made my capaign but I get a structure error when I try to play it. Well; I didn't want to write the post again, because I post the same problem in in opfec's forum,l but I didn't receive any help.

So I thought will post it here, I'll try some help for you guys.

Share this post


Link to post
Share on other sites

Ok i've copied your campaign structure below :

class MissionDefault
{
    lives = -1;

   lost = ;
   end1 = ;
   end2 = ;
   end3 = ;
   end4 = ;
   end5 = ;
   end6 = ;
};
class Campaign
{
   name =  "Yankie Stalker";
   firstBattle = Part1;


   class Part1
   {
       name = "Prologue";
       cutscene = ;

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

class FreeFreya0: MissionDefault
       {
           end1 = FreeFreya00;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya00;
           template = 01.IntroA.Cuba;
       };

       class FreeFreya00: MissionDefault
       {
           end1 = FreeFreya01;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya00;
           template = 02.Planes.abel;
       };
       class FreeFreya01: MissionDefault
       {
           end1 = FreeFreya02;
           end2 = FreeFreya01;
           end3 = FreeFreya01;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya01;
           template = 03.Pruebas.Cuba;
       };
       class FreeFreya02: MissionDefault
       {
           end1 = FreeFreya03;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya02;
           template = 04.Permiso.abel;
       };
       class FreeFreya03: MissionDefault
       {
           end1 = FreeFreya04;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya03;
           template = 05.Publico.abel;
       };
       class FreeFreya04: MissionDefault
       {
           end1 = FreeFreya05;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya04;
           template = 06.Artilleria.cuba;
       };
       class FreeFreya05: MissionDefault
       {
           end1 = FreeFreya06;
           end2 = FreeFreya07;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya05;
           template = 07.Pre-invasion.cuba;
       };
       class FreeFreya06: MissionDefault
       {
           end1 = FreeFreya10;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya06;
           template = 08a.Invasión.cuba;
       };
       class FreeFreya07: MissionDefault
       {
           end1 = FreeFreya08;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya07;
           template = 07.Pilto.Cuba;
       };
       class FreeFreya08: MissionDefault
       {
           end1 = FreeFreya09;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya08;
           template = 08a.Invasiónii.cuba;
       };
       class FreeFreya09: MissionDefault
       {
           end1 = FreeFreya11;
           end2 = FreeFreya10;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya09;
           template = 08.Captured;
       };
       class FreeFreya10: MissionDefault
       {
           end1 = FreeFreya16;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya10;
           template = 09.Avanzando.cuba;

       };
class FreeFreya11: MissionDefault
       {
           end1 = FreeFreya13;
           end2 = FreeFreya14;
           end3 = FreeFreya14;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya12;
           template = 09.Decidir.Cuba;
       };
class FreeFreya13: MissionDefault
       {
           end1 = FreeFreya10;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya13;
           template = 10a.Escape.Cuba;
       };
class FreeFreya14: MissionDefault
       {
           end1 = FreeFreya15;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya14;
           template = 10b.Takedocs.Cuba;
};
class FreeFreya15: MissionDefault
       {
           end1 = FreeFreya10;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya15;
           template = 10ab.Rescue.Cuba;
       };
class FreeFreya16: MissionDefault
       {
           end1 = Freefreya17;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya16;
           template = 11.NoShilkas.Cuba;
       };
class FreeFreya17: MissionDefault
       {
           end1 = FreeFreyaOutro;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = FreeFreya17;
           template = 11.HeavyAttack.Cuba;
       };
       class FreeFreyaOutro: MissionDefault
       {
           end1 = ;
           end2 = ;
           end3 = ;
           end4 = ;
           end5 = ;
           end6 = ;
           lost = ;
           template = 15.Escena.Cuba;
       };
   };

};

class CfgSounds
{
   sounds[] = { };
};


class CfgRadio
{
   sounds[] = { };
};

First, i would advise you to have a careful read of that : https://community.bistudio.com/wiki/Campaign_Description.ext

Second, i'm not sure your missions naming (such as "07.Pilto.Cuba") is a good idea (Try something simplier such as "mission1.cuba"). Moreover, the mission Template " template = 08.Captured;" is incomplete).

Share this post


Link to post
Share on other sites

Hey I found the error. It was the name of missions. I had to change them, now it works perfectly.

Thanks buddy, now I could upload my project

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  

×