runtime: name the missing BCPack predictor instead of a blank picture (BCPACK-PREDICTOR-DIAGNOSTIC) #1660

Closed
slauko wants to merge 1 commit from upstream-pr/1660 into main
slauko commented 2026-11-25 07:26:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by slauko on 2026-11-25T07:26:35Z.


Claimed in the coordination issue as: BCPACK-PREDICTOR-DIAGNOSTIC (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7155841781).

What and why

docs/linux_proton.md lists 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.bcph and fell back silently, and the runtime stage generated it with tools/build_dstorage_history.py --if-needed without checking the result.

  • The runtime's DStorage open line now names the expected path (or LEONIDA_DSTORAGE_HISTORY), the generator, and the consequence (loading art and most BC7 textures stay empty).
  • The runtime stage warns when the generation did not leave the profile behind.

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.py
  • python -I tests/test_make_game_argparse.py — unchanged and green.
  • The C++ change is a string in an existing log_once; the Windows runtime CI compiles it.

No game data: the tests use an empty temporary directory and a synthetic BCPHIST1 file.

AI-assisted: yes.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5487048995 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1660). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T07:26:35Z. --- Claimed in the coordination issue as: BCPACK-PREDICTOR-DIAGNOSTIC (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7155841781). ### What and why `docs/linux_proton.md` lists 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.bcph` and fell back silently, and the runtime stage generated it with `tools/build_dstorage_history.py --if-needed` without checking the result. - The runtime's DStorage open line now names the expected path (or `LEONIDA_DSTORAGE_HISTORY`), the generator, and the consequence (loading art and most BC7 textures stay empty). - The runtime stage warns when the generation did not leave the profile behind. 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.py` - `python -I tests/test_make_game_argparse.py` — unchanged and green. - The C++ change is a string in an existing `log_once`; the Windows runtime CI compiles it. No game data: the tests use an empty temporary directory and a synthetic `BCPHIST1` file. AI-assisted: yes.
whoalin1 commented 2026-11-25 08:24:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by whoalin1 on 2026-11-25T08:24:47Z.


Independent verification (native Windows): diagnostics-only change (log string + make_game warning). test_make_game_dstorage_profile.py 2 tests OK; ctest -R dstorage passes on both RTX 4070 SUPER and AMD gfx1036 iGPU. AI-assisted verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7156993548 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1660#issuecomment-7156993548). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-25T08:24:47Z. --- Independent verification (native Windows): diagnostics-only change (log string + make_game warning). `test_make_game_dstorage_profile.py` 2 tests OK; `ctest -R dstorage` passes on both RTX 4070 SUPER and AMD gfx1036 iGPU. AI-assisted verification.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1660
No description provided.