From cd710913ced7f01de2a0757b3f3b42ac2ec313c1 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Tue, 7 Nov 2023 23:42:36 -0600 Subject: [PATCH] Extend management checks * Look for ASI loader option * Add bypass setting --- src/game_starfield_en.ts | 25 +++++++++++++++---------- src/gamestarfield.cpp | 9 ++++++++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/game_starfield_en.ts b/src/game_starfield_en.ts index 6f80051..baa0b38 100644 --- a/src/game_starfield_en.ts +++ b/src/game_starfield_en.ts @@ -35,56 +35,61 @@ + Bypass check for Plugins.txt Enabler. This may be useful if you use the ASI loader. + + + + As of this release LOOT Starfield support is minimal to nonexistant. Toggle this to enable it anyway. - + You have active ESP plugins in Starfield - + You have active ESL plugins in Starfield - + You have active overlay plugins - + sTestFile entries are present - + Plugins.txt Enabler missing - + <p>ESP plugins are not ideal for Starfield. In addition to being unable to sort them alongside ESM or master-flagged plugins, certain record references are always kept loaded by the game. This consumes unnecessary resources and limits the game's ability to load what it needs.</p><p>Ideally, plugins should be saved as ESM files upon release. It can also be released as an ESL plugin, however there are additional concerns with the way light plugins are currently handled and should only be used when absolutely certain about what you're doing.</p><p>Notably, xEdit does not currently support saving ESP files.</p><h4>Current ESPs:</h4><p>%1</p> - + <p>Light plugins work differently in Starfield. They use a different base form ID compared with standard plugin files.</p><p>What this means is that you can't just change a standard plugin to a light plugin at will, it can and will break any dependent plugin. If you do so, be absolutely certain no other plugins use that plugin as a master.</p><p>Notably, xEdit does not currently support saving or loading ESL files under these conditions.<p><h4>Current ESLs:</h4><p>%1</p> - + <p>Overlay-flagged plugins are not currently recommended. In theory, they should allow you to update existing records without utilizing additional load order slots. Unfortunately, it appears that the game still allocates the slots as if these were standard plugins. Therefore, at the moment there is no real use for this plugin flag.</p><p>Notably, xEdit does not currently support saving or loading overlay-flagged files under these conditions.</p><h4>Current Overlays:</h4><p>%1</p> - + <p>You have plugin managment enabled but you still have sTestFile settings in your StarfieldCustom.ini. These must be removed or the game will not read the plugins.txt file. Management is still disabled.</p> - + <p>You have plugin management turned on but do not have the Plugins.txt Enabler SFSE plugin installed. Plugin file management for Starfield will not work without this SFSE plugin.</p> diff --git a/src/gamestarfield.cpp b/src/gamestarfield.cpp index 025c988..480ee9c 100644 --- a/src/gamestarfield.cpp +++ b/src/gamestarfield.cpp @@ -146,6 +146,10 @@ QList GameStarfield::settings() const << PluginSetting("enable_management_warnings", tr("Show a warning when plugins.txt management is invalid."), true) + << PluginSetting("bypass_plugins_enabler_check", + tr("Bypass check for Plugins.txt Enabler. This may be useful " + "if you use the ASI loader."), + false) << PluginSetting("enable_loot_sorting", tr("As of this release LOOT Starfield support is minimal to " "nonexistant. Toggle this to enable it anyway."), @@ -309,7 +313,9 @@ IPluginGame::SortMechanism GameStarfield::sortMechanism() const IPluginGame::LoadOrderMechanism GameStarfield::loadOrderMechanism() const { - if (!testFilePresent() && pluginsTxtEnablerPresent()) + if (!testFilePresent() && + (pluginsTxtEnablerPresent() || + m_Organizer->pluginSetting(name(), "bypass_plugins_enabler_check").toBool())) return IPluginGame::LoadOrderMechanism::PluginsTxt; return IPluginGame::LoadOrderMechanism::None; } @@ -432,6 +438,7 @@ bool GameStarfield::testFilePresent() const bool GameStarfield::pluginsTxtEnablerPresent() const { auto files = m_Organizer->findFiles("sfse\\plugins", {"sfpluginstxtenabler.dll"}); + files += m_Organizer->findFiles("", {"sfpluginstxtenabler.asi"}); if (files.isEmpty()) return false; return true;