| 61 | == Distrubuting your mods == |
| 62 | |
| 63 | The pyrogenesis binary also has an archive builder, to compile your mod into a zip file and pre-cache your textures (so users don't see grey textures on the first run). The zip isn't compressed by default, but if your mod becomes big, and you don't compress it afterwards (i.e. to distribute with an autoinstaller exe), it's advised to compress your mod with the archive builder. |
| 64 | |
| 65 | The command line arguments to build the archive look as following: |
| 66 | |
| 67 | {{{ |
| 68 | binaries/system/pyrogenesis -archivebuild=binaries/data/mods/mymod -archivebuild-output=mymod.zip -archivebuild-compress |
| 69 | }}} |
| 70 | |
| 71 | 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. |
| 72 | |