Skip to content

Version Dependency

Dan Gerendasy edited this page Feb 7, 2017 · 7 revisions

Explained in this page

  1. How Ty versions are handled
  2. Why limiting support of different versions of Ty is practical
  3. Ty Mod Manager's implementation of interval notation
  4. How to make use of the tyversion attribute

Ty the Tasmanian Tiger Version

The version format of each release of Ty is rX_vX.XX where rX is presumably the revision number and vX.XX is the version number. The Ty Mod Manager ignores the version number. All references to the Ty version on this page will be referring to the revision number.


Why

Sometimes a mod does not work on all versions. Sometimes it takes version specific data or offsets and has to be updated for each individual version.

Most likely, you will not have to worry about this. However, if your mod involves writing to the game process directly, you should state specific version(s) of Ty your mod depends on.


Interval Notation

The Mod Manager interprets the tyversion attribute of a tymod element as a range of numbers in interval notation.

Notation Applied Rule Description
r1402 r1402 ≤ version Minimum Ty Version of r1402
(r1402,) r1402 < version Ty Version must be larger than r1402
[,r1402] r0 ≤ version ≤ r1402 Ty Version cannot be larger than r1402
[,r1402) r0 ≤ version < r1402 Ty Version must be less than r1402
(r1332,r1402] r1332 < version ≤ r1402 Ty Version must be greater than r1332 and less than or equal to r1402
[r1402] Invalid Invalid
All Versions When left blank, the default is to support all versions

Applying Ty Version Interval Notation

Say your simple tymod looks like this.

<tymod name="meh" version="1.0.0" authors="me?" description="something's missing.. :(">

</tymod>

A little sad, don't you think? Check this out.

<tymod name="Jubilant" tyversion="[r1402,r1402]" version="9.0.0.1" authors="Myself!" description=";)">

</tymod>

Suddenly, it has purpose. The only one of his kind.

Clone this wiki locally