From 145103a32d681cc83c0278efd703069d6232e323 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Thu, 22 Sep 2022 16:41:13 +0400 Subject: [PATCH 1/2] Allow enabling of compatible mods only --- launcher/modManager/cmodlist.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/launcher/modManager/cmodlist.cpp b/launcher/modManager/cmodlist.cpp index 65ad05988..5bc73743a 100644 --- a/launcher/modManager/cmodlist.cpp +++ b/launcher/modManager/cmodlist.cpp @@ -284,6 +284,15 @@ CModEntry CModList::getMod(QString modname) const } } + if(settings.value("active").toBool()) + { + auto compatibility = local.value("compatibility").toMap(); + if(compatibility["min"].isValid() || compatibility["max"].isValid()) + if(!isCompatible(compatibility["min"].toString(), compatibility["max"].toString())) + settings["active"] = false; + } + + for(auto entry : repositories) { QVariant repoVal = getValue(entry, path); From 2c7198a01a1377967df9919f7babfdc61f53b857 Mon Sep 17 00:00:00 2001 From: nordsoft Date: Thu, 22 Sep 2022 16:41:23 +0400 Subject: [PATCH 2/2] Increment vcmi version --- ChangeLog | 20 +++++++++++++++++++- lib/GameConstants.cpp | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 57c7f4e37..d33b1499d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,22 @@ -0.99 -> 1.0 +1.0.0 -> 1.1.0 + +GENERAL: +* Mods and their versions and serialized into save files. Game checks mod compatibility before loading +* Logs are stored in system default logs directory +* LUA/ERM libs are not compiled by default +* FFMpeg dependency is optional now + +MODS: +* Supported rewardable objects customization +* Battleground obstacles are extendable now with VLC mechanism +* Introduced "compatibility" section into mods settings + +LAUNCHER: +* Fixed problem with duplicated mods in the list +* Launcher shows compatible mods only +* Uninstall button was moved to the left of layout + +0.99 -> 1.0.0 GENERAL: * Spectator mode was implemented through command-line options diff --git a/lib/GameConstants.cpp b/lib/GameConstants.cpp index ec368869e..7f6155316 100644 --- a/lib/GameConstants.cpp +++ b/lib/GameConstants.cpp @@ -52,7 +52,7 @@ const TeamID TeamID::NO_TEAM = TeamID(255); namespace GameConstants { const int VCMI_VERSION_MAJOR = 1; - const int VCMI_VERSION_MINOR = 0; + const int VCMI_VERSION_MINOR = 1; const int VCMI_VERSION_PATCH = 0; const std::string VCMI_VERSION_STRING = std::to_string(VCMI_VERSION_MAJOR) + "." +