Creating a Campaign

By Kumar Shah
published 8/24/03

1.) Open a new file in Notepad.

2.) Copy the following code in the first line

<?xml version="1.0" encoding="UTF-8" ?>

3.) After You have done that, starts the main campaign coding.

Put in the lines :

<campaign name="Your campaign name" version="1" >

Note :

  • In the ES campaigns these appear inbetween the signs $$ and some numbers, that is like <campaign name=”$$20623$$Fall of the Trident” version=”1″>. There is no need of that stuff.
  • Put in the version as your version of the campaign, 1,2,3, etc.

4.) Now each tag that opens in here has a closing tag. <campaign> is an open tag the closing tag being </campaign>. Put in the line :

</campaign>

after the opening campaign tag.

All the scenario specifications will come under there two campaign tags.

5.) Scenario Addition

Scenarios like campaigns have the same opening and closing tags. A default scenario tag looks like :

<Scenario dispName="Name of Scenario" filename="name of scn">Text you want to describe the scenario </Scenario>

(Remember this will be after the opening campaign tag and before closing campaign tag)

Add in this way more scenarios you want…by end your campaign should look something like.


<?xml version="1.0" encoding="UTF-8"?>
<campaign name="My first campaign" version="1">
<Scenario dispName="Nameofscenario" filename="filename">Text description
</Scenario>
<Scenario dispName="Second scn name" filename="second">And pretty easy to do too.
</Scenario>
</campaign>

6.) Saving

After you have coded the campaign totally comes saving it. Using notepad you will have to save it as :

a.) You will write the campaign file name between quotes i.e. “campaignname.cpn”

b.) Save as type – change it from .txt file to – All Files

c.) Change Emcoding to UTF-8

Next time u run AoM you will be able to play the campaign and AoM will create the XMB file.

Even though you have a campaign file created you will still need to submit your .scn files for the downloads.

Thanks to Matei for posting the way to make the campaigns and inputs on the article.

Back to Advanced Section