Modding:Mod Packaging: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 34: Line 34:
The file <code>modicon.png</code> (if it exists) will be used and shown in the mod manager menu.
The file <code>modicon.png</code> (if it exists) will be used and shown in the mod manager menu.


[[File:ThemePack Icon.png]]
[[File:Example Mod.png]]


== Distribution ==
== Distribution ==


Feel free to share your creation in our [https://www.vintagestory.at/forums/forum/17-modifications/ forums]. We would love to see what you come up with.
Feel free to share your creation in our [https://www.vintagestory.at/forums/forum/17-modifications/ forums]. We would love to see what you come up with.

Revision as of 10:17, 8 February 2018

Info file

Every zip-file mod requires a modinfo.json inside the root directory of the archive. Otherwise the entire mod will be ignored. This info file specifies what kind of me it is, its name, author, etc.

An example of a theme pack info file (modinfo.json):

{
  "type": "content",
  "name": "My Example Content Mod",
  "description" : "This is an example mod, which does nothing",
  "author": "CreativeMD",
  "version": "1.0",
  "gameversions": [ "1.5.0.3+" ],
  "website": "http://example.com"
}

  "type": "theme",

Defines this mod as being a ContentMod. Therefore it cannot any scripts or mod classes (it might contain some, but this will be ignored).

  "gameversions": [ "1.5.0.3+" ],

Means it requires at least VintageStory v1.5.0.3 or a newer version.

Icon

The file modicon.png (if it exists) will be used and shown in the mod manager menu.

Example Mod.png

Distribution

Feel free to share your creation in our forums. We would love to see what you come up with.