Skip to content

Upgrading campaigns from Version 1 (pre Alpha 11) to Version 2 (post Alpha 11)

kromster80 edited this page Nov 25, 2022 · 3 revisions

To upgrade the campaign description to version #2 you will need to open the campaigns XML file (info.xml) with a Notepad or alike simple text editor and do the following changes:

  • Add the Version="2" attribute to the main XML section like so:
    <Campaign GUID="{492ABDA8-7190-45D4-8A82-E77A2286500B}" Version="2">

  • Add Chapters section to the xml like so:

    <Chapters>
      <id0 Background="background1.png" Title="32" ShortTitle="30"/>
    </Chapters>

Title and ShortTitle are references to text lines from libx.

  • Wrap mission lines into Missions section in the XML like so:
    <Missions>
      <id0 Chapter="0" FlagX="417" FlagY="641" Folder="1_Citizens" Title="10" Briefing="17"/>
      <id1 Chapter="0" FlagX="617" FlagY="547" Folder="2_Basics" Title="11" Briefing="18"/>
    </Missions>

Chapter is the reference to the Chapter section above. Title and Briefing are references to text lines from libx.

In the end you should have info.xml looking like the stock one (e.g. \campaigns\Introduction\info.xml)