From 6df57df9b0014283fd91790f989bb309361fd37d Mon Sep 17 00:00:00 2001 From: Random <65575762+rndaom@users.noreply.github.com> Date: Mon, 16 Nov 2026 18:34:10 -0500 Subject: [PATCH] fix(mods): refuse an outdated HUD instead of installing it as a pack 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. --- CHANGELOG.md | 2 + apps/desktop/src-tauri/core/src/hud.rs | 33 +++++-- apps/desktop/src-tauri/core/src/mod_import.rs | 10 +++ apps/desktop/src-tauri/core/src/mods.rs | 90 +++++++++++++++---- apps/desktop/src-tauri/core/src/profile.rs | 5 +- docs/ARCHITECTURE.md | 2 +- docs/guide/mods.md | 2 +- 7 files changed, 119 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8576f20c..fb398573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ User-facing changes only. The release workflow publishes the matching ### Fixed +- Mods: an outdated HUD can no longer be installed as a custom pack. The file review greys it out + and says to get an updated copy from the author, as Import HUD does. - Crosshair and Sounds: when another pack replaces the same files, Show in Mods now opens Custom packs with that pack marked, instead of only opening Mods. - HUD and Viewmodels: importing something that belongs in Mods now says so and offers Open Mods, diff --git a/apps/desktop/src-tauri/core/src/hud.rs b/apps/desktop/src-tauri/core/src/hud.rs index 50fbc836..8f774b74 100644 --- a/apps/desktop/src-tauri/core/src/hud.rs +++ b/apps/desktop/src-tauri/core/src/hud.rs @@ -733,14 +733,33 @@ fn validate_hud_info(tree: &HudTree) -> Result<(), ProfileError> { let info = tree .info_vdf() .ok_or_else(|| ProfileError::Io(NO_HUD_FOUND.into()))?; - match std::str::from_utf8(info).ok().and_then(parse_ui_version) { - Some(CURRENT_HUD_UI_VERSION) => Ok(()), - Some(version) => Err(ProfileError::Io(format!( - "This HUD declares UI version {version}; TF2 requires {CURRENT_HUD_UI_VERSION}. Get an updated copy from the author. Your current HUD has not changed." + match outdated_hud_info(info) { + None => Ok(()), + Some(reason) => Err(ProfileError::Io(format!( + "{reason} Your current HUD has not changed." ))), - None => Err(ProfileError::Io( - "This HUD's info.vdf is invalid or has no ui_version. Get a complete, updated copy from the author. Your current HUD has not changed.".into(), - )), + } +} + +/// The refusal for an `info.vdf` that declares a UI version other than the +/// current one. `None` when it declares the current version or none at all, +/// which is how an `info.vdf` that is not HUD metadata reads. +pub(crate) fn other_ui_version_reason(info: &[u8]) -> Option { + let version = std::str::from_utf8(info).ok().and_then(parse_ui_version)?; + (version != CURRENT_HUD_UI_VERSION).then(|| format!( + "This HUD declares UI version {version}; TF2 requires {CURRENT_HUD_UI_VERSION}. Get an updated copy from the author." + )) +} + +/// Why an `info.vdf` does not describe a HUD TF2 will load, or `None` when it +/// declares the current UI version. +pub(crate) fn outdated_hud_info(info: &[u8]) -> Option { + match std::str::from_utf8(info).ok().and_then(parse_ui_version) { + Some(CURRENT_HUD_UI_VERSION) => None, + Some(_) => other_ui_version_reason(info), + None => Some( + "This HUD's info.vdf is invalid or has no ui_version. Get a complete, updated copy from the author.".into(), + ), } } diff --git a/apps/desktop/src-tauri/core/src/mod_import.rs b/apps/desktop/src-tauri/core/src/mod_import.rs index 776c0400..f731d124 100644 --- a/apps/desktop/src-tauri/core/src/mod_import.rs +++ b/apps/desktop/src-tauri/core/src/mod_import.rs @@ -280,6 +280,12 @@ impl PreparedModImport { } None => disabled_metadata[&path], }; + // An outdated HUD would install as a pack TF2 ignores. + if disabled_reason.is_none() { + disabled_reason = content + .as_ref() + .and_then(|content| crate::mods::outdated_hud_reason(content).ok().flatten()); + } if disabled_reason.is_some() { content = None; } @@ -602,6 +608,10 @@ mod tests { ) .unwrap(); assert!(old.choices.iter().all(|choice| choice.hud.is_none())); + // It cannot be picked as a pack either, and says why. + let reason = old.choices[0].disabled_reason.as_deref().unwrap(); + assert!(reason.contains("UI version 1; TF2 requires 3"), "{reason}"); + assert!(old.select(&["0".into()]).is_err()); } #[test] diff --git a/apps/desktop/src-tauri/core/src/mods.rs b/apps/desktop/src-tauri/core/src/mods.rs index a85df7dc..5e6fd969 100644 --- a/apps/desktop/src-tauri/core/src/mods.rs +++ b/apps/desktop/src-tauri/core/src/mods.rs @@ -477,6 +477,7 @@ where for (name, content) in packs { selection_budget.add(&content)?; refuse_hud_mod(&content)?; + refuse_outdated_hud_mod(&content)?; refuse_crosshair_script_collision(&content, &crosshair_scripts)?; let display = display_name(&name); @@ -576,27 +577,64 @@ where detail_from_manifest(profiles_dir, &manifest) } -/// Whether a pack is a HUD: it carries an `info.vdf` declaring the current UI -/// version. Detection requires real compatibility data. -pub fn is_hud_content(content: &ModContent) -> Result { +/// Every `info.vdf` a pack carries: any depth in loose files, the root of a VPK. +fn hud_info_files(content: &ModContent) -> Result>, ProfileError> { Ok(match content { - ModContent::Tree(entries) => entries.iter().any(|(path, bytes)| { - path.rsplit('/') - .next() - .is_some_and(|name| name.eq_ignore_ascii_case("info.vdf")) - && crate::hud::is_current_hud_info(bytes) - }), + ModContent::Tree(entries) => entries + .iter() + .filter(|(path, _)| { + path.rsplit('/') + .next() + .is_some_and(|name| name.eq_ignore_ascii_case("info.vdf")) + }) + .map(|(_, bytes)| bytes.clone()) + .collect(), ModContent::Vpk(bytes) => { - let info = - read_vpk_dir_bytes_filtered(bytes, &|path| path.eq_ignore_ascii_case("info.vdf")) - .map_err(|err| ProfileError::Io(err.message()))?; - info.files - .values() - .any(|bytes| crate::hud::is_current_hud_info(bytes)) + read_vpk_dir_bytes_filtered(bytes, &|path| path.eq_ignore_ascii_case("info.vdf")) + .map_err(|err| ProfileError::Io(err.message()))? + .files + .into_values() + .collect() } }) } +/// Whether a pack is a HUD: it carries an `info.vdf` declaring the current UI +/// version. Detection requires real compatibility data. +pub fn is_hud_content(content: &ModContent) -> Result { + Ok(hud_info_files(content)? + .iter() + .any(|info| crate::hud::is_current_hud_info(info))) +} + +/// Why a pack is a HUD TF2 no longer loads: an `info.vdf` declares an older or +/// newer UI version and none declares the current one. `None` for a current +/// HUD, and for a pack whose `info.vdf` is missing or declares no UI version, +/// which is an ordinary mod. +pub fn outdated_hud_reason(content: &ModContent) -> Result, ProfileError> { + let infos = hud_info_files(content)?; + if infos + .iter() + .any(|info| crate::hud::is_current_hud_info(info)) + { + return Ok(None); + } + Ok(infos + .iter() + .find_map(|info| crate::hud::other_ui_version_reason(info))) +} + +/// An outdated HUD would install as a pack TF2 ignores, so it is refused with +/// the reason the HUD importer gives. +fn refuse_outdated_hud_mod(content: &ModContent) -> Result<(), ProfileError> { + match outdated_hud_reason(content)? { + Some(reason) => Err(ProfileError::OutdatedHud(format!( + "{reason} No selected files were installed." + ))), + None => Ok(()), + } +} + /// HUDs need the one-HUD replacement review, including when a mod picker or /// GameBanana supplied their bytes. fn refuse_hud_mod(content: &ModContent) -> Result<(), ProfileError> { @@ -1285,6 +1323,28 @@ pub fn read_mod_pcf( #[cfg(test)] mod tests { + #[test] + fn an_outdated_hud_is_named_and_an_ordinary_or_current_pack_is_not() { + let pack = |info: Option<&[u8]>| { + let mut files = vec![("resource/ui/hudlayout.res".to_string(), vec![1])]; + files.extend(info.map(|bytes| ("info.vdf".to_string(), bytes.to_vec()))); + ModContent::Tree(files) + }; + let old = pack(Some(b"\"hud\" { \"ui_version\" \"2\" }")); + let reason = outdated_hud_reason(&old).unwrap().unwrap(); + assert!(reason.contains("UI version 2; TF2 requires 3"), "{reason}"); + let error = refuse_outdated_hud_mod(&old).unwrap_err(); + assert_eq!(error.code(), "OutdatedHud"); + assert!(error.message().contains("Get an updated copy")); + // An `info.vdf` that declares no UI version is not HUD metadata. + let addon = pack(Some(b"\"Addon\" { \"version\" \"3\" }")); + assert_eq!(outdated_hud_reason(&addon).unwrap(), None); + assert_eq!(outdated_hud_reason(&pack(None)).unwrap(), None); + let current = pack(Some(b"\"hud\" { \"ui_version\" \"3\" }")); + assert_eq!(outdated_hud_reason(¤t).unwrap(), None); + assert!(refuse_outdated_hud_mod(¤t).is_ok()); + } + #[test] fn oversized_mods_name_their_size_the_limit_and_the_manual_route() { let message = oversized_mod_message(Some(1_503_238_554)); diff --git a/apps/desktop/src-tauri/core/src/profile.rs b/apps/desktop/src-tauri/core/src/profile.rs index edb9aaeb..1870a914 100644 --- a/apps/desktop/src-tauri/core/src/profile.rs +++ b/apps/desktop/src-tauri/core/src/profile.rs @@ -120,6 +120,8 @@ pub enum ProfileError { HudReviewRequired, HudLiveReviewRequired, HudImportRequired(String), + /// A pack carries HUD metadata TF2 no longer accepts. + OutdatedHud(String), KeptPackHandoff(Vec), PendingLiveHandoff, /// A drive lacks room for a write; the message names the drive and sizes. @@ -154,6 +156,7 @@ impl ProfileError { Self::HudReviewRequired => "HudReviewRequired", Self::HudLiveReviewRequired => "HudLiveReviewRequired", Self::HudImportRequired(_) => "HudImportRequired", + Self::OutdatedHud(_) => "OutdatedHud", Self::KeptPackHandoff(_) => "KeptPackHandoff", Self::PendingLiveHandoff => "PendingLiveHandoff", Self::NotEnoughSpace(_) => "NotEnoughSpace", @@ -200,7 +203,7 @@ impl ProfileError { "{name} is still saved as a Casual particle source on this profile. Deselect it and choose Apply mods, or Restore stock files, before removing its source pack." ), Self::HudReviewRequired | Self::HudLiveReviewRequired => "This setup contains more than one HUD. Review which HUD to keep before continuing. Original files will be preserved outside mounted HUD folders.".into(), - Self::HudImportRequired(message) => message.clone(), + Self::HudImportRequired(message) | Self::OutdatedHud(message) => message.clone(), Self::KeptPackHandoff(packs) => format!( "These kept packs are still installed: {}. Capture them in this profile before switching, or remove them from TF2 yourself.", packs.join(", ") diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index f702b1c0..a274e86f 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -112,7 +112,7 @@ Change install opens the finder with the previous install remembered in memory o - **Viewmodels** — has two views, In game and Per weapon, and opens on In game: viewmodel FOV, Draw viewmodel, Min viewmodels, left-handed viewmodels and the Comfig transparent-viewmodels addon toggle (the same addon state as Comfig, disabled while TF2 runs or busy and outside Comfig profiles). The four cvars stay in `execs_gameplay.cfg` under a separate `viewmodels` managed-cfg scope that native `managed_cfg` and the frontend agree on, so Gameplay, Crosshair, Sounds and Viewmodels saves never rewrite each other's lines. They autosave like Gameplay and wait for a complete startup cfg read. Per weapon holds the class tables and the saved pack; its apply bar stays in view from either view. Set every class… previews a whole-profile Show all, Hide all or Keep melee visible choice (Hidden or Hands only) as the exact list of rows that change, applies it only to the draft, and offers Undo until the next edit; melee inspect rows count as melee and shared-animation conflicts are disclosed before applying. It builds `tf/custom/execs-viewmodels.vpk` locally from the player's installed class animation MDLs: per class, one Shown / Hidden / Hands only choice per loadout slot (Primary, Secondary, Melee, PDA) and one Shown / Hidden choice covering every inspect animation; a slot reads as what most of its weapons use (a tie follows the stock weapon), and changing it moves only the weapons that follow it. Each class is one table of slot rows under shared Shown / Hidden / Hands only columns, each row naming its weapons. Single weapon groups, with spellbooks and the grappling hook (no slot) under Other, sit beneath it in a Customize weapons fold, each with its own choice; the fold opens by default when a weapon is set on its own, and its summary counts those weapons. A group without a choice stays shown: an animation it shares with a hidden group is left untouched (Soldier's Concheror reuses the Shovel's swings), and each class names hidden rows that stay partly visible this way; a selection whose every animation is shared with a shown group is refused. Shared animations set to Hidden and Hands only at once still refuse the build. The catalog identity includes this rule's version, so a pack built under an earlier rule reads as outdated and its choices return as an unbuilt draft. Groups are derived from installed sources without CompVMInstaller data, and the build recipe still records exact per-group choices. Applying from the pane's apply bar builds the pack (release builds included, without rendered previews); applying an all-shown draft over a built pack removes it. Profile export carries the build recipe and output digest, never the generated model bytes; import rebuilds from the recipient's own install and refuses source differences. It also imports, replaces and removes a user-provided compatible VPK, and earlier Yttrium-style packs retain their saved bytes and options through profile switch and export/import; legacy build and preview commands fail before I/O. Do not copy CompVMInstaller's source archive or group table. Custom viewmodels on Valve Casual need the profile's `+exec` preload launch option (see Launch). - **Sounds** — hit and kill sounds are exactly `tf/custom/execs-hitsounds/sound/ui/{hitsound,killsound}.wav` (the two names sv_pure exempts). Engine formats: 8/16-bit PCM or 4-bit MS-ADPCM at 11025/22050/44100 Hz; other WAVs are re-encoded, MP3-as-WAV refused. New choices are stock effects from the user's `tf2_sound_misc_dir.vpk`, the user's own WAV, MP3 or Ogg Vorbis clip (decoded by Symphonia in `audio_decode.rs`, at most 30 seconds, then prepared like a WAV; clips over a second carry a note), GameBanana hit and kill sound uploads handed over from Mods (listed as From GameBanana and saved like the player's own file), and comfig.app's hits library, the one retired catalog that came back. Its index is pinned to comfig-app commit `0dd0b076`, fetched from GitHub raw and cached by commit; sounds download on preview or use from `hits.comfig.app/<128-hex id>.wav` (an opaque id, not a byte digest), are validated as MS-ADPCM and cached as rebuildable downloads, and a boosted comfig sound re-encodes from its upload. The TF2Hitsounds catalog stays retired; its installed WAVs stay playable, switchable and exportable, but their baked boost cannot change. Sounds has two views: Hit and kill sound (game and music volume, the two slots, and a Pitch and repeat timing fold holding each sound's pitch and the hit repeat delay) and Sound library (search, filters, the list with one page control beneath it, and Remove sound files). A slot's Browse opens the library for that slot with the search focused, and a GameBanana handoff opens it too. A row's star and Use action show on hover or keyboard focus; a selected Use stays visible. The searchable library always chooses for one slot: a Hit sound / Kill sound switch, set by each slot's Browse, drives one Preview, one favorite star and one Use action per row ("Use [sound] for hits"). Show filters All, Favorites, Built into TF2 and comfig.app (your own file stays listed); Sort offers Suggested (yours, TF2's effects, comfig uploads made for the slot being chosen, then the rest, each in its source's own order), A to Z and Z to A. comfig publishes only names and ids, so there are no date or popularity sorts. Favorites are app-wide `localStorage`, never profile data. A compact preview dock floats at the bottom of Sounds with a preview volume (default 50%, app-wide `localStorage`) applied on top of each slot's Volume, a mute toggle and Stop; it never changes cvars or files. A selected Use stays focusable, and a row names the other slot when it holds that sound. **Boost** (0/6/12 dB, tanh soft clip) re-encodes a user-provided or comfig.app file louder because the engine caps `tf_dingaling_volume` at 1. A saved custom WAV remains dormant when a nonzero built-in effect plays, and Sounds offers Use saved sound; selecting the default file effect or explicitly removing or replacing the file clears it. `sound.cache` is deleted on apply. Sound CVars, autoexec wiring, WAVs and the hitsound record commit in one recoverable profile transaction. Accepted external managed WAV drift marks sound provenance changed until every old installed slot is replaced or removed; Sounds shows a repair warning. Sounds scans other mounted `tf/custom` packs for the two canonical virtual paths and reports candidate competitors and incomplete scans; it does not claim which file TF2 plays in-game. - Sounds also owns TF2's Game volume (`volume`) and Music volume (`snd_musicvolume`): two 0–100% sliders at the top of the pane write them into the profile's `execs_gameplay.cfg` under the `sounds` managed-cfg scope (native `managed_cfg` and the frontend agree), so they run after `config.cfg` and a replaced or default `config.cfg` cannot reset them. Values keep TF2's exact decimals until a slider moves. The after-game sync updates these lines when TF2's options changed them in `config.cfg` (0–1 only) and never adds them; Copy sound settings carries them. -- **Mods** opens on three task surfaces: **Browse**, **Custom packs**, and **Casual setup**. Browse uses GameBanana game id **297** through `Mod/Index`, or `Sound/Index` when its Mods / Sounds switch is on Sounds, for listings and name search; each section has its own categories. GameBanana numbers mods and sounds separately, so every id travels with its section, and a saved record names it in its page URL (`/mods/` or `/sounds/`), which update checks follow; `Generic_Name=contains,`, a selected `Generic_Category`, and mature-off `Generic_ContentRatings=-` compose server-side. New is the default; Popular, Likes, Views, Updated and New preserve upstream order and map to `Generic_MostDownloaded`, `Generic_MostLiked`, `Generic_MostViewed`, `Generic_LatestUpdated` and `Generic_Newest`. Added and updated dates stay distinct, unavailable metrics remain unknown, and All-category totals are estimates because non-GUI excluded roots are filtered locally. GUI results in the HUDs subcategory install as the profile's HUD, never as a custom pack: the card offers Install HUD, the file chooser lists only ZIP, 7z and RAR files and says which HUD it replaces, and native code rechecks the category and the chosen file, then runs the archive through the HUD importer's reader and checks and installs it as a `Local` HUD record named after the listing. The card of the installed HUD shows Installed and opens the HUD pane. Every other GUI mod (menus, icons, fonts, scoreboards, loading screens) installs like any other mod, while the pack installer still refuses a payload that is a HUD. Direct installs read the mod's immediate category to tell the two apart. Maps install too (Decal Tool, Prefabs and Serverside Weapons stay hidden): a `.bsp` outside any content folder goes into the pack's `maps` folder with the files beside it named after it (`.nav`, `_*.txt`), and `_*.pop` MvM missions go into `scripts/population`. Several maps are separate choices, a map beside content folders joins that pack, and map cards say how to play one (console `map `). A GameBanana download with one installable choice installs under the mod's title; greyed-out choices beside it do not count. Completion, not the visible row count, controls Next. Native and renderer caches are bounded with a ten-minute fresh lifetime; Refresh and Retry bypass both while preserving the request. Cards identify GameBanana explicitly, paging appears above and below results, and one Import mod flow accepts a VPK/archive or extracted folder. **Custom packs** holds `ModRecord`s over ordinary `tf/custom` packs, including accepted external packs; a Show in Mods link from a Crosshair or Sounds conflict notice opens it scrolled to that pack and marks its row, or says the folder is not one of the profile's custom packs; Single-volume RAR4/RAR5 archives are supported; multi-part VPKs and unsupported archive features are refused with a message. In the chooser, a split, leftover or unreadable VPK greys out only that choice with its reason; it never fails the rest of the archive. Content folders are `materials`, `models`, `sound`, `particles`, `scripts`, `resource`, `cfg`, `maps` and `media` (startup videos). **Casual setup** owns the itemtest preload cfg, gameinfo bypass, four direct-author addon choices, saved legacy cueki choices from an exact verified local `mods.zip` cache, and installed profile mods that carry `particles/*.pcf` as particle sources. Duplicate-carrier PCFs are rebuilt from the user's own vanilla files; `blood_trail` maps to `npc_fx`. A selected particle source cannot be removed directly or accepted as an external removal until its selection changes. A resized `tf2_misc` (TF2 update) judges every entry by its stock CRC; untracked modified entries are repaired through `steam://validate/440`. +- **Mods** opens on three task surfaces: **Browse**, **Custom packs**, and **Casual setup**. Browse uses GameBanana game id **297** through `Mod/Index`, or `Sound/Index` when its Mods / Sounds switch is on Sounds, for listings and name search; each section has its own categories. GameBanana numbers mods and sounds separately, so every id travels with its section, and a saved record names it in its page URL (`/mods/` or `/sounds/`), which update checks follow; `Generic_Name=contains,`, a selected `Generic_Category`, and mature-off `Generic_ContentRatings=-` compose server-side. New is the default; Popular, Likes, Views, Updated and New preserve upstream order and map to `Generic_MostDownloaded`, `Generic_MostLiked`, `Generic_MostViewed`, `Generic_LatestUpdated` and `Generic_Newest`. Added and updated dates stay distinct, unavailable metrics remain unknown, and All-category totals are estimates because non-GUI excluded roots are filtered locally. GUI results in the HUDs subcategory install as the profile's HUD, never as a custom pack: the card offers Install HUD, the file chooser lists only ZIP, 7z and RAR files and says which HUD it replaces, and native code rechecks the category and the chosen file, then runs the archive through the HUD importer's reader and checks and installs it as a `Local` HUD record named after the listing. The card of the installed HUD shows Installed and opens the HUD pane. Every other GUI mod (menus, icons, fonts, scoreboards, loading screens) installs like any other mod, while the pack installer still refuses a payload that is a HUD. A payload whose `info.vdf` declares a UI version other than 3 is an outdated HUD and is never installed as a pack: the file review disables that choice with the HUD importer's reason, and the installer refuses it (`OutdatedHud`). A pack with no `info.vdf`, or one that declares no UI version, is an ordinary mod. Direct installs read the mod's immediate category to tell the two apart. Maps install too (Decal Tool, Prefabs and Serverside Weapons stay hidden): a `.bsp` outside any content folder goes into the pack's `maps` folder with the files beside it named after it (`.nav`, `_*.txt`), and `_*.pop` MvM missions go into `scripts/population`. Several maps are separate choices, a map beside content folders joins that pack, and map cards say how to play one (console `map `). A GameBanana download with one installable choice installs under the mod's title; greyed-out choices beside it do not count. Completion, not the visible row count, controls Next. Native and renderer caches are bounded with a ten-minute fresh lifetime; Refresh and Retry bypass both while preserving the request. Cards identify GameBanana explicitly, paging appears above and below results, and one Import mod flow accepts a VPK/archive or extracted folder. **Custom packs** holds `ModRecord`s over ordinary `tf/custom` packs, including accepted external packs; a Show in Mods link from a Crosshair or Sounds conflict notice opens it scrolled to that pack and marks its row, or says the folder is not one of the profile's custom packs; Single-volume RAR4/RAR5 archives are supported; multi-part VPKs and unsupported archive features are refused with a message. In the chooser, a split, leftover or unreadable VPK greys out only that choice with its reason; it never fails the rest of the archive. Content folders are `materials`, `models`, `sound`, `particles`, `scripts`, `resource`, `cfg`, `maps` and `media` (startup videos). **Casual setup** owns the itemtest preload cfg, gameinfo bypass, four direct-author addon choices, saved legacy cueki choices from an exact verified local `mods.zip` cache, and installed profile mods that carry `particles/*.pcf` as particle sources. Duplicate-carrier PCFs are rebuilt from the user's own vanilla files; `blood_trail` maps to `npc_fx`. A selected particle source cannot be removed directly or accepted as an external removal until its selection changes. A resized `tf2_misc` (TF2 update) judges every entry by its stock CRC; untracked modified entries are repaired through `steam://validate/440`. - Applying or switching to Casual setup's `Flat Textures v1`, `Developer Textures Overhaul v2`, `No Burning Overlay` or `No Sentry Shield Overlay` choice fetches a pinned author file directly from GameBanana (files 677961, 700047 and Square Series 1261092), verifies the complete archive and exact game payload, and packs the selection locally. Saved selection names stay the same; these direct choices alone or together work without cueki's `mods.zip`. New cueki library choices and downloads are retired. Previously saved choices remain visible and can reapply or switch only with the original hash-verified cache. When an inactive profile lacks that cache, a revision-bound review can remove only its retired library addons and particle collections, preserve direct-author and profile-owned choices, and retry the switch; Cancel leaves it unchanged. The current author checklists allow direct download and install but don't settle every contributor or sharing right, so retired sources stay retired, and bytes a profile already owns remain usable and exportable with the export disclosure. - Particle overlaps: Before Apply, Casual setup lists every particle file two selected sources supply, with all providers and the winner computed in the native planner's order (library particles in selection order, then profile mods in selection order; lowercase names; the last provider replaces the whole file, never merged). Use [mod] reorders the draft explicitly; a library source is never offered as able to beat a profile mod. Skipped files carry advice by reason. - GameBanana sound uploads in the Hitsound (381) and Killsound (2630) categories never install as custom packs, because those files compete with the two paths Sounds owns. Their card offers Use in Sounds: native code rechecks the category, downloads the chosen file (an archive or a lone WAV/MP3/Ogg), prepares up to 32 of its audio files exactly like a picked file, stashes them and opens the Sounds library aimed at the slot the upload was made for. Nothing is written until the player chooses Use, so a running TF2 does not block it. Native Mods install refuses these categories, and a sound whose category cannot be verified is refused too. Every mod review flags a choice that ships `sound/ui/hitsound.wav` or `killsound.wav`: it says the file can override the Sounds choice and is never preselected. diff --git a/docs/guide/mods.md b/docs/guide/mods.md index 7af354e4..f10395ad 100644 --- a/docs/guide/mods.md +++ b/docs/guide/mods.md @@ -9,7 +9,7 @@ Listings and files come from [GameBanana](https://gamebanana.com/games/297); eve - **Mods** and **Sounds** are GameBanana's two TF2 sections; each has its own categories. - **Popular**, **Likes** and **Views** use GameBanana's all-time counts. **Updated** and **New** use the dates GameBanana shows. With no category picked, totals are estimates, because execs hides categories it can't install (decal tools, prefabs, server weapons). - **Maps** install into the pack's `maps` folder, with their bot navigation and MvM missions. Play one with `map` and the map's name in the console, offline or on a server you host. -- **HUDs** install as your profile's HUD, not as a custom pack. **Install HUD** lets you pick the author's file and tells you which HUD it replaces; afterwards the card shows Installed and **Open HUD** takes you to the HUD pane. Other GUI mods (menus, icons, fonts, loading screens) install like any mod. If a file you import or download from another category turns out to be a HUD, the file review offers **Install as HUD** for it; a HUD packed in a VPK has to be extracted and imported in the HUD pane. +- **HUDs** install as your profile's HUD, not as a custom pack. **Install HUD** lets you pick the author's file and tells you which HUD it replaces; afterwards the card shows Installed and **Open HUD** takes you to the HUD pane. Other GUI mods (menus, icons, fonts, loading screens) install like any mod. If a file you import or download from another category turns out to be a HUD, the file review offers **Install as HUD** for it; a HUD packed in a VPK has to be extracted and imported in the HUD pane. An outdated HUD (one made for an older TF2 interface version) is greyed out in the file review; get an updated copy from its author. - **Hit and kill sounds** open in Sounds instead of installing. When a mod has several files, execs lists them with their names, sizes and dates so you can pick one. Split uploads (part 1, part 2…) can't be joined by execs; follow the author's instructions and use **Import mod** with the extracted files.