Tutorial for making a campaign file

Please post here for questions and discussion about scenario design and modding.
Post Reply
User avatar
Ronald Wendt
Posts: 1880
Joined: Mon Jun 08, 2009 6:09 am
Contact:

Tutorial for making a campaign file

Post by Ronald Wendt »

Hello,

in this tutorial i will explain how to edit a .cmp file and tell you what is what. For that we have a look at the campaign file of the German Operation Barbarossa.

You need a text editor like the Windows notepad for this.

1. This is the header of the campaign file:

[general]
name=2 - Operation Barbarossa - Germany
nation=Germany
number=9
start=1

Fine, but what does it mean ?

[general]

->tells the game which kind of information follows, here the general info about the campaign.


name=2 - Operation Barbarossa - Germany

->name of the campaign.


nation=Germany

-> which side, it tells the game which side your core units are on. It may contain any of the included nations:

Germany
Russia
Romania
Yugolsavia
Benelux (Belgium/Netherlands/Luxembourg)
Czechoslovakia

At this point i recommend using Germany and Russia only, as the other nations simply lack the needed material so far.

number=9

Number of scenarios in the campaign, can be 100, too [;)]

start=1

The first scneario to be loaded, in this case number 1, but you could start anywhere (though this makes little sense as long as things are linear).


2. Now we have a look at the scenario information:

[scenario]
filename=Bialystok
number=1
next=2

And this is what it means:

[scenario]

The game is informed that scenario infos follow

filename=Bialystok

The exact filename of the map that is used to load it. Keep in mind the game adds .scn itself. Wrong filenames will of course lead to errors so have an eye on those.

number=1

Tells the game which number this scenario is. Important when its addressed to follow up another one or start the campaign.

next=2

The scenaro with number=2 will follow after this map was won by the player.

If the last number in the campaign is reached, the game will return to the main menu.

I hope this helps you to do your own campaigns. You can start with rearranging the deliverd campaigns to get into this (e.g. make it shorter or add a map after Moscow).

Have fun !
vonRocko
Posts: 1451
Joined: Tue Nov 04, 2008 12:05 pm

RE: Tutorial for making a campaign file

Post by vonRocko »

Thanks Ron for the instructions. But i just play games,I don't know what makes them tick. Is there any chance you guys will make a "campaign pack" that has several well designed and linear campaigns made? I would buy it.
Thank you
User avatar
Ronald Wendt
Posts: 1880
Joined: Mon Jun 08, 2009 6:09 am
Contact:

RE: Tutorial for making a campaign file

Post by Ronald Wendt »

Hello,
ORIGINAL: vonRocko

Thanks Ron for the instructions. But i just play games,I don't know what makes them tick. Is there any chance you guys will make a "campaign pack" that has several well designed and linear campaigns made? I would buy it.
Thank you
You are welcome. At the moment there is no stalwart plan doing such a campaign pack, which does not necessarily mean we won't make one though.

There are plenty of battles that still are longing to be created [;)]
Post Reply

Return to “Scenario Design and Modding”