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
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/723"
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?
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T12:56:03Z.
Claimed in the coordination issue as: OLD-7895 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132079608
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).
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:15:57Z.
Review: APPROVED
LGTM. Helpful diagnostic improvement in make_game.py: distinguishes an incomplete/in-progress download from an unsupported version by detecting partial manifest matches (>=50%) and listing missing/wrong-sized files. Extensive test coverage in est_make_game_preflight.py.
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T22:26:14Z.
Merged:
make_game: an incomplete copy is named as a partial match of its version, with what is missing.main, and no review point is open.tests/test_make_game_preflight.pypasses onmain+ this head (Linux, CPython 3.14).main3daeb1e11+6e15812e5: the semantic suite passes (492 files, 6,315 tests, 0 files failed);test_make_game_preflightpass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.AI-assisted (Claude Code, Claude Opus 5.5).