CLI: discover pipeline packs in archives without shader containers #1806

Closed
github-bot wants to merge 1 commit from gh-pr/1806/head into gh-pr/1806/base
Owner

@⁠EatCodeSleep2 on GitHub · 2026-11-24 22:52 UTC · original
EatCodeSleep2:fix/keep-embedded-pipeline-packs → main · +4 −1 · 1 files · 1 commits · closed without merging

The prebuild input filter currently drops an SGD5 archive before pack discovery if the archive contains no discoverable shader containers. Keep SGD5 candidates so the existing pack finder can inspect them. The shader containers can be supplied separately.

Reproduced on Windows with a synthetic archive containing only an embedded compressed pack. Main reported no shader pack and wrote no key listing. The fixed CLI listed all 80 records when given either the embedded archive or the standalone pack. CLI and victory-game tests passed (16 total), and strict CLI Clippy passed.

AI use: Codex wrote and tested the change.

**@⁠EatCodeSleep2** on GitHub · 2026-11-24 22:52 UTC · [original](https://github.com/Marvisak/VIctory/pull/1806) `EatCodeSleep2:fix/keep-embedded-pipeline-packs` → `main` · +4 −1 · 1 files · 1 commits · closed without merging The prebuild input filter currently drops an SGD5 archive before pack discovery if the archive contains no discoverable shader containers. Keep SGD5 candidates so the existing pack finder can inspect them. The shader containers can be supplied separately. Reproduced on Windows with a synthetic archive containing only an embedded compressed pack. Main reported no shader pack and wrote no key listing. The fixed CLI listed all 80 records when given either the embedded archive or the standalone pack. CLI and victory-game tests passed (16 total), and strict CLI Clippy passed. AI use: Codex wrote and tested the change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:45:11 +00:00
github-bot closed this pull request 2026-11-26 04:45:11 +00:00
Author
Owner

@⁠DesertGamer on GitHub · 2026-11-24 22:56 UTC · original

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

**@⁠DesertGamer** on GitHub · 2026-11-24 22:56 UTC · [original](https://github.com/Marvisak/VIctory/pull/1806#issuecomment-7146819812) ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:28 UTC · original

Automated triage for the maintainers.

Merge candidate. prebuild::run (apps/victory/src/prebuild.rs) dropped files that were neither a shader pack nor held any shader containers. That included SGD5 archives that hold only the pipeline databases, which the code reads just below (sgd5::databases, and the is_sgd5 filter on line 59). The input filter now also keeps files victory_game::sgd5::is_sgd5 accepts. That makes the two filters agree. It is a one-line change.

Same function as #1805 and #1809; small rebase for whichever lands later.

CI: check failing, in victory-shader tests this PR does not touch (synthetic_tests gathers and permutes) on its older base. A re-run on current main would confirm.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/1806#issuecomment-7154829034) <!-- victory-triage v1 head=1c6593384f8f3878ecb8e78a9acdfcc70661b1f3 verdict=merge-candidate at=2026-11-25T06:30:30Z --> Automated triage for the maintainers. **Merge candidate.** `prebuild::run` (`apps/victory/src/prebuild.rs`) dropped files that were neither a shader pack nor held any shader containers. That included SGD5 archives that hold only the pipeline databases, which the code reads just below (`sgd5::databases`, and the `is_sgd5` filter on line 59). The input filter now also keeps files `victory_game::sgd5::is_sgd5` accepts. That makes the two filters agree. It is a one-line change. Same function as #1805 and #1809; small rebase for whichever lands later. CI: `check` failing, in `victory-shader` tests this PR does not touch (`synthetic_tests` gathers and permutes) on its older base. A re-run on current `main` would confirm. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 22:02 UTC · original

Automated triage for the maintainers, second look (a review against current main, with builds and tests where they could change the verdict).

Closing because the title's pack is already found on main, and the wider filter has a cost. The first filter keeps files that start with the pack magic or yield sources(); the title's pack sits in an archive beside its shader records, so sources() is non-empty there, and a standalone pack starts with the magic. The only input this helps is an archive with an SGD5 tag but no parseable records, which is synthetic. is_sgd5 is a four-byte search anywhere in the file, so the widened filter would also keep any file up to 2 GiB that holds those bytes by chance in memory for the whole pre-build, and run the zlib scan over it.

If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 22:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/1806#issuecomment-7175861584) Automated triage for the maintainers, second look (a review against current `main`, with builds and tests where they could change the verdict). Closing because the title's pack is already found on `main`, and the wider filter has a cost. The first filter keeps files that start with the pack magic or yield `sources()`; the title's pack sits in an archive beside its shader records, so `sources()` is non-empty there, and a standalone pack starts with the magic. The only input this helps is an archive with an `SGD5` tag but no parseable records, which is synthetic. `is_sgd5` is a four-byte search anywhere in the file, so the widened filter would also keep any file up to 2 GiB that holds those bytes by chance in memory for the whole pre-build, and run the zlib scan over it. If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1806
No description provided.