-
Notifications
You must be signed in to change notification settings - Fork 3
IsVersion
Nightinggale edited this page Jun 7, 2018
·
2 revisions
Tests if the version in about.xml in a specific mod is of at least a specific version.
To provide a human readable error message if using an outdated mod will cause problems. This should only be an issue for people obtaining mods by other means than through steam.
Tag | Mandatory | Type | Default | Description |
---|---|---|---|---|
patchName | no | string | Name of patch for log/profiling | |
modName | yes | string | Name of the mod you the version from | |
version | yes | string | The minimum version you want to accept | |
errorOnFail | no | bool | false | Sets a default error message if test fails |
Log writing | no |
Version is Version from about.xml in the target mod. It has the form x.x.x where each x is a number. The first two have to be the same version as RimWorld, meaning it's 0.18 at the time of writing. The last is not used by the game and can be anything.
Passes the test if version in about.xml is the same or higher than the version tag.
<li Class="ModCheck.IsVersion">
<modName>Core</modName>
<version>0.18.1234</version>
<errorOnFail>true</errorOnFail>
</li>