From d1ea45400ebf16e3bb458a63c8a8e5a3c88e2d87 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Fri, 1 Mar 2024 23:25:39 +0000 Subject: [PATCH] Yell about archive invalidation --- OpenMWExport.py | 21 ++++++++++++++-- OpenMWExport_en.ts | 60 +++++++++++++++++++++++++++------------------- 2 files changed, 54 insertions(+), 27 deletions(-) diff --git a/OpenMWExport.py b/OpenMWExport.py index e93f9b4..792aaf3 100644 --- a/OpenMWExport.py +++ b/OpenMWExport.py @@ -16,7 +16,7 @@ if "mobase" not in sys.modules: import mobase -class OpenMWExportPlugin(mobase.IPluginTool): +class OpenMWExportPlugin(mobase.IPluginTool, mobase.IPluginDiagnose): __NAME = "OpenMW Exporter" __CONFIG_PATH = "config path" __ALWAYS_USE_THIS_CONFIG_PATH = "always use this config path" @@ -32,6 +32,8 @@ class OpenMWExportPlugin(mobase.IPluginTool): def __init__(self): super(OpenMWExportPlugin, self).__init__() + # I think this shouldn't be necessary and a base class should be calling super + mobase.IPluginDiagnose.__init__(self) self.__organizer : mobase.IOrganizer self.__nexusBridge : mobase.IModRepositoryBridge @@ -52,7 +54,7 @@ def description(self): return OpenMWExportPlugin.tr("Transfers mod list (left pane) to data fields in OpenMW.cfg and plugin list (right pane, plugins tab) to content fields in OpenMW.cfg. This allows you to run OpenMW with the current profile's setup from outside of Mod Organizer") def version(self): - return mobase.VersionInfo(4, 0, 0, mobase.ReleaseType.FINAL) + return mobase.VersionInfo(4, 1, 0, mobase.ReleaseType.PRE_ALPHA) def requirements(self): return [ @@ -119,6 +121,21 @@ def display(self): for pluginIndex in range(len(loadOrder)): openmwcfg.write("content=" + loadOrder[pluginIndex] + "\n") QMessageBox.information(self._parentWidget(), OpenMWExportPlugin.tr("OpenMW Export Complete"), OpenMWExportPlugin.tr("The export to OpenMW completed successfully. The current setup was saved to {0}").format(configPath)) + + def activeProblems(self): + return [0] if self.__organizer.profile().invalidationActive()[0] else [] + + def shortDescription(self, key): + return OpenMWExportPlugin.tr("Automatic Archive Invalidation is enabled.") + + def fullDescription(self, key): + return OpenMWExportPlugin.tr("Automatic Archive Invalidation is enabled in the current profile. Automatic Archive Invalidation attempts to work around a problem in the later Bethesda Games Studios games. It is unnecessary for Morrowind or OpenMW, and the archive used is known to crash the game. You should disable it in the Manage Profiles window.") + + def hasGuidedFix(self, key): + return False + + def startGuidedFix(self, key): + pass @staticmethod def tr(str): diff --git a/OpenMWExport_en.ts b/OpenMWExport_en.ts index fbb1203..0130247 100644 --- a/OpenMWExport_en.ts +++ b/OpenMWExport_en.ts @@ -4,129 +4,139 @@ OpenMWExportPlugin - + Transfers mod list (left pane) to data fields in OpenMW.cfg and plugin list (right pane, plugins tab) to content fields in OpenMW.cfg. This allows you to run OpenMW with the current profile's setup from outside of Mod Organizer - + The most-recently-used openmw.cfg path. - + Whether to always use the saved openmw.cfg without asking each time. - + Whether to show the Export to OpenMW option for games with only limited experimental support. - + Export to OpenMW - + Exports the current mod list and plugin load order to OpenMW.cfg - + Experimental game - + (At least when this plugin is being written) OpenMW only fully supports game data designed for the Morrowind engine. The game being managed is not Morrowind, so do not expect the game to be fully playable. If you think you know better than this message, update this plugin. - + Before starting export... - + Before starting the export to OpenMW, please ensure you've backed up anything in OpenMW.cfg which you do not want to risk losing forever. - + Config file not specified - + No config file was specified - + OpenMW Export Complete - + The export to OpenMW completed successfully. The current setup was saved to {0} - + + Automatic Archive Invalidation is enabled. + + + + + Automatic Archive Invalidation is enabled in the current profile. Automatic Archive Invalidation attempts to work around a problem in the later Bethesda Games Studios games. It is unnecessary for Morrowind or OpenMW, and the archive used is known to crash the game. You should disable it in the Manage Profiles window. + + + + Saved openmw.cfg path unavailable {0} is the key for the setting that's being reset. - + Saved openmw.cfg path unavailable. Resetting {0} - + Choose openmw.cfg path - + Saved:<div style="white-space:pre">{0}</div><br>Default:<div style="white-space:pre">{1}</div> <div style=\"white-space:pre\">{0}</div> is the saved path. <div style=\"white-space:pre\">{1}</div> is the default path. <br> is a line break between them. - + Saved - + Default - + Browse - + Always use this path - + Locate OpenMW Config File - + Plugin update available - + {0} can be updated from version {1} to {2}. Do you want to open the download page in your browser?