Changes between Version 18 and Version 19 of Modding_Guide


Ignore:
Timestamp:
Dec 12, 2015, 12:46:14 AM (8 years ago)
Author:
leper
Comment:

Add information about mod.json files.

Legend:

Unmodified
Added
Removed
Modified
  • Modding_Guide

    v18 v19  
    6363Additionally, if you want to mod the latest greatest version of the game, you might consider getting the latest data from SVN. For Windows users we provide a precompiled version of the game in SVN, so programming/compiling knowledge is not required. Still you will be expected to have a working knowledge of Windows, file management, and basic troubleshooting. See the [wiki:BuildInstructions build instructions] for details on acquiring the latest version of the game for your OS.
    6464
     65== How to make your mod show up in the mod selection screen ==
     66
     67You need to add a `mod.json` file to your mod folder. See the public (0 A.D.) mod's [source:ps/trunk/binaries/data/mods/public/mod.json mod.json] file for a real world example of an standalone mod.
     68
     69The following is a (nearly minimal) sample:
     70{{{
     71{
     72    name: "samplemod",
     73    version: "1.2.34",
     74    label: "Sample Mod",
     75    description: "This is an example discription",
     76    dependencies: ["0ad=0.0.19"]
     77}
     78}}}
     79
     80There are also the `url` and `type` properties which are optional. `name` must be unique and must not contain whitespace. `dependencies` is an array that contains the `name` of mods it depends on, optionally with version constraints (<,<=,==,>=,>) and the versions of the dependency.
     81
     82For details of how the dependency checking is done please read the function comments in [source:ps/trunk/binaries/data/mods/mod/gui/modmod/modmod.js modmod.js].
     83
    6584== Distributing your mods ==
    6685