diff --git a/SKSE/Plugins/ArtifactTracker.dll b/SKSE/Plugins/ArtifactTracker.dll index b6bb337..5a20802 100644 Binary files a/SKSE/Plugins/ArtifactTracker.dll and b/SKSE/Plugins/ArtifactTracker.dll differ diff --git a/Source/ArtifactTrackerDLL/CMakeLists.txt b/Source/ArtifactTrackerDLL/CMakeLists.txt index c8fdbcd..24e8c5c 100644 --- a/Source/ArtifactTrackerDLL/CMakeLists.txt +++ b/Source/ArtifactTrackerDLL/CMakeLists.txt @@ -6,7 +6,7 @@ message("Using toolchain file ${CMAKE_TOOLCHAIN_FILE}.") ######################################################################################################################## project( ArtifactTracker - VERSION 1.0.8 + VERSION 1.0.9 DESCRIPTION "Artifact Tracker" LANGUAGES CXX) set(CMAKE_CXX_STANDARD 23) diff --git a/Source/ArtifactTrackerDLL/cmake/version.rc.in b/Source/ArtifactTrackerDLL/cmake/version.rc.in index 60fc025..b048f90 100644 --- a/Source/ArtifactTrackerDLL/cmake/version.rc.in +++ b/Source/ArtifactTrackerDLL/cmake/version.rc.in @@ -21,7 +21,7 @@ BEGIN VALUE "FileDescription", "@PROJECT_DESCRIPTION@" VALUE "FileVersion", "@PROJECT_VERSION@" VALUE "InternalName", "@PROJECT_NAME@" - VALUE "LegalCopyright", "GNU Lesser General Public License 3.0" + VALUE "LegalCopyright", "ModPub Non-Commercial Private Use License 1.0" VALUE "ProductName", "@PROJECT_FRIENDLY_NAME@" VALUE "ProductVersion", "@PROJECT_VERSION@" VALUE "OriginalFilename", "@PROJECT_NAME@.dll" diff --git a/Source/ArtifactTrackerDLL/src/ArtifactTracker.cpp b/Source/ArtifactTrackerDLL/src/ArtifactTracker.cpp index f7116ef..e24ad86 100644 --- a/Source/ArtifactTrackerDLL/src/ArtifactTracker.cpp +++ b/Source/ArtifactTrackerDLL/src/ArtifactTracker.cpp @@ -46,7 +46,15 @@ namespace ArtifactTracker SKSE::GetModCallbackEventSource()->RemoveEventSink(EventListener::GetSingleton()); - g_cellContainer = dataHandler->LookupForm(0x804, "Artifact Tracker.esp")->As(); // ETR_CellStorageContainer + if (!dataHandler->GetLoadedLightModIndex("Artifact Tracker.esp")) { + log::warn("Artifact Tracker.esp is not loaded"); + RE::DebugMessageBox("Unable to find Artifact Tracker.esp, the mod is disabled."); + return false; + } + + if (const auto& form = dataHandler->LookupForm(0x804, "Artifact Tracker.esp")) { + g_cellContainer = form->As(); // ETR_CellStorageContainer + } g_listNew = dataHandler->LookupForm(0x800, "Artifact Tracker.esp"); // ETR_ItemsNew g_listStored = dataHandler->LookupForm(0x801, "Artifact Tracker.esp"); // ETR_ItemsStored @@ -85,6 +93,9 @@ namespace ArtifactTracker g_artifactAllFormTypes.insert(RE::FormType::AlchemyItem); g_artifactAllFormTypes.insert(RE::FormType::Ingredient); g_artifactAllFormTypes.insert(RE::FormType::SoulGem); + g_artifactAllFormTypes.insert(RE::FormType::Ammo); + g_artifactAllFormTypes.insert(RE::FormType::Scroll); + g_artifactAllFormTypes.insert(RE::FormType::KeyMaster); g_artifactFormTypes.insert(RE::FormType::Weapon); for (const auto& form : dataHandler->GetFormArray()) { @@ -145,6 +156,27 @@ namespace ArtifactTracker } } + for (const auto& form : dataHandler->GetFormArray()) { + if (form->GetPlayable() && form->AsKeywordForm()->HasKeyword(extraArtifactKeyword) && !form->AsKeywordForm()->HasKeyword(notArtifactKeyword)) { + g_artifactMap[form->formID] = form; + g_artifactFormTypes.insert(RE::FormType::Ammo); + } + } + + for (const auto& form : dataHandler->GetFormArray()) { + if (form->HasKeyword(extraArtifactKeyword) && !form->HasKeyword(notArtifactKeyword)) { + g_artifactMap[form->formID] = form; + g_artifactFormTypes.insert(RE::FormType::Scroll); + } + } + + for (const auto& form : dataHandler->GetFormArray()) { + if (form->HasKeyword(extraArtifactKeyword) && !form->HasKeyword(notArtifactKeyword)) { + g_artifactMap[form->formID] = form; + g_artifactFormTypes.insert(RE::FormType::KeyMaster); + } + } + EventListener::Install(); OnGameLoad(); // covers new game and coc'ing from the main menu diff --git a/Source/ArtifactTrackerDLL/vcpkg.json b/Source/ArtifactTrackerDLL/vcpkg.json index b633b1b..5d7a994 100644 --- a/Source/ArtifactTrackerDLL/vcpkg.json +++ b/Source/ArtifactTrackerDLL/vcpkg.json @@ -1,11 +1,11 @@ { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json", "name": "artifact-tracker", - "version-string": "1.0.8", + "version-string": "1.0.9", "port-version": 0, "description": "Artifact Tracker", - "homepage": "https://eddoursul.win/mods/artifact-tracker/", - "license": "LGPL-3.0", + "homepage": "https://mod.pub/skyrim-se/36-artifact-tracker", + "license": null, "features": { "plugin": { "description": "Tracks found and stored artifacts.",