Title profile: a table file that is not beside it is named, and a folder installs #465
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!465
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-465"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@erdemcisse on GitHub · 2026-12-02 14:25 UTC · original
erdemcisse:title-profile-table-files→main· +119 −12 · 4 files · 2 commits · closed without mergingA title profile is a folder, not a file:
profile.tomlnames table files that have to sit beside it, andbcpackis the one that decides whether packed textures are decoded at all. Two things around that were wrong, and both of them show up as "the launcher says it is fine and nothing works".title-profile statussaidloadedand stopped atprofile.toml. The tables were only ever checked byinstall, so a profile whose table file was left behind — or was a different file of that name — reportedloaded, the launcher lit the options that need a profile, and the run went on to saydstorage: BCPack requests fail: no BCPack table file: …in a log nobody reads. That is the state a player lands in after copying the two files they were given to the wrong folder, or under the wrong name; the last unanswered comment on #426 is this question.statusnow reads every table the profile names, with the checkinstallalready made, and names what is not as it says afterloaded:The profile still counts as loaded. Its patches and shaders are the reason the options turn on, and a table only decides textures, so nothing is greyed out that used to work; the launcher's profile row now shows the reason after
loadedinstead of a bare "loaded".installrefused a profile that was already installed. Each table was copied withstd::fs::copy, and copying a file onto itself fails on Windows (ERROR_SHARING_VIOLATION, "being used by another process"). The launcher's file dialog opens in the folder it was last used in, so choosing the installedprofile.tomlagain came back asrefused … a title profile table was refused: …: The process cannot access the file. A table file already in place is now left alone.installtakes the folder.victory title-profile install <folder> <executable>reads<folder>/profile.toml, which is how the format doc describes a profile (a folder withprofile.tomland its tables) and how the game folder andVICTORY_TITLE_PROFILE_DIRare already treated.The shader tools were prepared as if there were no profile. The launcher stamps the shader preparation so it knows when to translate ahead, and it took the folder by dropping
loadedfrom the status line. A line that now ends in an explanation turns into a path that cannot exist (…\profiles\<hash>: bcpack: … does not hash as the profile says\profile.toml), so with such a profile the tools were prepared without the profile the run was using. The folder is now split off once, inSettings.ProfileFolder, and both the profile row and the stamp take it from there.Tests, in the crate's own style: a profile whose table is missing, and one whose table is another file of that name, come back as
Incompletewith the table named; installing again from the folder it was installed to goes through; a folder stands for the profile file in it.cargo test -p victory-profilepasses (19 tests),cargo check -p victoryis clean, clippy with-D warningson both crates is clean, and the launcher compiles.Statusgains one variant (Incomplete);install_filekeeps its signature. The format, what a profile is for, and the places it is looked in are unchanged, anddocs/title-profile-format.mdsays the new behaviour in its install paragraph.A profile that loads without one of its table files says so on the status line: the folder after "loaded ", then why ("bcpack: ... does not hash as the profile says"). Two places in the launcher read everything after "loaded " as the folder itself. The row in the title-profile section now shows the explanation, and the stamp the shader tools are prepared with turned that explanation into part of a path: with such a profile the tools were prepared as if no profile were loaded, and translated the shaders the profile names by role without it. The line is now split once, in Settings.ProfileFolder, and both places take the folder from there. The row still says which table file is missing and why.@erdemcisse on GitHub · 2026-12-02 15:54 UTC · original
Re-checked on a Windows 11 machine today, at
d0f06d8, against upstream main7dbcdcb(unchanged since the PR opened, so no rebase was needed):cargo test --locked -p victory-profilecargo check --locked -p victorycargo clippy --locked -p victory-profile -p victory --all-targets -- -D warningsscripts/build-launcher.ps1built ...\target\launcher\Foxhound.execargo xtask policyasset policy: 329 files okBuilt with the toolchain the repository pins (
1.98.1, msvc;rust-toolchain.tomlnames the channel, and a machine whose rustup default host is gnu needsRUSTUP_TOOLCHAIN=1.98.1-x86_64-pc-windows-msvcfor thewindows-*crates to link). The launcher file is built by the csc the script uses (C# 5), which CI does not run.@erdemcisse on GitHub · 2026-12-03 15:14 UTC · original
Closing: superseded by
74941fcanda22cdefon main.statusnow reports missing table files (tables=missing:<name>), andinstall_filereads each table before writing it, so installing again from the installed folder no longer fails. The only part not carried over is a folder as the CLI argument toinstall, which the launcher's file dialog never passes. Rebasing would add nothing.Pull request closed