OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Calamity on 19 Feb 2004, 02:55:51

Title: Problem with Campaign Description.ext
Post by: Calamity on 19 Feb 2004, 02:55:51
I am having a problem with setting up my campaign. I have followed the tutorial and have a campagn folder with my mission folders contained within. I can create the campaing PBO file and move it to the campaigns folders. When I go into the campaigns section in OFP I can view the overview of the campaign but when I click "start" to begin the campaign the game abends and I get an error message "Error in Campaign Structure". I have included a copy of my Description.ext file, Could someone give it a once over? I can't seam to find the but.

Thanks,
Calamity

class MissionDefault
{
    lives = -1;
   lost = ;
   end1 = ;
   end2 = ;
   end3 = ;
   end4 = ;
   end5 = ;
   end6 = ;
};

class Campaign
{
    name = "Malden_Assault";
    firstBattle = Prologue;
    class Prologue
    {
        name = "Prologue";
        cutscene = ;
        firstMission = Intro;
        end1 = ;
        end2 = ;
        end3 = ;
        end4 = ;
        end5 = ;
        end6 = ;
        lost = ;    
      class Intro: MissionDefault
      {
         end1 = Beach_landing;
         end2 = Beach_landing;
         end3 = Beach_landing;
         end4 = Beach_landing;
         end5 = Beach_landing;
         end6 = Beach_landing;
         lost = Intro;
         template = CC0_Campaign_Intro.abel;
      };
      class Beach_landing: MissionDefault
      {
         end1 = Take_Out_the_AAA;
         end2 = Take_Out_the_AAA;
         end3 = Take_Out_the_AAA;
         end4 = Take_Out_the_AAA;
         end5 = Take_Out_the_AAA;
         end6 = Take_Out_the_AAA;
         lost = Beach_landing;
         template = CC1_Beach_Landing.Abel;
      };
      class Take_Out_the_AAA: MissionDefault
      {
         end1 = Prison_Break;
         end2 = Prison_Break;
         end3 = Prison_Break;
         end4 = Prison_Break;
         end5 = Prison_Break;
         end6 = Prison_Break;
          lost = Take_Out_the_AAA;
         template = CC2_Take_out_the_AAA.Abel;
        };
      class Prison_Break: MissionDefault
      {
         end1 = Airfield_Assault;
         end2 = Airfield_Assault;
         end3 = Airfield_Assault;
         end4 = Airfield_Assault;
         end5 = Airfield_Assault;
         end6 = Airfield_Assault;
         lost = Prison_Break;
         template = CC3_Prison_Break.Abel;
        };
      class Airfield_Assault: MissionDefault
      {
         end1 = Medivac;
         end2 = Medivac;
         end3 = Medivac;
         end4 = Medivac;
         end5 = Medivac;         
         end6 = Medivac;
         lost = Airfield_Assault;
         template = CC4_Airfield_Assault.Abel;
        };
      class Medivac: MissionDefault
      {  
          end1 = ;
          end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;      
         end6 = ;
         lost = Medivac;
         template = CC5_Medivac.Abel;

    };
};



Title: Re:Problem with Campaign Description.ext
Post by: MI_Fred on 19 Feb 2004, 17:00:29
One }; missing from the end, the one that closes class Medivac presumably. Almost too classic, you should go over these mistakes by yourself whatever the conditions, some will shun away from answering these  ;)
Title: Re:Problem with Campaign Description.ext
Post by: Calamity on 19 Feb 2004, 20:43:14
I changed the end of the Description.ext file to
      class Medivac: MissionDefault
      {  
          end1 = ;
          end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;      
         end6 = ;
         lost = Medivac;
         template = CC5_Medivac.Abel;
        };
    };
};

However, I still am getting the "Error in Campaign structure". I had this campaign thing working once, about 9 months ago. But now I just can't seam to get past this block. I understand that this is an involved question. Any thing else you guys can offer...
Title: Re:Problem with Campaign Description.ext
Post by: Welshmanizer on 19 Feb 2004, 22:59:59
class MissionDefault
{
   lives = -1;
   lost = ;
   end1 = ;
   end2 = ;
   end3 = ;
   end4 = ;
   end5 = ;
   end6 = ;
};

class Campaign
{
    name = "Malden_Assault";
    firstBattle = Prologue;
    class Prologue
    {
        name = "Prologue";
        cutscene = ;
        firstMission = Intro;
        end1 = ;
        end2 = ;
        end3 = ;
        end4 = ;
        end5 = ;
        end6 = ;
        lost = ;
      };
      class Intro: MissionDefault
      {
         end1 = Beach_landing;
         end2 = Beach_landing;
         end3 = Beach_landing;
         end4 = Beach_landing;
         end5 = Beach_landing;
         end6 = Beach_landing;
         lost = Intro;
         template = CC0_Campaign_Intro.abel;
      };
      class Beach_landing: MissionDefault
      {
         end1 = Take_Out_the_AAA;
         end2 = Take_Out_the_AAA;
         end3 = Take_Out_the_AAA;
         end4 = Take_Out_the_AAA;
         end5 = Take_Out_the_AAA;
         end6 = Take_Out_the_AAA;
         lost = Beach_landing;
         template = CC1_Beach_Landing.Abel;
      };
      class Take_Out_the_AAA: MissionDefault
      {
         end1 = Prison_Break;
         end2 = Prison_Break;
         end3 = Prison_Break;
         end4 = Prison_Break;
         end5 = Prison_Break;
         end6 = Prison_Break;
         lost = Take_Out_the_AAA;
         template = CC2_Take_out_the_AAA.Abel;
        };
      class Prison_Break: MissionDefault
      {
         end1 = Airfield_Assault;
         end2 = Airfield_Assault;
         end3 = Airfield_Assault;
         end4 = Airfield_Assault;
         end5 = Airfield_Assault;
         end6 = Airfield_Assault;
         lost = Prison_Break;
         template = CC3_Prison_Break.Abel;
        };
      class Airfield_Assault: MissionDefault
      {
         end1 = Medivac;
         end2 = Medivac;
         end3 = Medivac;
         end4 = Medivac;
         end5 = Medivac;        
         end6 = Medivac;
         lost = Airfield_Assault;
         template = CC4_Airfield_Assault.Abel;
        };
      class Medivac: MissionDefault
      {  
          end1 = ;
          end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;      
         end6 = ;
         lost = Medivac;
         template = CC5_Medivac.Abel;

    };
};



 ::) :hmm:
Title: Re:Problem with Campaign Description.ext
Post by: Calamity on 19 Feb 2004, 23:17:52
Got it!
It was a combination of problems. There was ty syntactic problem with the Curly Parens and the fact that I had all my missions in the root Campaign folder. Instad of Missions\Maldin_Assault\Missions\CC0_Campaign_Intro.abel it was in Missions\Maldin_Assault\CC0_Campaign_Intro.abel.
this was revieled when I used the Campaign editor by The Austrian Scripting Front in OFP's Editor Center. I had tried to use this tool before with out much success. Gues the seccond times the charm...

Thanks again every one,
Calamity out.