Skip to content

feat(desktop): add mod profiles with sharing - #226

Merged
ShulhaOleh merged 26 commits into
mainfrom
feat/mod-profiles
Nov 21, 2026
Merged

ShulhaOleh merged 26 commits into
mainfrom
feat/mod-profiles

Conversation

@ShulhaOleh

Copy link
Copy Markdown
Member

Summary

Adds per-game mod profiles, and sharing and importing them.

Profiles

  • Each copy of a game can keep several profiles, switched from a menu in the top bar, left of the launch buttons. A profile has its own mods, folders, load order and on or off states.
  • Every profile has a folder, .modrex/profiles/<name>, holding its profile.json. The active profile's mods are installed as usual. Every other profile keeps its mods in its own folder under plain names, outside every folder the game loads.
  • No two profiles share a mod. Duplicate copies the files, and Remove, updates and reinstalls only touch the active profile.
  • Loaders (PDML, UE4SS, SuperBLT, DAHM, RAID-SuperBLT) can be kept or left out per profile. Loose-file loaders stay shared, and leaving one out moves only its hook files.
  • A switch writes a journal before it touches anything, so a switch that stops finishes when it is run again.
  • Ready or Not mods leave Paks only through the native-file guard, which accepts the profile store and nothing else outside Paks.

Sharing and importing

  • Share shows a profile code to copy, or saves a .modrexprofile file. A share lists mods by their ModWorkshop and Nexus pages, never the files. Mods installed by hand are left out.
  • Import checks every mod before downloading anything: ready, Nexus download, a file to choose, or not available. ModWorkshop gets the current upload of the same file, Nexus the exact file.
  • An import creates a new profile and switches to it. The sender's install choices, such as archive entries and add-ons, are replayed. Nexus mods open one at a time.
  • Anything the import could not finish waits under Not downloaded, in the profile menu and as a line on the Installed page, with a file picker, Try again, or the mod's page inside Modrex. A regular install of a waiting mod takes its place.

Supporting changes

  • Launching without mods sets mods aside in .modrex/vanilla.
  • Each installed mod has a permanent install id.
  • Fixes: ModWorkshop installs no longer remove Nexus mods with the same id, disabled hand-installed Diesel mods no longer come back as new mods, reinstalls keep each file in its own folder, and waiting ModWorkshop requests no longer burst past the rate limit.
  • Docs: a new Profiles page, and updates to the installing, launching, settings and state pages.

Type of change

  • Bug fix
  • Feature
  • Improvement
  • Translation
  • Maintenance (CI, build, tooling, refactors)
  • Dependencies
  • Documentation only

Validation

  • Full local repository checks (bun checks)
  • Relevant local checks
  • CI only
  • Not applicable

Details:

  • cargo fmt, cargo clippy --all-targets -- -D warnings and cargo test: 1406 library tests passed.
  • bun run lint, bun run typecheck, bun check-commands and bun check-i18n passed.
  • Renderer tests: 748 passed.
  • Site build: 27 pages built, site format check passed.
  • The commit hooks ran on every commit.
  • Profiles were tried by hand on PAYDAY 3. Ready or Not on Steam and Epic was not tried by hand.
  • No dependencies changed.

@ShulhaOleh ShulhaOleh added the feature Something users could not do before label Nov 21, 2026
@github-actions github-actions Bot added the game support Behavior specific to one game or loader label Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Deploying Modrex previews with  Cloudflare Pages  Cloudflare Pages

App preview:https://app-preview.modrex.net/pr/226
Site preview:https://site-preview.modrex.net/pr/226

View logs: app | site

@ShulhaOleh ShulhaOleh self-assigned this Nov 21, 2026
@ShulhaOleh ShulhaOleh removed their assignment Nov 21, 2026
@ShulhaOleh
ShulhaOleh merged commit d08bd5e into main Nov 21, 2026
18 checks passed
@ShulhaOleh
ShulhaOleh deleted the feat/mod-profiles branch November 21, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Something users could not do before game support Behavior specific to one game or loader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant