Changes between Version 28 and Version 29 of Modding_Guide
- Timestamp:
- Apr 18, 2018, 2:07:44 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Modding_Guide
v28 v29 17 17 == Where are the mods? == 18 18 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` filefor compression and ease of distribution.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 `.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. 20 20 21 21 See 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 25 You 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 27 For those preferring the command line, that operation is equivalent to running 28 {{{ 29 #!sh 30 pyrogenesis modfile.pyromod 31 # or 32 pyrogenesis modfile.zip 33 }}} 34 35 You will then land in the mod selection screen, described in the next section. 22 36 23 37 == How are mods used? == … … 103 117 {{{ 104 118 #!sh 105 binaries/system/pyrogenesis -mod=mod -archivebuild=binaries/data/mods/mymod -archivebuild-output=mymod. zip-archivebuild-compress119 binaries/system/pyrogenesis -mod=mod -archivebuild=binaries/data/mods/mymod -archivebuild-output=mymod.pyromod -archivebuild-compress 106 120 }}} 107 121 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.122 This 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]. 109 123 110 124 == Tutorials ==