Skip to content

Fix BG3 mods with a wrapper folder ending as "Installation canceled" - #38

Open
Yagz wants to merge 1 commit into
Arkazzae:masterfrom
Yagz:fix/bg3-replacer-folder-case
Open

Yagz wants to merge 1 commit into
Arkazzae:masterfrom
Yagz:fix/bg3-replacer-folder-case

Conversation

@Yagz

@Yagz Yagz commented Nov 21, 2026 •

Copy link
Copy Markdown

Adds patches/0045-linux-bg3-replacer-folder-case.patch.

The problem

Some Baldur's Gate 3 mods never install on Linux: Vortex shows "Installation canceled". When the mod is part of a collection, the collection can't finish. One example is Upscaled Tattoos and Makeup.

Why it happens

These mods put their files in a Generated, Public or Data folder, wrapped in another folder:

UpscaledTattoos_Makeup/Generated/Public/...

The BG3 extension's replacer installer looks for those folders by converting the folder names to upper case. It then uses the upper-case name (UPSCALEDTATTOOS_MAKEUP) to strip the wrapper folder from each file's path.

On Windows, paths ignore case, so this works. On Linux they don't: no file path starts with UPSCALEDTATTOOS_MAKEUP, every file is dropped, and the installer returns nothing to install.

The fix

Folder names are still compared without case, but the paths keep the archive's own spelling. Nothing changes on Windows.

Testing

  • New test installers.test.ts, with three archives: a Generated folder inside a wrapper folder, a Data folder inside a wrapper folder, and an archive that already starts at Generated. The first two fail on master and pass with the patch.
  • The extension's tests and typecheck pass, and its lint reports nothing new.
  • Real setup: with a package built from this branch, the original Upscaled Tattoos and Makeup archive installed as part of its collection.

Notes

This is one of three separate pull requests (#37 and #39 are the others). Each one adds its patch at the same place in PKGBUILD and .SRCINFO, so after the first one is merged the others will need a small conflict fix.

Suggested changelog line: Baldur's Gate 3 mods whose archive wraps the Generated, Public or Data folder in another folder, such as Upscaled Tattoos and Makeup, no longer end as "Installation canceled".

🤖 Generated with Claude Code

…rips a wrapper folder

installReplacer upper-cased the archive's folder names to find Generated, Public or Data, then made each file relative to that upper-cased folder. Linux paths are case-sensitive, so for an archive like Upscaled Tattoos and Makeup (UpscaledTattoos_Makeup/Generated/...) no file stayed below the folder, the installer returned no instructions and Vortex reported "Installation canceled". Match the folder names without case but keep the archive's spelling for the paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Yagz Yagz changed the title Keep the archive's folder spelling when the BG3 replacer installer strips a wrapper folder Fix BG3 mods with a wrapper folder ending as "Installation canceled" Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant