diff --git a/docs/changelog.txt b/docs/changelog.txt index f09a12f7e4..28b6b42fad 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -59,6 +59,7 @@ Template for new versions: ## New Features ## Fixes +- `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 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)