mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #1660] runtime: name the missing BCPack predictor instead of a blank picture (BCPACK-PREDICTOR-DIAGNOSTIC) #1674
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1674
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1660
Author: @slauko
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:bcpack-predictor-diag📝 Commits (1)
cbb8cb1runtime: name the missing BCPack predictor instead of a blank picture (BCPACK-PREDICTOR-DIAGNOSTIC)📊 Changes
4 files changed (+59 additions, -3 deletions)
View changed files
📝
docs/linux_proton.md(+4 -2)📝
make_game.py(+14 -0)📝
runtime/shims/dstorage.cpp(+4 -1)➕
tests/test_make_game_dstorage_profile.py(+37 -0)📄 Description
Claimed in the coordination issue as: BCPACK-PREDICTOR-DIAGNOSTIC (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7155841781).
What and why
docs/linux_proton.mdlists three setup mistakes that each give a blank or empty picture. Two are owned elsewhere (#1528 for SDL3/input, #387 for the executable's embedded shaders); the third is the missing BCPack predictor profile. The runtime already opened<work>/bcpack/history.bcphand fell back silently, and the runtime stage generated it withtools/build_dstorage_history.py --if-neededwithout checking the result.LEONIDA_DSTORAGE_HISTORY), the generator, and the consequence (loading art and most BC7 textures stay empty).No behaviour change: an existing profile is loaded exactly as before, and an absent one keeps the built-in codec policy; only the message and the warning are new.
Tested
python -I tests/test_make_game_dstorage_profile.py— 2 tests: a missing profile names the path, the generator and the BC7 consequence; a present profile returns no hint.python -m compileall -q make_game.py tests/test_make_game_dstorage_profile.pypython -I tests/test_make_game_argparse.py— unchanged and green.log_once; the Windows runtime CI compiles it.No game data: the tests use an empty temporary directory and a synthetic
BCPHIST1file.AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.