info.json factorio_version should support more as one version
Posted: Wed Nov 25, 2020 10:21 am
info.json `factorio_version` should support more as one version.
if a mod handles the differences of Factorio 1.0 and 1.1 in code it should not be necessary to publish 2 different mod versions.
Example: current I have a mod in version 1.2.3 for Factorio 1.0
for Factorio 1.1 I add a condition `if mods["base"]=="1.1.0" ` (or similar) to handle the changes, but add no new features.
to publish the changes I have to increment the version (e.g. to 1.3.0)
so now I have 2 versions to manage: 1.2.3 for 1.0 and 1.3.0 for 1.1
If I add new features I also have to manage 2 separated versions with different version numbers.
so 1.3.0 I can not use (because used for 1.1) I have to use 1.4
for 1.1 I need an extra version, using 1.5
Alternativ I could misuse the major version for Factorio. so 1.4.0 for Factorio 1.0 und 2.4.0 for the next Factorio and so on.
BUT that would only be half the battle I still have to maintain 2 different versions .with only differences in version and factorio_version.
This could be avoided if all supported Factorio versions could be specified.
Example:
`factorio_version = {"1.0", "1.1"}`
So the current mod only needs to be extended for the new Factorio version and new features could be added easily because only one mod version musst be maintained.
if a mod handles the differences of Factorio 1.0 and 1.1 in code it should not be necessary to publish 2 different mod versions.
Example: current I have a mod in version 1.2.3 for Factorio 1.0
for Factorio 1.1 I add a condition `if mods["base"]=="1.1.0" ` (or similar) to handle the changes, but add no new features.
to publish the changes I have to increment the version (e.g. to 1.3.0)
so now I have 2 versions to manage: 1.2.3 for 1.0 and 1.3.0 for 1.1
If I add new features I also have to manage 2 separated versions with different version numbers.
so 1.3.0 I can not use (because used for 1.1) I have to use 1.4
for 1.1 I need an extra version, using 1.5
Alternativ I could misuse the major version for Factorio. so 1.4.0 for Factorio 1.0 und 2.4.0 for the next Factorio and so on.
BUT that would only be half the battle I still have to maintain 2 different versions .with only differences in version and factorio_version.
This could be avoided if all supported Factorio versions could be specified.
Example:
`factorio_version = {"1.0", "1.1"}`
So the current mod only needs to be extended for the new Factorio version and new features could be added easily because only one mod version musst be maintained.