2013-04-02 20:06:43 +03:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI mod file format",
|
|
|
|
"description" : "Format used to define main mod file (mod.json) in VCMI",
|
2013-08-20 22:32:21 +03:00
|
|
|
"required" : [ "name", "description", "version", "author", "contact", "modType" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties":{
|
2013-04-02 20:06:43 +03:00
|
|
|
"name": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Short name of your mod. No more than 2-3 words"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "More lengthy description of mod. No hard limit"
|
|
|
|
},
|
|
|
|
|
2013-08-19 14:50:53 +03:00
|
|
|
"modType" : {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Type of mod, e.g. Town, Artifacts, Graphical."
|
|
|
|
},
|
|
|
|
|
|
|
|
"version" : {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Current mod version, up to 3 numbers, dot-separated. Format: A.B.C"
|
|
|
|
},
|
|
|
|
|
|
|
|
"author" : {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Author of the mod. Can be nickname, real name or name of team"
|
|
|
|
},
|
|
|
|
|
2013-08-20 13:47:40 +03:00
|
|
|
"contact" : {
|
2013-08-19 14:50:53 +03:00
|
|
|
"type":"string",
|
|
|
|
"description": "Home page of mod or link to forum thread"
|
|
|
|
},
|
|
|
|
|
2013-04-02 20:06:43 +03:00
|
|
|
"depends": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of mods that are required to run this one",
|
|
|
|
"items": { "type":"string" }
|
|
|
|
},
|
|
|
|
"conflicts": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of mods that can't be enabled in the same time as this one",
|
|
|
|
"items": { "type":"string" }
|
|
|
|
},
|
|
|
|
|
|
|
|
"artifacts": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of configuration files for artifacts",
|
2013-10-26 22:33:34 +03:00
|
|
|
"items": { "type":"string", "format" : "textFile" }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"creatures": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of configuration files for creatures",
|
2013-10-26 22:33:34 +03:00
|
|
|
"items": { "type":"string", "format" : "textFile" }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"factions": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of configuration files for towns/factions",
|
2013-10-26 22:33:34 +03:00
|
|
|
"items": { "type":"string", "format" : "textFile" }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"heroClasses": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of configuration files for hero classes",
|
2013-10-26 22:33:34 +03:00
|
|
|
"items": { "type":"string", "format" : "textFile" }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"heroes": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of configuration files for heroes",
|
2013-10-26 22:33:34 +03:00
|
|
|
"items": { "type":"string", "format" : "textFile" }
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
"filesystem": {
|
|
|
|
"type":"object",
|
|
|
|
"description": "Optional, description on how files are organized in your mod. In most cases you do not need to use this field",
|
|
|
|
"additionalProperties":{
|
|
|
|
"type":"array",
|
|
|
|
"description" : "list of data sources attached to this mount point",
|
|
|
|
"items": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties":{
|
|
|
|
"path": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Path to data source"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type" : "string",
|
2013-08-19 14:50:53 +03:00
|
|
|
"enum" : [ "dir", "lod", "snd", "vid", "map", "zip" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"description" : "Type of data source"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|