From c31f28f6f2f0da3887fd682f709059cbe4122fe8 Mon Sep 17 00:00:00 2001 From: SilasD Date: Sun, 5 Oct 2025 15:48:52 -0700 Subject: [PATCH 1/3] script-manager.lua mitigate #5591 not searching scripts_modactive --- library/lua/script-manager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/library/lua/script-manager.lua b/library/lua/script-manager.lua index 74a31fd1d9..80774c53e8 100644 --- a/library/lua/script-manager.lua +++ b/library/lua/script-manager.lua @@ -152,6 +152,7 @@ function get_mod_paths(installed_subdir, active_subdir) -- if a world is loaded, process active mods first, and lock to active version if dfhack.isWorldLoaded() then for _,path in ipairs(df.global.world.object_loader.object_load_order_src_dir) do + path = dfhack.filesystem.getBaseDir() .. path -- skip vanilla "mods" if not path:startswith(INSTALLED_MODS_PATH) then goto continue end local id = get_mod_id_and_version(path) From ca827d332f00bf63d70aa086b7bb2f2eb84b8a62 Mon Sep 17 00:00:00 2001 From: SilasD Date: Sun, 5 Oct 2025 16:13:32 -0700 Subject: [PATCH 2/3] update changelog.txt --- docs/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index f09a12f7e4..c3d50b9e7f 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -59,6 +59,7 @@ Template for new versions: ## New Features ## Fixes +- modding: the ``scripts_modactive`` and ``scripts_modinstalled`` subdirectories of mods will be searched for scripts as per the modding-guide documentation ## Misc Improvements From 96936a7466597d3c407809c69013171d708f1167 Mon Sep 17 00:00:00 2001 From: SilasD Date: Sun, 5 Oct 2025 18:26:18 -0700 Subject: [PATCH 3/3] update changelog.txt again --- docs/changelog.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index c3d50b9e7f..28b6b42fad 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -59,7 +59,7 @@ Template for new versions: ## New Features ## Fixes -- modding: the ``scripts_modactive`` and ``scripts_modinstalled`` subdirectories of mods will be searched for scripts as per the modding-guide documentation +- `script-manager`: the ``scripts_modactive`` and ``scripts_modinstalled`` folders of a script-enabled mod will be properly added to the script path search list ## Misc Improvements