Skip to content

Refuse an outdated HUD in Mods instead of installing it as a pack - #201

Open
rndaom wants to merge 1 commit into
mainfrom
rndaom/mods-outdated-hud
Open

rndaom wants to merge 1 commit into
mainfrom
rndaom/mods-outdated-hud

Conversation

@rndaom

@rndaom rndaom commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Problem

A HUD made for an older interface version could be installed through Mods as an ordinary custom pack with no warning. Import HUD refuses the same file and says to get an updated copy.

Change

  • A pack whose info.vdf declares a UI version other than 3 is treated as an outdated HUD. The mod file review greys that choice out with the HUD importer's reason, and the installer refuses it with its own error code.
  • A pack with no info.vdf, or one whose info.vdf declares no UI version, is still an ordinary mod, so mods that ship an unrelated info.vdf are unaffected.
  • Packs that are already installed are not rechecked.

Guide, architecture notes and changelog are updated.

Checks

cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace --locked

A pack whose info.vdf declares a UI version other than 3 is an outdated HUD. The mod file review now disables that choice with the reason the HUD importer gives, and the installer refuses it. A pack with no info.vdf, or one that declares no UI version, is still an ordinary mod.
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