This page provides information about creating mods for the 1.19+ version of the game.
With the new mod manager we introduce packages. Packages can be:
We recommend using normal directories for development of the mod and using zip archives for mod release, to make mod size smaller and more handy for end-user (on file vs. directory full of files). Inside the package you can define manifest file containing meta data about the mod. Meta data are used by mod manager to display your mod to the user. You can specify description, icon image and much more.
To set all meta data information you will need to create "manifest.sii" containing "mod_package" unit definition file in your mod package. Example "manifest.sii" file:
SiiNunit { # ".package_name" does not matter as the dot at the beginning of the file means that this unit is anonymous. # Please keep this form to not make any conflicts with other mod packages (name collisions). mod_package : .package_name { # Package version can be any string with any length. package_version: "1.0 Release 3" # Display name can be any string with any length. display_name: "My mod" # Author can be any string with any length. author: "My Nick" # Categories is an array of strings. category[]: "ui" category[]: "truck" # Icon inside the root directory of the mod. icon: "mod_icon.jpg" # Description file inside the root directory of the mod. description_file: "mod_description.txt" # compatible_versions[]: "1.19.*" # Mod is compatible with 1.19.X.. } }
NOTE:
We do not limit attributes by length but some places where those meta data are displayed have limited space. To avoid problems we perform cutting of the values to fit the UI. Cutting will simply cut the string at some point and add ".." at the end of the string to mention that there is more content but it does not fit there.
compatible_versions[]: "1.19.*"This means that the mod is compatible with all "1.19.x" versions, e.g. all patches with number starting with 1.19 are compatible. Examples in the table show compatible game versions for the string "1.19.*":
Version | Compatible? |
---|---|
1.18.1 | no |
1.19.1 | yes |
1.19.1.3 | yes |
1.19.4 | yes |
1.20.4 | no |
compatible_versions[]: "1.19.1"This usage is not a good idea as your mod will work only with the 1.19.1 version.
compatible_versions[]: "1.19.*" compatible_versions[]: "1.20.*"This way you support both 1.19 and 1.20 patches.
compatible_versions[]: "X.X.*"Just check if major game version part matches. We might break map compatibility between major patches (1.17 > 1.18 for example) so you have to re-export your map mod from the map editor again. Between patches (like 1.18.1 > 1.18.2) there is a very small chance that we will introduce some critical change to map formats and thus break compatibility.
Set of valid categories which you can use as value of "category" array entries:
Description text length is not limited. Moreover there is also additional ability to colorize your mod description with BBCode tags.
List of available color tags:
Tag | Result color |
[red] | #FF2626 |
[green] | #75FF00 |
[blue] | #12ABE5 |
[normal] | Default font color used in UI |
[white] | #FFFFFF |
[orange] | #FFAE00 |
For example:
[red]Hello [green]Wor[orange]ld
Will result in: Hello World
You can download a sample mod with manifest here.
If you have any problem with adjusting your mod to the new standards, feel free to write on our forum in out Mods forum section.
Last update: 19 June 2015