I am confused as to the purpose of a version number. My initial understanding was that the version number would refer to the mod itself, i.e., I change that number if I release a new version of my mod. But then, I read this:
[quote=“Tuhalu, post:2, topic:14566, full:false”]The version number in the manifest is meant for version checking by the game. Currently, that version is set to 1. If it was changed to 2, all mods with a version of less than 2 would automatically fail to load. In theory at least, it makes using mods easier by disabling old mods automatically when a new version comes along. For now, make sure it is at least 1
Is this how version number works? If so, it seems a bit … well, dumb, to be honest. If this is the case, version number would be completely redundant with either Alpha version or Release version. If this is how it works, I see at least two obvious flaws:
- If mods are well-written (I’m specifically thinking of the Zulser mod), they can last across versions, even Alpha versions (from at least Alpha 8 to Alpha 10), without being changed, unless the underlying code it relies on changed (as is the case in Alpha 11 for Zulser). If so, it seems stupid to need to re-release the mod with a new “version” number.
- What’s to stop me from calling my mod version “99999999”? Then I’d be good for the next almost-one-hundred-million releases.
I am in the process of creating my first mod, and I will attempt to use semantic versioning on the mod. However, I will continue to just put “1” as the version in the manifest.json until I understand what its use is.