mod.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. {
  2. "type":"object",
  3. "$schema": "http://json-schema.org/draft-04/schema",
  4. "title" : "VCMI mod file format",
  5. "description" : "Format used to define main mod file (mod.json) in VCMI",
  6. "required" : [ "name", "description", "version", "author", "contact", "modType" ],
  7. "additionalProperties" : false,
  8. "properties":{
  9. "name": {
  10. "type":"string",
  11. "description": "Short name of your mod. No more than 2-3 words"
  12. },
  13. "description": {
  14. "type":"string",
  15. "description": "More lengthy description of mod. No hard limit"
  16. },
  17. "modType" : {
  18. "type":"string",
  19. "description": "Type of mod, e.g. Town, Artifacts, Graphical."
  20. },
  21. "version" : {
  22. "type":"string",
  23. "description": "Current mod version, up to 3 numbers, dot-separated. Format: A.B.C"
  24. },
  25. "author" : {
  26. "type":"string",
  27. "description": "Author of the mod. Can be nickname, real name or name of team"
  28. },
  29. "licenseName" : {
  30. "type":"string",
  31. "description": "Name of the license, recommended is Creative Commons Attribution-ShareAlike"
  32. },
  33. "licenseURL" : {
  34. "type":"string",
  35. "description": "Url to license text, e.g. http://creativecommons.org/licenses/by-sa/4.0/deed"
  36. },
  37. "contact" : {
  38. "type":"string",
  39. "description": "Home page of mod or link to forum thread"
  40. },
  41. "depends": {
  42. "type":"array",
  43. "description": "List of mods that are required to run this one",
  44. "items": { "type":"string" }
  45. },
  46. "conflicts": {
  47. "type":"array",
  48. "description": "List of mods that can't be enabled in the same time as this one",
  49. "items": { "type":"string" }
  50. },
  51. "keepDisabled" : {
  52. "type":"boolean",
  53. "description": "If set to true, mod will not be enabled automatically on install"
  54. },
  55. "artifacts": {
  56. "type":"array",
  57. "description": "List of configuration files for artifacts",
  58. "items": { "type":"string", "format" : "textFile" }
  59. },
  60. "creatures": {
  61. "type":"array",
  62. "description": "List of configuration files for creatures",
  63. "items": { "type":"string", "format" : "textFile" }
  64. },
  65. "factions": {
  66. "type":"array",
  67. "description": "List of configuration files for towns/factions",
  68. "items": { "type":"string", "format" : "textFile" }
  69. },
  70. "heroClasses": {
  71. "type":"array",
  72. "description": "List of configuration files for hero classes",
  73. "items": { "type":"string", "format" : "textFile" }
  74. },
  75. "heroes": {
  76. "type":"array",
  77. "description": "List of configuration files for heroes",
  78. "items": { "type":"string", "format" : "textFile" }
  79. },
  80. "objects": {
  81. "type":"array",
  82. "description": "List of configuration files for objects",
  83. "items": { "type":"string", "format" : "textFile" }
  84. },
  85. "scripts": {
  86. "type":"array",
  87. "description": "List of configuration files for scripts",
  88. "items": { "type":"string", "format" : "textFile" }
  89. },
  90. "spells": {
  91. "type":"array",
  92. "description": "List of configuration files for spells",
  93. "items": { "type":"string", "format" : "textFile" }
  94. },
  95. "skills": {
  96. "type":"array",
  97. "description": "List of configuration files for skills",
  98. "items": { "type":"string", "format" : "textFile" }
  99. },
  100. "templates":{
  101. "type":"array",
  102. "description": "List of configuration files for RMG templates",
  103. "items": { "type":"string", "format" : "textFile" }
  104. },
  105. "changelog" : {
  106. "type":"object",
  107. "description": "List of changes/new features in each version",
  108. "additionalProperties" : {
  109. "type" : "array",
  110. "items" : { "type":"string" }
  111. }
  112. },
  113. "filesystem": {
  114. "type":"object",
  115. "description": "Optional, description on how files are organized in your mod. In most cases you do not need to use this field",
  116. "additionalProperties":{
  117. "type":"array",
  118. "description" : "list of data sources attached to this mount point",
  119. "items": {
  120. "type":"object",
  121. "additionalProperties" : false,
  122. "properties":{
  123. "path": {
  124. "type":"string",
  125. "description": "Path to data source"
  126. },
  127. "type": {
  128. "type" : "string",
  129. "enum" : [ "dir", "lod", "snd", "vid", "map", "zip" ],
  130. "description" : "Type of data source"
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. }