Home   Help Search Login Register  

Author Topic: campaign description.ext  (Read 1349 times)

0 Members and 1 Guest are viewing this topic.

hydro

  • Guest
campaign description.ext
« on: 30 Aug 2002, 03:17:37 »
Hi guys, just did a tutorial explaining the campaign desc.ext
but mine keeps dropping me to the main menu, I'll post it here see if you can spot the errors.
_____________________________

// This class defines the entire campaign
class Campaign
{
   // Name of the campaign.  Displayed when choosing the campaign to play
   name = "POW";

   // This indicates the first battle in the campaign.  It is the name of
   // one of the battle classes defined below
   firstBattle = BattleOne;
   
   
   // This class defines a battle in the campaign.  You can have multiple battles
   // defined in a campaign.
   class BattleOne
   {
      // Name of the battle
      name = "BattleOne";
      
      // Cutscene to play before the battle.  Refers to the name of a mission
      // subdirectory in the campaign's Missions directory.  If left empty then
      // there is no cutscene for this battle
      cutscene = ;

      // First mission to play in this battle.  Refers to the name of one of
      // the mission classes defined below.
      firstMission = Rescue;

      // These fields indicate the next battle to play depending on the outcome of
      // this battle.  If a mission in this battle has it's end1-end6 or lost
      // fields empty then these fields will be used instead.
      // The ending battle(s) for this campaign should have all of these empty.
      end1 = ;
      end2 = ;
      end3 = ;
      end4 = ;
      end5 = ;
      end6 = ;
      lost = ;

      // This class defines a mission in this battle.
      // Is this inheriting from MissionDefault?
      class Rescue: MissionDefault
      {
         // ?
         noAward=true;

         // These fields indicate the next mission to play depending on the
         // outcome of this mission.  If one of these fields has an empty
         // value then the corresponding field in the battle class will be
         // used to advance to the next battle.
         end1 = Raid;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = ;

         // Refers to the mission subdirectory in this campaign's Missions
         // directory to use for this mission
         template = Rescue.Noe;
      };
      class Raid: MissionDefault
      {
         // ?
         noAward=true;

         // These fields indicate the next mission to play depending on the
         // outcome of this mission.  If one of these fields has an empty
         // value then the corresponding field in the battle class will be
         // used to advance to the next battle.
         end1 = ;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = ;

         // Refers to the mission subdirectory in this campaign's Missions
         // directory to use for this mission
         template = Raid.Noe;
      };
   };
};
_________________________________________________

ok i have a POW.Noe folder in campaigns, in there is a Rescue.Noe folder, a Raid.Noe folder and the description.ext

also 1985.paa, vssver.scc, mission.sqm, overview.html as per instructions.

If anybody could give us a hand i'd appreciate it.

hydro

  • Guest
Re:campaign description.ext
« Reply #1 on: 30 Aug 2002, 03:19:16 »
i AM a llama.
____________________________________
Brawwwwl

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:campaign description.ext
« Reply #2 on: 30 Aug 2002, 05:05:16 »
you missed out the mission default bit at the top. Also your two missions rescue.noe & raid.noe need to be put into a missions folder in your campaign folder.



//you missed this bit

class MissionDefault
{
     lives = -1;

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

// This class defines the entire campaign
class Campaign
{
   // Name of the campaign.  Displayed when choosing the campaign to play
   name = "POW";

   // This indicates the first battle in the campaign.  It is the name of
   // one of the battle classes defined below
   firstBattle = Part1;
   
   
   // This class defines a battle in the campaign.  You can have multiple battles
   // defined in a campaign.
   class Part1
   {
      // Name of the battle
      name = "BattleOne";
     
      // Cutscene to play before the battle.  Refers to the name of a mission
      // subdirectory in the campaign's Missions directory.  If left empty then
      // there is no cutscene for this battle
      cutscene = ;

      // First mission to play in this battle.  Refers to the name of one of
      // the mission classes defined below.
      firstMission = Rescue;

      // These fields indicate the next battle to play depending on the outcome of
      // this battle.  If a mission in this battle has it's end1-end6 or lost
      // fields empty then these fields will be used instead.
      // The ending battle(s) for this campaign should have all of these empty.
      end1 = ;
      end2 = ;
      end3 = ;
      end4 = ;
      end5 = ;
      end6 = ;
      lost = ;

      // This class defines a mission in this battle.
      // Is this inheriting from MissionDefault?
      class Rescue: MissionDefault
      {
         // ?
         noAward=true;

         // These fields indicate the next mission to play depending on the
         // outcome of this mission.  If one of these fields has an empty
         // value then the corresponding field in the battle class will be
         // used to advance to the next battle.
         end1 = Raid;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = ;

         // Refers to the mission subdirectory in this campaign's Missions
         // directory to use for this mission
         template = Rescue.Noe;
      };
      class Raid: MissionDefault
      {
         // ?
         noAward=true;

         // These fields indicate the next mission to play depending on the
         // outcome of this mission.  If one of these fields has an empty
         // value then the corresponding field in the battle class will be
         // used to advance to the next battle.
         end1 = ;
         end2 = ;
         end3 = ;
         end4 = ;
         end5 = ;
         end6 = ;
         lost = ;

         // Refers to the mission subdirectory in this campaign's Missions
         // directory to use for this mission
         template = Raid.Noe;
      };
   };
};

hydro

  • Guest
Re:campaign description.ext
« Reply #3 on: 30 Aug 2002, 05:13:19 »
Thx, I had that bit but didnt post it as i didn't think it was relevant(no changes) But my problem must be not having a missions folder, Thanks a bundle Black_Feather, im off to test it  :D

hydro

  • Guest
Re:campaign description.ext
« Reply #4 on: 30 Aug 2002, 05:56:21 »
Thanks man that works a treat,

         :D GLEE  :D