[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Campaigns in SC
Author Campaigns in SC
Redshift


Joined: Nov 25, 2002
Posts: 97
Posted: 2003-01-03 03:07   
I have a really nice idea for an Akula campaign which involves a military drop off vessels posing as a "neutral" fishing boat, Taiwanese and American ships, a hunt for a 688i and a race at flank speed to stop a Taiwanese vessel from wiping out a Russian oil rig in a revenge attack.

Unfortunately, I have very little experience in the mission editor but I'm sure I will be able to figure things out as I go along. One immediate, though, I cant seem to find any info on CAM files in the manual. How do I create and set up a cam file to combine missions into a campaign?


  View Profile of Redshift      Edit/Delete This Post   Reply with quote
Moray


Joined: Dec 16, 2002
Posts: 43
From: Germany
Posted: 2003-01-03 03:21   
Here are the basics:

*******
STEP 1: Creating The Campaign File

Your first step in the process of creating a campaign is actually creating the campaign file. The best way to do this is to copy an existing campaign file from the Scenario directory. However, since this pack includes a blank campaign file, you're all ready to go.

Open the file "cam_name.cam" with Notepad or Wordpad. You'll see a setup similar to the one below:

[Name] Campaign Name
[Scenario] MyMission.mc xx
[Scenario] MyMission.mc xx
[Scenario] MyMission.mc xx
[Scenario] MyMission.mc xx
[Scenario] MyMission.mc xx
[Scenario] MyMission.mc xx

[Name] Campaign Name
This is the actual name of the campaign. However, I am unsure as to where in the game this name is used, because the name that appears on the campaign screen is whatever the name of the .cam file is.
[Scenario] MyMission.mc xx
This is an entry for a campaign mission. All that's needed here is the name of the mission file. The extension IS required (i.e. you must have the .mc behind the mission file name.

The "xx" text is actually a placeholder. When Sonalysts designed the campaign engine, they placed the names of the briefing/graphics files in the same spot as the "xx" text:
[Scenario] Halifax688.mc SeawolfHalifax.grp

The engine is designed to look for two entries, the mission (.mc) file and the graphics (.grp) file. Without this "xx" placeholder, the campaign engine will only list every other mission on the campaign screen, mistaking the next mission in line for a graphics file.

Now that you have a basic campaign file and you know the basics of how to set it up, we'll head to the next step, creating the campaign missions.


--------------------------------------------------------------------------------

STEP 2: Creating The Campaign Missions

Obviously, you know how to create missions if you're wanting to create your own campaign. However, you will need to know some basic stuff in order to create a campaign that is dynamic, and to make each mission depend on the player's performance in the last.

Make sure when you create a new mission, you select the "Campaign Mission" checkbox, which is located in the little screen that pops up and asks if you want to load the grid centered around lat xx-xx and long xx-xx.

The "hidden language" that Sonalysts used to create the canned missions is easily accessible to anyone. If you have not done so yet, you need to enable the Doctrine Language in the mission editor. Find out how to do this here.

Once you have enabled the doctrine language (hereafter referred to as the DL), you must learn how to use it. There is no definitive tutorial on the DL, but it is fairly easy to use and understand. A short Guide to Doctrine Language is included in this pack.


--------------------------------------------------------------------------------

STEP 3: Linking The Campaign Missions

Now, in order to make something in a mission dependent on something in the previous mission, you must use the DL. Of course, before you do this, you must have the previous mission completely built and ready to go. Under the "CompletedGoal" entry of the DL, there will be two spaces. The first space will allow you to select the mission in the campaign file whose goals you wish to use. The second space allows you to select the actual goals.

So, if I wanted to have "ShipGroup2" appear in the mission if the player destroys a certain ship in the last mission, then I would create a goal to make the ship group appear, then I would trigger it like this:

IF
-- CompletedGoal
----Mission1.mc
-----DestroyShip
THEN
GoalTriggered
This is the basic way to link campaign missions to one another. The possibilities are endless here..... you can have 3 different ship groups - one small, one medium, and one large - set up and only one would appear based on the player's performance in the last mission.


--------------------------------------------------------------------------------

STEP 4: Putting It All Together

Okay, so you've created and linked your missions and everything is ready. Now you'll set up the campaign file and put it all where it needs to go.

If you didn't select the "Campaign Mission" checkbox before you created your missions, then your missions will all be named like "MyMission.mu" If you need to rename all these files to campaign files, then click over to the Renaming Guide to learn how to do it quickly and easily.

Now, lets assume your campaign includes the following missions:

MyMission1.mc
MyMission2.mc
MyMission3.mc
MyMission4.mc
MyMission5.mc
And then you have the My Campaign.cam file.

So, you need to set up your My Campaign.cam file like this:
[Name] My Campaign
[Scenario] MyMission1.mc xx
[Scenario] MyMission2.mc xx
[Scenario] MyMission3.mc xx
[Scenario] MyMission4.mc xx
[Scenario] MyMission5.mc xx

Be sure that you name the .cam file the name you want to appear in Sub Command. If your .cam file is named "MyCampaign1234.cam" then on the Campaign Select screen, it will appear as MyCampaign1234. If your .cam file is named "My Campaign.cam", then the name that will appear is "My Campaign".

Now, place all of the files related to your campaign in your Scenario directory. Once you've done that, then you're campaign is ready to play!
******

Gruß,
Moray


  View Profile of Moray      Edit/Delete This Post   Reply with quote
Redshift


Joined: Nov 25, 2002
Posts: 97
Posted: 2003-01-03 05:00   
Thanx a HELLUVA lot, Moray1

  View Profile of Redshift      Edit/Delete This Post   Reply with quote
Moray


Joined: Dec 16, 2002
Posts: 43
From: Germany
Posted: 2003-01-03 05:06   
...I would like to see your Campaign

I only reposted this, it was on the Forum a few weeks ago. I don't know who did the original Document, but... Great work, whoever you are!


  View Profile of Moray      Edit/Delete This Post   Reply with quote
Kennebec


Joined: Feb 28, 2002
Posts: 1259
From: Virginia - USA
Posted: 2003-01-03 09:23   
Captain X made a file for creating campaigns (believe that might be his work above). It might be the same stuff as what is posted.

If you request it from him or want to send me your email I will send it to you.

You can either post your address ro send it to me in a private message.


  View Profile of Kennebec   Goto the website of Kennebec      Edit/Delete This Post   Reply with quote
BaronVonRed


Joined: Jan 03, 2003
Posts: 577
Posted: 2003-01-03 09:27   
(shouting from the bilge) HEY, IS THERE ANY WAY TO TACK THIS UP? VERY USEFUL!

  View Profile of BaronVonRed   Email BaronVonRed      Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.010695 seconds.