OLD-7895: restore old upstream PR 7895 - make_game: an incomplete copy is named as a partial match of its version, with what is missing #723
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!723
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/723/head"
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?
@aslan2142 on GitHub · 2026-11-24 12:56 UTC · original
aslan2142:build2835-partial-version-match→main· +193 −1 · 2 files · 3 commits · merged 2026-11-25 22:26 UTCClaimed in the coordination issue as: OLD-7895 #14
Restoration of my original pull request, old upstream PR 7895 in
ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at51f3160923; the three commits cherry-picked cleanly and nothing needed adapting (the case-sensitive probe hint that landed in the meantime is unchanged).What and why
load_version()only looks at the three probe files (MicrosoftGame.Config,Catalog000.bin,appdata0.rpf). So a copy whose download stopped before one of them got the same message as another game: "This doesn't look like a supported version of the game".FileNotFoundErrorandNotADirectoryErrorcount as missing, as inprobe_mismatches(). A file that raises anotherOSError(for examplePermissionError) is listed as "cannot read", with advice to make it readable. In that case the message doesn't say "Finish the download".Tested
Linux, Python 3.14.10, CPU only. Synthetic manifests and empty or truncated files only, no game files.
python -I tests/test_make_game_preflight.py:PartialVersionMatchTesthas 9 cases:python -m compileall -q make_game.py tools tests,python -I make_game.py --help,git diff --checkandpython -I scripts/check_no_game_data.py make_game.py tests/test_make_game_preflight.pyall pass.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)AI-assisted (Claude Code, Claude Opus 5.5).