mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
Updated map object and bonuses documentations
This commit is contained in:
@@ -3,57 +3,76 @@
|
||||
## Fields with description of mod
|
||||
|
||||
``` javascript
|
||||
|
||||
{
|
||||
// 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",
|
||||
// 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",
|
||||
// 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",
|
||||
// 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",
|
||||
// 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/",
|
||||
// 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",
|
||||
|
||||
// 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", "Sounds", "Skills", "Other", "Objects",
|
||||
// "Mechanics", "Interface", "Heroes", "Graphical", "Expansion", "Creatures", "Artifacts", "AI"
|
||||
"modType" : "Graphical",
|
||||
// Type of mod, list of all possible values:
|
||||
// "Translation", "Town", "Test", "Templates", "Spells", "Music", "Sounds", "Skills", "Other", "Objects",
|
||||
// "Mechanics", "Interface", "Heroes", "Graphical", "Expansion", "Creatures", "Artifacts", "AI"
|
||||
"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 that are required to run this one
|
||||
"depends" :
|
||||
[
|
||||
"baseMod"
|
||||
],
|
||||
|
||||
// List of mods that can't be enabled in the same time as this one
|
||||
"conflicts" :
|
||||
[
|
||||
"badMod"
|
||||
],
|
||||
// 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" ]
|
||||
},
|
||||
//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
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -64,71 +83,98 @@ These are fields that are present only in local mod.json file
|
||||
``` javascript
|
||||
|
||||
{
|
||||
// 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) and, if applicable, add separate file
|
||||
// with translatable strings for each type of content
|
||||
// See "additional links" at the bottom of page for descriptions of each of these formats
|
||||
// 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) and, if applicable, add separate file
|
||||
// with translatable strings for each type of content
|
||||
|
||||
// list of factions/towns configuration files
|
||||
"factions" :
|
||||
[
|
||||
"config/myMod/faction.json"
|
||||
]
|
||||
// list of factions/towns configuration files
|
||||
"factions" :
|
||||
[
|
||||
"config/myMod/faction.json"
|
||||
]
|
||||
|
||||
// List of hero classes configuration files
|
||||
"heroClasses" :
|
||||
[
|
||||
"config/myMod/heroClasses.json"
|
||||
],
|
||||
// List of hero classes configuration files
|
||||
"heroClasses" :
|
||||
[
|
||||
"config/myMod/heroClasses.json"
|
||||
],
|
||||
|
||||
// List of heroes configuration files
|
||||
"heroes" :
|
||||
[
|
||||
"config/myMod/heroes.json"
|
||||
],
|
||||
// List of heroes configuration files
|
||||
"heroes" :
|
||||
[
|
||||
"config/myMod/heroes.json"
|
||||
],
|
||||
|
||||
// List of configuration files for skills
|
||||
skills
|
||||
|
||||
// list of creature configuration files
|
||||
"creatures" :
|
||||
[
|
||||
"config/myMod/creatures.json"
|
||||
],
|
||||
// list of creature configuration files
|
||||
"creatures" :
|
||||
[
|
||||
"config/myMod/creatures.json"
|
||||
],
|
||||
|
||||
// List of artifacts configuration files
|
||||
"artifacts" :
|
||||
[
|
||||
"config/myMod/artifacts.json"
|
||||
],
|
||||
// List of artifacts configuration files
|
||||
"artifacts" :
|
||||
[
|
||||
"config/myMod/artifacts.json"
|
||||
],
|
||||
|
||||
// List of objects defined in this mod
|
||||
"objects" :
|
||||
[
|
||||
"config/myMod/objects.json"
|
||||
],
|
||||
// List of objects defined in this mod
|
||||
"objects" :
|
||||
[
|
||||
"config/myMod/objects.json"
|
||||
],
|
||||
|
||||
// List of spells defined in this mod
|
||||
"spells" :
|
||||
[
|
||||
"config/myMod/spells.json"
|
||||
],
|
||||
// List of spells defined in this mod
|
||||
"spells" :
|
||||
[
|
||||
"config/myMod/spells.json"
|
||||
],
|
||||
|
||||
// List of configuration files for terrains
|
||||
"terrains" :
|
||||
[
|
||||
"config/myMod/terrains.json"
|
||||
],
|
||||
|
||||
// List of configuration files for roads
|
||||
"roads" :
|
||||
[
|
||||
"config/myMod/roads.json"
|
||||
],
|
||||
|
||||
// List of configuration files for rivers
|
||||
"rivers" :
|
||||
[
|
||||
"config/myMod/rivers.json"
|
||||
],
|
||||
|
||||
// List of configuration files for battlefields
|
||||
"battlefields" :
|
||||
[
|
||||
"config/myMod/battlefields.json"
|
||||
],
|
||||
|
||||
// List of configuration files for obstacles
|
||||
"obstacles" :
|
||||
[
|
||||
"config/myMod/obstacles.json"
|
||||
],
|
||||
|
||||
// List of RMG templates defined in this mod
|
||||
"templates" :
|
||||
[
|
||||
"config/myMod/templates.json"
|
||||
],
|
||||
|
||||
// Optional, description on how files are organized in your mod
|
||||
// In most cases you do not need to use this field
|
||||
// Needed mostly to port any existing mods to vcmi (e.g. WoG distributed with Era)
|
||||
// Example below is default value, which is "Content" directory that acts as H3 root directory
|
||||
"filesystem":
|
||||
{
|
||||
"":
|
||||
[
|
||||
{"type" : "dir", "path" : "/Content"}
|
||||
]
|
||||
}
|
||||
// List of RMG templates defined in this mod
|
||||
"templates" :
|
||||
[
|
||||
"config/myMod/templates.json"
|
||||
],
|
||||
|
||||
// Optional, primaly used by translation mods
|
||||
// Defines strings that are translated by mod into base language specified in "language" field
|
||||
"translations" :
|
||||
[
|
||||
"config/myMod/englishStrings.json
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user