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

Open
opened 2026-11-26 20:22:03 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • cbb8cb1 runtime: 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.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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1660 **Author:** [@slauko](https://github.com/slauko) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `bcpack-predictor-diag` --- ### 📝 Commits (1) - [`cbb8cb1`](https://github.com/ubiquitarianism/leonida/commit/cbb8cb16977867bc95185d43c8b6c14311a226fd) runtime: name the missing BCPack predictor instead of a blank picture (BCPACK-PREDICTOR-DIAGNOSTIC) ### 📊 Changes **4 files changed** (+59 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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.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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1674
No description provided.