Knowledge base

Curse Mod / Getting Started

Getting Started

You've got an awesome mod and now you want to allow millions of Curse Client users to install it without any hassles. For games where all the mods sit together in the same folder, we've created Curse Mod 2 (CMOD2) and a packaging tool built-in to the Curse Client to help make packaging your mods easy.

About Curse Mod 2

Curse Mod 2 (CMOD2) is a standard ZIP archive where the files inside are organized so they can be easily copied from the ZIP into the game's mod folder. In a non-CMOD2 ZIP you may have all your files in the root and use a readme file to desribe to the user where each file goes. CMOD2 allows you to strictly define where the file should go relative to the mod folder.

CMOD2 also lets users customize how the files will be installed using a simple scripting engine, powered by JavaScript. With the scripting engine you can modify parts of an XML file, copy optional files, and more.

Packaging Your Files

  1. To package your files, you'll need to download and install the Curse Client:
  2. Once installed and logged in, you should see a list of your installed games on the left. Select the game you want to package your mod for. For this example, we'll be using The Secret World.
  3. Select Tools > Create a Package
  4. Select "Create a Mod Package"

    Note: After you've created your first package, you can come back and open it when you have an update ready. This will let you swap out the updated files without recreating the entire package.

  5. If you already have a ZIP of your mod, you can click "Add Archive" to import everything you need. Otherwise, you can add files manually or add an entire folder.

    By default, your readme and some other files will be unchecked. This means they will be in the ZIP, but wont be copied into the game folder. This allows users who download the file without the Curse Client to still have the readme but not clutter up the game folder for those who do use the Curse Client.

    You may have noticed that for The Secret World, "*Prefs.xml" and "Modules.xml" are unchecked. This is because the user probably already has these files from other mods so we'll need to script this part. Leave the files in the package unchecked so non-Curse Client users can still use them.

  6. You should have all your files inside the list now. It probably looks something like this:

  7. Everything is at the root so far, but we need the .swf files to go inside of a folder. To do this, we simply select the file in the list and add the folder path to the begining of the file. For mine, I add "Flash\"

  8. Click Next to License Agreement
  9. You can provide a license agreement to the user if you want to emphasis copyright and usage terms. If you enter a license agreement, it'll be required for the user and they will be prompted when they install / updated the mod.
  10. Click Next to Scripting
  11. Because this is a TSW mod, we need to update 2 XML files, to do this will be using the "xmlCreateOrUpdate" API - This allows us to insert an XML element into an existing file. If the file doesn't exist, it'll create one for us.

    xmlCreateOrUpdate('CharPrefs.xml', '/Root', '<Value name="TSWRPCharacterViewer" value="true"/>');

    In the API, we're telling the Curse Client the file we want to create or update, the XPath of where the element will go, and finally the element string that will be inserted. We call this method for each element we wanted to add.
  12. Click Next and save your package. Tip: It's best to save the package as the same name as your mod - You can leave any version information out if you want.
  13. Now head on over to and upload your file like normal. Our team of moderators will need to approve the file before users can start installing it from the Curse Client.
  • Packager_Files.png
    Packager - Files
  • Packager_RelativePaths.png
    Packager - Relative Paths

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of susanfernando susanfernando May 19, 2015 at 10:49 UTC - 0 likes

    Excellent tutorial please you share more tutorial about windows 8 where I can all hard drive data delete and after backup my all data. captain america leather jacket

  • Avatar of SarahStewart732 SarahStewart732 May 09, 2015 at 13:44 UTC - 0 likes

    Now I got understood what you guys trying to fathom us.. it's tremendous post!

    usleatherfirm online store

  • Avatar of clashclans clashclans Apr 22, 2015 at 18:03 UTC - 0 likes

    This is usual now getting amazon gift card with out any problem and I am saying to all my friends for amazon gift card codes. I am enjoying my shopping at Amazon with the help of these amazon gift card codes and I am getting these codes with the help of amazon gift card codes generator. This is very easy format to attempt for amazon gift card codes.

  • Avatar of melissawilliam09 melissawilliam09 Apr 14, 2015 at 05:42 UTC - 0 likes

    This is usually a amazing blog, very nice efforts.. like the way you're.. SamishLeather Online Store

  • Avatar of noh1 noh1 Apr 06, 2015 at 16:01 UTC - 0 likes

    very cool wysiwyg editor nice

  • Avatar of mohanbhau mohanbhau Apr 01, 2015 at 08:53 UTC - 0 likes

    I have a very important question that I suppose that several others have questioned about:

  • Avatar of muktasir muktasir Mar 22, 2015 at 21:50 UTC - 0 likes
    Well getting that type of information written in such an ideal means? I've a venture that I am just now working on, and I've been at the look * benih * distributor pulsa
  • Avatar of Panzergefahr Panzergefahr Jan 30, 2015 at 20:12 UTC - 0 likes

    I have an important question which I suppose that many others have wondered about:

    It stands that file paths are relative to B:\World_of_Tanks_\res_mods\0.9.5 but what if I want to add files in a folder outside 0.9.5? I find it very confusing and frustrating to not be able to chose the games main folder as the root for my mod. Please tell me how if its possible?

  • Avatar of rickyfernandis64 rickyfernandis64 Jan 23, 2015 at 08:48 UTC - 0 likes

    nice one

  • Avatar of tyggyr tyggyr Oct 31, 2013 at 21:53 UTC - 0 likes

    I'm seeing this as an option under the client for WoTanks, but not when I have WoWarcraft selected - is this proper?



Date created
Jul 20, 2012
Last updated
Sep 11, 2013