Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Unlock all campaigns chapters through code - A Tutorial for Wargus

Hi everyone.

In this tutorial I will explain how to unlock the chapters from the campaigns with a simple change of values through code.

For this tutorial, I consider that you have installed the non-portable edition of the game.

1. What to do?

After you have installed wargus it is necessary that at least you play just for a few seconds the first chapter of each campaign. Doing so, the game saves some configuration data related to the campaigns inside a file called preferences.lua.

This file is saved inside a folder named, in general, wc2 which is placed in the hidden folder of Stratagus in your local drive, usually on Linux is in /home/username/.stratagus/wc2/.
Once you have found the file open it with any text editor and you have to simply change a numeric value that is contained in a specific variable called wc2.preferences.CampaignProgress.

This variable contains the reference to the campaign which is is written like this: "scripts/faction/campaignX.lua"

Where faction can be:

  • human: It's the reference to the Alliance campaign.
  • orc: It's the reference to the Horde campaign.

While the X basically can be 1 or 2 where:

  1. Refers to the Tides of Darkness campaign. In this case the numeric value on the right should be 14 for unlocking all chapters.
  2. Refers to the Beyond the Dark Portal campaign. In this case the numeric value on the right should be 12 for unlocking all chapters.

With this change all campaigns chapters are available directly in the campaign menu.

No comments yet