Home   Help Search Login Register  

Author Topic: campaign description.ext not working  (Read 586 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
campaign description.ext not working
« on: 06 Jul 2005, 17:55:46 »
okay im starting on my campaign description.ext ive copied several different .ext ive tried
Too young to die
Chris howarths tut
1985 - Cold war crisis
and Red hammer
 
ive used theres as a template but i alsways get the same error were it says 'Prologue'
it doesnt say wich one but im guessing where it says 'class prologue' as its not in capitals in the message
it also says an 'S' was encountered instead of a '}' so it eans ive got an S in there wich should be a } but where is it ?
This is the .ext file its not finished yet thats just the missions that are fully finifhed

Code: [Select]
class CfgIdentities
{
   class BS
   {
      name = "Brian Sheplan";
      face = "Johan Way";
      glasses = "none";
      speaker = "Rob";
      pitch = 1;
   };
   class rb
   {
      name = "Ryan Bruns";
      face = "John A";
      glasses = "none";
      speaker = "Peter";
      pitch = 1;
   };
};

class Awards
{
};

class Penalties
{
};

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

class Campaign
{
   name = "Operation Reinstating Order";
   firstBattle = Prologue;
   
   

   class Prologue
   {
      name = "PROLOGUE";
      
      cutscene = 00.intro1.eden;

      firstMission = Surprise Surprise;
      end1 = Part1;
      end2 = Part1;
      end3 = Part1;
      end4 = Part1;
      end5 = Part1;
      end6 = Part1;
      lost = Part1;

      
      class Surprise Surprise: MissionDefault
      {
         end1 = ;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Surprise Surprise;
         template = 01. Surprise Surprise.Abel;
      };
   };
   
   class Part1
   {
      name = "Part I";

      cutscene = ;

      firstMission = Quick Retake;
      lost = Part2;
      end1 = Part2;
      end2 = Part2;
      end3 = Part2;
      end4 = Part2;
      end5 = Part2;
      end6 = Part2;
      

      class Quick Retake: MissionDefault
      {
         end1 = UnCocked;
         end2 = UnCocked;
         end3 = UnCocked;
         end4 = UnCocked;
         end5 = UnCocked;
         end6 = UnCocked;
         lost = Quick Retake;
         template = 02.Quick_Retake.Eden;
      };
      class UnCocked: MissionDefault
      {
         end1 = Wipe Out;
         end2 = 003Evac;
         end3 = 003Evac;
         end4 = 003Evac;
         end5 = 003Evac;
         end6 = Wipe Out;
         lost = UnCocked;
         template = 03.UnCocked.eden;
      };
      class Wipe Out: MissionDefault
      {
         end1 = Morton clear out;
         end2 = 004TooYoung;
         end3 = 004TooYoung;
         end4 = 004TooYoung;
         end5 = 004TooYoung;
         end6 = 004TooYoung;
         lost = Wipe Out;
         template = 04.Wipe_out.eden;
      };
      class Morton clear out: MissionDefault
      {
         end1 = Angels;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Morton clear out;
         template = 05.Morton_clear_out.Eden;
      };
      class Angels: MissionDefault
      {
         end1 = ;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Angels;
         template = 06.Angels.eden;
      };
   };
   
   class Part2
   {
      name = "Part II";

      cutscene = ;

      firstMission = Harder;
      lost = Part2;
      end1 = Part2;
      end2 = Part2;
      end3 = Part2;
      end4 = Part2;
      end5 = Part2;
      end6 = Part2;

      class Harder: MissionDefault
      {
         end1 = Un Secure;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Harder;
         template = 07.Harder.Eden;
      };
      class Un Secure: MissionDefault
      {
         end1 = Not Enough;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Un Secure;
         template = 08.Un_secure.Abel;
      };
      class Not Enough: MissionDefault
      {
         end1 = Sniper;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Not Enough;
         template = 09.Not_enough.Eden;
      };
      class Sniper: MissionDefault
      {
         end1 = Rescue;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Sniper;
         template = 10.Sniper.Eden;
      };
      class Rescue: MissionDefault
      {
         end1 = The day after;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = Rescue;
         template = 11.Rescue.abel;
      };
      class The day after: MissionDefault
      {
         end1 = Lost convoy;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = The day after;
         template = 12.The_day_after.abel;
      };
   };
};

I cant see whats wrong with it but ofp doesnt like something in it ive also tried the campaign maker but it failed with the same error well actually it said i encountered a '.' instead of '}'
so its near enough the same error
any suggestions ?

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:campaign description.ext not working
« Reply #1 on: 06 Jul 2005, 19:58:09 »
I would get rid of the spaces in the file name.

template = 01. Surprise Surprise.Abel;

Change to:

template = 01.Surprise_Surprise.Abel;


Planck
« Last Edit: 06 Jul 2005, 19:58:43 by Planck »
I know a little about a lot, and a lot about a little.

Offline 456820

  • Contributing Member
  • **
Re:campaign description.ext not working
« Reply #2 on: 07 Jul 2005, 18:11:24 »
okay thanks alot i got rid of all the spaces on the .ext and now i tried opening it in the editor so i can save it, it worked perfectly until i go to play it in the campaign menu when i press start it CTD and says 'Error in campaign stucture'
i cant see a single thig wrong with it i copied i BID one whats wrong with it ?