1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231
|
# Mod File Format
## Fields with description of mod
```json
{
// Name of your mod. While it does not have hard length limit
// it should not be longer than ~30 symbols to fit into allowed space
"name" : "My test mod",
// More lengthy description of mod. No hard limit. This text will be visible in launcher.
// This field can use small subset of HTML, see link at the bottom of this page.
"description" : "My test mod that add a lot of useless stuff into the game",
// Author of mod. Can be nickname, real name or name of team
"author" : "Anonymous",
// Full name of license used by mod. Should be set only if you're author of mod
// or received permission to use such license from original author
"licenseName" : "Creative Commons Attribution-ShareAlike",
// URL which user can use to see license terms and text
"licenseURL" : "https://creativecommons.org/licenses/by-sa/4.0/",
// Home page of mod or link to forum thread to contact the author
"contact" : "http://example.com",
// Current mod version, up to 3 numbers, dot-separated. Format: A.B.C
"version" : "1.2.3"
// Type of mod, list of all possible values:
// "Translation", "Town", "Test", "Templates", "Spells", "Music", "Maps", "Sounds", "Skills", "Other", "Objects",
// "Mechanics", "Interface", "Heroes", "Graphical", "Expansion", "Creatures", "Compatibility", "Artifacts", "AI"
//
// Some mod types have additional effects on your mod:
// Translation: mod of this type is only active if player uses base language of this mod. See "language" property.
// Additionally, if such type is used for submod it will be hidden in UI and automatically activated if player uses base language of this mod. This allows to provide locale-specific resources for a mod
// Compatibility: mods of this type are hidden in UI and will be automatically activated if all mod dependencies are active. Intended to be used to provide compatibility patches between mods
"modType" : "Graphical",
// Base language of the mod, before applying localizations. By default vcmi assumes English
// This property is mostly needed for translation mods only
"language" : "english"
// List of mods that are required to run this one
"depends" :
[
"baseMod"
],
// List of mods if they are enabled, should be loaded before this one. This mod will overwrite any conflicting items from its soft dependency mods.
"softDepends" :
[
"baseMod"
],
// List of mods that can't be enabled in the same time as this one
"conflicts" :
[
"badMod"
],
// Supported versions of vcmi engine
"compatibility" : {
"min" : "1.2.0"
"max" : "1.3.0"
}
//List of changes/new features in each version
"changelog" :
{
"1.0" : [ "initial release" ],
"1.0.1" : [ "change 1", "change 2" ],
"1.1" : [ "change 3", "change 4" ]
},
// If set to true, mod will not be enabled automatically on install
"keepDisabled" : false
// List of game settings changed by a mod. See <VCMI Install>/config/gameConfig.json for reference
"settings" : {
"combat" : {
"goodLuckDice" : [] // disable luck
}
}
}
```
## Fields with description of mod content
These are fields that are present only in local mod.json file
```json
{
// Following section describes configuration files with content added by mod
// It can be split into several files in any way you want but recommended organization is
// to keep one file per object (creature/hero/etc)
// Alternatively, for small changes you can embed changes to content directly in here, e.g.
// "creatures" : { "core:imp" : { "health" : 5 }}
// list of factions/towns configuration files
"factions" :
[
"config/faction.json"
]
// List of hero classes configuration files
"heroClasses" :
[
"config/heroClasses.json"
],
// List of heroes configuration files
"heroes" :
[
"config/heroes.json"
],
// List of configuration files for skills
skills
// list of creature configuration files
"creatures" :
[
"config/creatures.json"
],
// List of artifacts configuration files
"artifacts" :
[
"config/artifacts.json"
],
// List of objects defined in this mod
"objects" :
[
"config/objects.json"
],
// List of spells defined in this mod
"spells" :
[
"config/spells.json"
],
// List of configuration files for terrains
"terrains" :
[
"config/terrains.json"
],
// List of configuration files for roads
"roads" :
[
"config/roads.json"
],
// List of configuration files for rivers
"rivers" :
[
"config/rivers.json"
],
// List of configuration files for battlefields
"battlefields" :
[
"config/battlefields.json"
],
// List of configuration files for obstacles
"obstacles" :
[
"config/obstacles.json"
],
// List of RMG templates defined in this mod
"templates" :
[
"config/templates.json"
],
// Optional, primaly used by translation mods
// Defines strings that are translated by mod into base language specified in "language" field
"translations" :
[
"config/englishStrings.json
]
}
```
## Translation fields
In addition to field listed above, it is possible to add following block for any language supported by VCMI. If such block is present, Launcher will use this information for displaying translated mod information and game will use provided json files to translate mod to specified language.
See [Translations](../translators/Translations.md) for more information
```json
"<language>" : {
"name" : "<translated name>",
"description" : "<translated description>",
"author" : "<translated author>",
"translations" : [
"config/<language>.json"
]
},
```
## Mod repository fields
These are fields that are present only in remote repository and are generally not used in mod.json
```json
{
// URL to mod.json that describes this mod
"mod" : "https://raw.githubusercontent.com/vcmi-mods/vcmi-extras/vcmi-1.4/mod.json",
// URL that player can use to download mod
"download" : "https://github.com/vcmi-mods/vcmi-extras/archive/refs/heads/vcmi-1.4.zip",
// Approximate size of download, megabytes
"downloadSize" : 4.496
}
```
## Notes
For mod description it is possible to use certain subset of HTML as
described here:
<https://doc.qt.io/qt-6/richtext-html-subset.html>
|