From 7ec2c9ec8581259266c16f2a7de7b0fbc58ed565 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Sun, 29 Jun 2025 09:15:59 -0500 Subject: [PATCH 1/2] mod-manager.lua: do not except on missing mod metadata fixes dfhack/dfhack#5489 --- gui/mod-manager.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/mod-manager.lua b/gui/mod-manager.lua index 792715c6d..7e6b6efe7 100644 --- a/gui/mod-manager.lua +++ b/gui/mod-manager.lua @@ -524,7 +524,8 @@ function ModlistWindow:refresh_list() local choices = {} for idx,mod in ipairs(scriptmanager.get_active_mods()) do if not include_vanilla and mod.vanilla then goto continue end - local steam_id = scriptmanager.get_mod_info_metadata(mod.path, 'STEAM_FILE_ID').STEAM_FILE_ID + local metadata = scriptmanager.get_mod_info_metadata(mod.path, 'STEAM_FILE_ID') + local steam_id = metadata and metadata.STEAM_FILE_ID or nil local url = steam_id and (': https://steamcommunity.com/sharedfiles/filedetails/?id=%s'):format(steam_id) or '' table.insert(choices, { text={ From 71194edf327dc9f725a931b19227249e04b0e03e Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Sun, 29 Jun 2025 09:27:50 -0500 Subject: [PATCH 2/2] add changelog --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 9f0324d3a..c6dbbe078 100644 --- a/changelog.txt +++ b/changelog.txt @@ -31,6 +31,7 @@ Template for new versions: ## New Features ## Fixes +- `gui/mod-manager`: gracefully handle mods with missing or broken ``info.txt`` files ## Misc Improvements