Changes between Version 28 and Version 29 of Modding_Guide


Ignore:
Timestamp:
Apr 18, 2018, 2:07:44 PM (6 years ago)
Author:
Itms
Comment:

Updated guide after r21723

Legend:

Unmodified
Added
Removed
Modified
  • Modding_Guide

    v28 v29  
    1717== Where are the mods? ==
    1818
    19 Mods are located in the game's installation directory (or relative to checkout for SVN users). Typically mods are located in `binaries/data/mods/`, but you can also add them to the mods (data) directory as noted in GameDataPaths. A mod is defined by a folder inside the `mods` directory with the relevant files inside of it. Files are expected in certain locations, so a mod should follow the same structure as the `public` mod included with the game. Mods can be archived into a `.zip` file for compression and ease of distribution.
     19Mods are located in the game's installation directory (or relative to checkout for SVN users). Typically mods are located in `binaries/data/mods/`, but you can also add them to the mods (data) directory as noted in GameDataPaths. A mod is defined by a folder inside the `mods` directory with the relevant files inside of it. Files are expected in certain locations, so a mod should follow the same structure as the `public` mod included with the game. Mods can be archived into a `.pyromod` file (which is actually a `.zip` file, with a specific extension to associate it with 0 A.D.) for compression and ease of distribution.
    2020
    2121See the [wiki:Mod_Layout mod layout] or [wiki:Finding_Your_Way_Around Finding Your Way Around] pages for more details.
     22
     23== How to install mods? ==
     24
     25You can of course place mods manually into the locations listed above. However, mod files can be directly opened with 0 A.D., which copies the data to those locations automatically. `.pyromod` files should be associated with 0 A.D. depending on your operating system, but you can also install `.zip` files that way: right-click on them and open them with 0 A.D.
     26
     27For those preferring the command line, that operation is equivalent to running
     28{{{
     29#!sh
     30pyrogenesis modfile.pyromod
     31# or
     32pyrogenesis modfile.zip
     33}}}
     34
     35You will then land in the mod selection screen, described in the next section.
    2236
    2337== How are mods used? ==
     
    103117{{{
    104118#!sh
    105 binaries/system/pyrogenesis -mod=mod -archivebuild=binaries/data/mods/mymod -archivebuild-output=mymod.zip -archivebuild-compress
     119binaries/system/pyrogenesis -mod=mod -archivebuild=binaries/data/mods/mymod -archivebuild-output=mymod.pyromod -archivebuild-compress
    106120}}}
    107121
    108 This produces the distributable mymod.zip in your working directory. If users now install it like the distributed public mod (i.e. under mods/mymod/mymod.zip), they can run it with the "-mod=mymod" command line argument as explained above.
     122This produces the distributable mymod.pyromod in your working directory. If users now install it as explained [#Howtoinstallmods above], they can run it with the "-mod=mymod" command line argument as explained [#Howaremodsused above].
    109123
    110124== Tutorials ==