Skip to content

Package

Pete Goodfellow edited this page Jul 11, 2018 · 4 revisions

A package corresponds to one mod archive. It includes a download URL for the mod, author information, and options to tell MW Installer how the archive should be installed.

Packages are simple text files. By convention they should end with a .json extension.

Properties

name
The name of the mod. As the archive name isn't always obvious, the name is manually specified instead.
author
The mod author(s).
fileURL
A link to the archive. This can either point to a static URL (example.com/mymod.zip), or a Nexus API link to download mods from the Nexus.
filterWhitelist OPTIONAL
A C# regex string. If defined, only files (full path, including directory, file name and extension) that contain a match for the regex will be installed. Case-insensitive.
fileBlacklist OPTIONAL
An array of strings. If any of these are contained in a given filename, that file will be excluded from installation. Case-insensitive.
folderBlacklist OPTIONAL
An array of strings. The same as fileBlacklist except it checks the full path (including directories) of each file. Case-insensitive.
specialExtract OPTIONAL
A linked list of strings. The keys correspond to files in the archive (starting from the archive root), while the values are where they will be extracted inside the player's Morrowind folder. Case-insensitive.

Example: mage_robes.json

{
    "name": "Mage Robes",
    "author": "Melchior Dahrk",
    "fileURL": "https://api.nexusmods.com/v1/games/morrowind/mods/45739/1000010943",
    "directoryBlacklist":
    [
        "Patches",
        "Add-Ons"
    ],
    "specialExtract":
    {
        "Patches/Vanilla-Style Robe Enchantments/Mage Robes_Weak.ESP": "Data Files/Mage Robes_Weak.ESP"
    }
}
Clone this wiki locally