Updated form type collision warning

This commit is contained in:
Eddoursul 2026-01-24 23:21:34 +01:00
parent 5b77524c2f
commit d4335d3b4c

View File

@ -48,28 +48,18 @@ namespace FormTypeCollisionDetector
return false; return false;
} }
logger::warn("Detected {} form type collision(s) from {} mod(s)", // Show message box
detectedCollisions.size(), flaggedMods.size());
// Print to console
if (auto* console = RE::ConsoleLog::GetSingleton()) {
for (const auto& mod : flaggedMods) {
console->Print(std::format("{} causes form type collisions (incompatible with Enderal)", mod).c_str());
}
}
// Show message box for first mod only
if (!messageShown && !flaggedMods.empty()) { if (!messageShown && !flaggedMods.empty()) {
messageShown = true; messageShown = true;
auto firstMod = *flaggedMods.begin(); auto firstMod = *flaggedMods.begin();
std::string message = std::format( std::string message = std::format(
"{} is incompatible with Enderal (form type collision).\n" "{} is incompatible with Enderal (form type collision).\n"
"Check console for details.", firstMod); "See Documents\\My Games\\Skyrim Special Edition (GOG)\\SKSE\\EnderalSE.log for details.", firstMod);
if (flaggedMods.size() > 1) { if (flaggedMods.size() > 1) {
message = std::format( message = std::format(
"{} and {} other mod(s) are incompatible with Enderal.\n" "{} and {} other mod(s) are incompatible with Enderal (form type collision).\n"
"Check console for details.", "See Documents\\My Games\\Skyrim Special Edition (GOG)\\SKSE\\EnderalSE.log for details.",
firstMod, flaggedMods.size() - 1); firstMod, flaggedMods.size() - 1);
} }