feat(builder): the game's own banner for the launcher's Steam tile, from the player's own movie #2353

Open
omgitsgela wants to merge 10 commits from omgitsgela/Longshot:feat/steam-hero-banner into main
Member

Summary

The tile's big banner on a game's details page gets the launcher's generated capsule today. The game's own cinematic footage makes a better one, and it is already in the player's own dump. This is the builder half of that: the launcher half (LongshotLauncher#260) is merged and prefers a longshot_hero.png in the game folder for that slot, dropping its generated logo capsule beside it.

Nothing composed ships. The finish stage decodes one pinned frame of the player's own Event/Movie/Dm_StaffCredit_0005.webm out of their romfs (whole-file frame 829), cuts the 1920x620 band, and draws Longshot's mark on it at the banner's own em-ratio geometry, in the game folder on the player's PC. All the pieces are the player's own or the repository's: assets/longshot.png (the start-up screen's glyph master), third_party/fonts/libertinus/LibertinusSerif-Semibold.ttf (the face its fallback word is set in), and the player's own movie. The composed picture exists only in the player's game folder, and no screenshot of it can be posted here either: it carries the player's own game footage.

Reviewer reads first: builder/crates/build-assets/src/hero.rs (the recipe, the decode, the band, the mark, the never-replace rule) and its two hooks, Finish::hero in build-assets/src/lib.rs and the game_banner step in build-driver/src/{stages,assets,build}.rs.

This replaces the Python nx2/game_hero.py the pull request carried before the Rust builder landed (#2286 deleted the Python builder): same recipe, same numbers, now a step of longshot-builder.

The mark is glyph over word only. The start-up screen's gold flourish under the wording is deliberately not drawn: a maintainer asked for the line under LONGSHOT's wording to come out, and it is out of every asset this makes; LongshotLauncher#330 took it out of the generated capsules too.

Review's publication fault, fixed

The banner was being written into the finish's staging folder, so it published under data/ while the launcher reads the game folder's own longshot_hero.png: no player would have seen it. game_banner now builds on AssetPlaces::out, the player's game folder, so both the existing-file check and the write are the launcher's own file. builder/crates/build-driver/tests/banner.rs holds it: a whole banner there is left byte for byte and nothing is staged; without one the step reads the movie out of the game folder's romfs (a step reading staging would find no movie and say so instead of failing) and still stages nothing.

The decoder is the build's own

The step does not ask the player's PC for an ffmpeg. A Windows PC has none at all, and a Steam Deck's is whatever its system image ships that month (3.6 shipped FFmpeg 6.1.1, 3.8 and 3.9 7.1.1, the 3.9.5 package list 8.1.2), so a banner that needed one would simply never appear for most players.

This adds ffmpeg-cli to the builder's tools (builder/tools/{linux-x64,windows-x64}/ffmpeg-cli.sh, in make.sh's list and tools.lock's comment): FFmpeg 9.0.2's own program from the same pins as the libraries the game links, static, LGPL, built with dav1d 1.5.4. It carries exactly what one frame needs and nothing else: the matroska demuxer, the VP8/VP9/dav1d decoders, the select/scale/format filters, and the rawvideo muxer, with the network, every other codec, the PNG encoder and ffprobe/ffplay out. hero::decoder prefers <root>/tools/ffmpeg-cli/bin/ffmpeg, then LONGSHOT_FFMPEG_BIN, then the PATH (the developer's fallbacks).

The frame now comes back as raw rgb24 rather than a PNG, so the tool needs no PNG encoder and no zlib, and the step's check is the exact byte count (1920x1080x3) rather than a PNG header. The band cut and the mark draw are unchanged.

One step is left, and it is not code: a tools.lock line cannot name an archive that is not in Longshot's store, and uploading needs RELEASE_TOKEN (a token with write access to the organization's packages) that only MagicBeanAdmin/Release's longshot-tools.yml holds. So this pull request lands the recipes and the lookup; after it merges, dispatch Check tools with linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli (proves the recipes make the same archive twice), run Longshot tools, and commit its two lines here (with the two names added to tools::lock::REQUIRED). Until then the step falls back to LONGSHOT_FFMPEG_BIN or the PATH, and a PC with neither says so and leaves no banner: nothing breaks, the banner just is not made.

Testing

Tested: Linux, this PC, x86_64 (Ubuntu 24.04, Rust 1.100 against the repo's edition/toolchain), plus the build tools built here by builder/tools/make.sh.

  • The Linux tool, end to end: builder/tools/make.sh --out … linux-x64/ffmpeg-cli made and packed ffmpeg-cli.tar.zst (2,979,256 bytes, SHA-256 764362cf5203fc787e67cca631386706d3f22024feda57c28a859f1d4d5f3ee9, 5 entries: bin/ffmpeg and three licence files). The program is statically linked (not a dynamic executable), reports ffmpeg version 9.0.2, has the matroska demuxer, VP8/VP9/libdav1d decoders, select/scale/format filters, rawvideo muxer and encoder, and file/pipe protocols, and nothing else.
  • The decode the step does: on a synthetic 900-frame 1920x1080 VP9 webm, ffmpeg -vf select=eq(n\,829) -frames:v 1 -pix_fmt rgb24 -f rawvideo from the built tool wrote 6,220,800 bytes, byte-identical to the same command with the system ffmpeg (sampled max delta 0). The archive was unpacked and the program run from its own bin/, as the builder runs it.
  • cargo test -p build-assets: 76 pass; the banner's 8 among them, including the new the_builders_own_ffmpeg_comes_first (the unpacked tool wins over the PC's) and the raw-frame past-the-end check.
  • cargo test -p build-driver: 169 pass, plus the new banner test above.
  • cargo clippy -p build-assets -p build-driver --all-targets: clean; cargo fmt --all --check: clean.
  • The Windows tool: cross-built and packed here by the same make.sh (ffmpeg-cli.tar.zst, 5,786,432 bytes, SHA-256 ea1fab0ce4cba5e341455442ab5afaa380a0a320b31c0f9fb59e5828169e1be8, 5 entries, bin/ffmpeg.exe and the licences). Its only imported DLLs are Windows' own (KERNEL32, SHELL32, bcrypt and the UCRT forwarders, all in Windows 10 and newer): no libwinpthread, no runtime beside it. It was not run: there is no Windows here, and no Wine to run it under.

Still to test:

  • A PC with the dump: run the finish (or LONGSHOT_HERO_ROMFS=<romfs> cargo test -p build-assets the_dump_on_this_pc_makes_the_banner), expect a whole 1920x620 longshot_hero.png with the mark at the approved anchor, and the tile showing it with no logo beside it (the launcher half is merged). By hand, on the owner's PC: the dump this was approved on is not on the PC the pull request was made on.
  • Both recipes in CI's own environment: dispatch Check tools with linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli (Ubuntu 22.04 container, each archive made twice and compared), the step before the upload (by hand). The Linux archive here was made on Ubuntu 24.04 with this PC's meson/nasm/zstd, so its bytes are not the ones the container will make; only the container's count.

Measurements

Nothing to measure: a build-time step, once per build, beside the finish's other steps, and nothing runs when the game starts: one ffmpeg decode of the first 829 frames of a 13.8 s 1080p movie and one 1920x620 composite and PNG encode, only when the banner is not already in the game folder. The decoder it needs costs a one-time 2.8 MB (Linux) or 5.5 MB (Windows) in the builder's tools, zstd and static; the game's own libraries are unchanged and nothing of it is linked into the game. The decode itself, measured here: 0.69 s and 132 MB peak for 830 frames of a 900-frame 1920x1080 movie, once per build and only when the game folder has no whole banner.

Risks

Contained: one optional file in the player's game folder (longshot_hero.png), written only when nothing stands at that name, never replaced, never removed (it is not in the finish's made-files list, so a build that makes none cannot take a player's away). No game file is read into the repository, into a commit or into a log. The new tool is a static LGPL build of FFmpeg and dav1d made from pinned sources, distributed with their licence files in the archive (FFmpeg-COPYING.LGPLv2.1, FFmpeg-LICENSE.md, dav1d-COPYING) and no --enable-gpl/--enable-nonfree; the recipes and pins are in the tree, which is the source offer. A revert is enough.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, as Testing says: the tool built and run, the step's tests and clippy/fmt; the real-dump run is named in Still to test because this PC no longer has the dump.
  • mise run test passes (any failure that also fails on main is named). (its Rust half does on this PC: cargo test -p build-assets -p build-driver 75 + 169 pass, clippy and fmt clean; the Python suite the old builder had went with nx2, and this change adds no Python)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible. (no dependency added: the tool is built from the pinned FFmpeg/dav1d sources already in pins.sh)

When it applies

  • A check under tests/ that reads changed source is updated, not weakened. (the new tests live with the module, build-assets/src/hero.rs; the driver's test stand-in already has the step)
  • No switch added: LONGSHOT_FFMPEG_BIN names an existing ffmpeg where the PATH's or the builder's own is not wanted, read like the builder's other environment input (LONGSHOT_FFMPEG names the libraries the game links, a different thing). LONGSHOT_HERO_ROMFS is the real-dump test's, read by nothing else.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux: the tests and clippy above. Windows: python3 -I scripts/longshot_builder.py build --target windows built longshot-builder.exe for x86_64-pc-windows-gnullvm with llvm-mingw on this PC, this change included)
  • Docs updated. (docs/dev/reference/releases.md's tool table and recipes, docs/dev/setup.md's tool list, tools.lock's comment header)
  • AI assistance recorded with Assisted-by: trailers.

The screenshots box is deleted on purpose: the before/after pair here is a banner carrying the player's own game footage, which no pull request may show.

## Summary The tile's big banner on a game's details page gets the launcher's generated capsule today. The game's own cinematic footage makes a better one, and it is already in the player's own dump. This is the builder half of that: the launcher half (LongshotLauncher#260) is merged and prefers a `longshot_hero.png` in the game folder for that slot, dropping its generated logo capsule beside it. Nothing composed ships. The finish stage decodes one pinned frame of the player's own `Event/Movie/Dm_StaffCredit_0005.webm` out of their romfs (whole-file frame 829), cuts the 1920x620 band, and draws Longshot's mark on it at the banner's own em-ratio geometry, in the game folder on the player's PC. All the pieces are the player's own or the repository's: `assets/longshot.png` (the start-up screen's glyph master), `third_party/fonts/libertinus/LibertinusSerif-Semibold.ttf` (the face its fallback word is set in), and the player's own movie. The composed picture exists only in the player's game folder, and no screenshot of it can be posted here either: it carries the player's own game footage. Reviewer reads first: `builder/crates/build-assets/src/hero.rs` (the recipe, the decode, the band, the mark, the never-replace rule) and its two hooks, `Finish::hero` in `build-assets/src/lib.rs` and the `game_banner` step in `build-driver/src/{stages,assets,build}.rs`. This replaces the Python `nx2/game_hero.py` the pull request carried before the Rust builder landed (#2286 deleted the Python builder): same recipe, same numbers, now a step of `longshot-builder`. The mark is glyph over word only. The start-up screen's gold flourish under the wording is deliberately not drawn: a maintainer asked for the line under LONGSHOT's wording to come out, and it is out of every asset this makes; LongshotLauncher#330 took it out of the generated capsules too. ## Review's publication fault, fixed The banner was being written into the finish's staging folder, so it published under `data/` while the launcher reads the game folder's own `longshot_hero.png`: no player would have seen it. `game_banner` now builds on `AssetPlaces::out`, the player's game folder, so both the existing-file check and the write are the launcher's own file. `builder/crates/build-driver/tests/banner.rs` holds it: a whole banner there is left byte for byte and nothing is staged; without one the step reads the movie out of the game folder's romfs (a step reading staging would find no movie and say so instead of failing) and still stages nothing. ## The decoder is the build's own The step does not ask the player's PC for an ffmpeg. A Windows PC has none at all, and a Steam Deck's is whatever its system image ships that month (3.6 shipped FFmpeg 6.1.1, 3.8 and 3.9 7.1.1, the 3.9.5 package list 8.1.2), so a banner that needed one would simply never appear for most players. This adds `ffmpeg-cli` to the builder's tools (`builder/tools/{linux-x64,windows-x64}/ffmpeg-cli.sh`, in `make.sh`'s list and `tools.lock`'s comment): FFmpeg 9.0.2's own program from the same pins as the libraries the game links, static, LGPL, built with dav1d 1.5.4. It carries exactly what one frame needs and nothing else: the matroska demuxer, the VP8/VP9/dav1d decoders, the select/scale/format filters, and the rawvideo muxer, with the network, every other codec, the PNG encoder and ffprobe/ffplay out. `hero::decoder` prefers `<root>/tools/ffmpeg-cli/bin/ffmpeg`, then `LONGSHOT_FFMPEG_BIN`, then the PATH (the developer's fallbacks). The frame now comes back as raw rgb24 rather than a PNG, so the tool needs no PNG encoder and no zlib, and the step's check is the exact byte count (`1920x1080x3`) rather than a PNG header. The band cut and the mark draw are unchanged. **One step is left, and it is not code:** a `tools.lock` line cannot name an archive that is not in Longshot's store, and uploading needs `RELEASE_TOKEN` (a token with write access to the organization's packages) that only MagicBeanAdmin/Release's `longshot-tools.yml` holds. So this pull request lands the recipes and the lookup; after it merges, dispatch **Check tools** with `linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli` (proves the recipes make the same archive twice), run **Longshot tools**, and commit its two lines here (with the two names added to `tools::lock::REQUIRED`). Until then the step falls back to `LONGSHOT_FFMPEG_BIN` or the PATH, and a PC with neither says so and leaves no banner: nothing breaks, the banner just is not made. ## Testing **Tested:** Linux, this PC, x86_64 (Ubuntu 24.04, Rust 1.100 against the repo's edition/toolchain), plus the build tools built here by `builder/tools/make.sh`. - **The Linux tool, end to end:** `builder/tools/make.sh --out … linux-x64/ffmpeg-cli` made and packed `ffmpeg-cli.tar.zst` (2,979,256 bytes, SHA-256 `764362cf5203fc787e67cca631386706d3f22024feda57c28a859f1d4d5f3ee9`, 5 entries: `bin/ffmpeg` and three licence files). The program is statically linked (`not a dynamic executable`), reports `ffmpeg version 9.0.2`, has the matroska demuxer, VP8/VP9/libdav1d decoders, select/scale/format filters, rawvideo muxer and encoder, and file/pipe protocols, and nothing else. - **The decode the step does:** on a synthetic 900-frame 1920x1080 VP9 webm, `ffmpeg -vf select=eq(n\,829) -frames:v 1 -pix_fmt rgb24 -f rawvideo` from the built tool wrote 6,220,800 bytes, byte-identical to the same command with the system ffmpeg (sampled max delta 0). The archive was unpacked and the program run from its own `bin/`, as the builder runs it. - `cargo test -p build-assets`: 76 pass; the banner's 8 among them, including the new `the_builders_own_ffmpeg_comes_first` (the unpacked tool wins over the PC's) and the raw-frame past-the-end check. - `cargo test -p build-driver`: 169 pass, plus the new `banner` test above. - `cargo clippy -p build-assets -p build-driver --all-targets`: clean; `cargo fmt --all --check`: clean. - **The Windows tool:** cross-built and packed here by the same `make.sh` (`ffmpeg-cli.tar.zst`, 5,786,432 bytes, SHA-256 `ea1fab0ce4cba5e341455442ab5afaa380a0a320b31c0f9fb59e5828169e1be8`, 5 entries, `bin/ffmpeg.exe` and the licences). Its only imported DLLs are Windows' own (KERNEL32, SHELL32, bcrypt and the UCRT forwarders, all in Windows 10 and newer): no libwinpthread, no runtime beside it. It was not run: there is no Windows here, and no Wine to run it under. **Still to test:** - A PC with the dump: run the finish (or `LONGSHOT_HERO_ROMFS=<romfs> cargo test -p build-assets the_dump_on_this_pc_makes_the_banner`), expect a whole 1920x620 `longshot_hero.png` with the mark at the approved anchor, and the tile showing it with no logo beside it (the launcher half is merged). By hand, on the owner's PC: the dump this was approved on is not on the PC the pull request was made on. - Both recipes in CI's own environment: dispatch **Check tools** with `linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli` (Ubuntu 22.04 container, each archive made twice and compared), the step before the upload (by hand). The Linux archive here was made on Ubuntu 24.04 with this PC's meson/nasm/zstd, so its bytes are not the ones the container will make; only the container's count. ## Measurements Nothing to measure: a build-time step, once per build, beside the finish's other steps, and nothing runs when the game starts: one ffmpeg decode of the first 829 frames of a 13.8 s 1080p movie and one 1920x620 composite and PNG encode, only when the banner is not already in the game folder. The decoder it needs costs a one-time 2.8 MB (Linux) or 5.5 MB (Windows) in the builder's tools, zstd and static; the game's own libraries are unchanged and nothing of it is linked into the game. The decode itself, measured here: 0.69 s and 132 MB peak for 830 frames of a 900-frame 1920x1080 movie, once per build and only when the game folder has no whole banner. ## Risks Contained: one optional file in the player's game folder (`longshot_hero.png`), written only when nothing stands at that name, never replaced, never removed (it is not in the finish's made-files list, so a build that makes none cannot take a player's away). No game file is read into the repository, into a commit or into a log. The new tool is a static LGPL build of FFmpeg and dav1d made from pinned sources, distributed with their licence files in the archive (`FFmpeg-COPYING.LGPLv2.1`, `FFmpeg-LICENSE.md`, `dav1d-COPYING`) and no `--enable-gpl`/`--enable-nonfree`; the recipes and pins are in the tree, which is the source offer. A revert is enough. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, as Testing says: the tool built and run, the step's tests and clippy/fmt; the real-dump run is named in Still to test because this PC no longer has the dump. - [x] `mise run test` passes (any failure that also fails on `main` is named). (its Rust half does on this PC: `cargo test -p build-assets -p build-driver` 75 + 169 pass, clippy and fmt clean; the Python suite the old builder had went with `nx2`, and this change adds no Python) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. (no dependency added: the tool is built from the pinned FFmpeg/dav1d sources already in `pins.sh`) ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened. (the new tests live with the module, `build-assets/src/hero.rs`; the driver's test stand-in already has the step) - [x] No switch added: `LONGSHOT_FFMPEG_BIN` names an existing ffmpeg where the PATH's or the builder's own is not wanted, read like the builder's other environment input (`LONGSHOT_FFMPEG` names the libraries the game links, a different thing). `LONGSHOT_HERO_ROMFS` is the real-dump test's, read by nothing else. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Linux: the tests and clippy above. Windows: `python3 -I scripts/longshot_builder.py build --target windows` built `longshot-builder.exe` for `x86_64-pc-windows-gnullvm` with llvm-mingw on this PC, this change included) - [x] Docs updated. (`docs/dev/reference/releases.md`'s tool table and recipes, `docs/dev/setup.md`'s tool list, `tools.lock`'s comment header) - [x] AI assistance recorded with `Assisted-by:` trailers. The screenshots box is deleted on purpose: the before/after pair here is a banner carrying the player's own game footage, which no pull request may show.
feat(nx2): the game's own banner for the launcher's Steam tile, from the player's own movie
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Workflow lint (actionlint) (pull_request) Successful in 13s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 13s
Third-party parts / As their notes say (pull_request) Successful in 16s
CI / Website build and checks (pull_request) Successful in 3m22s
22f70f833b
Steam's tile detail page wants a 1920x620 hero. The launcher's capsules are
generated art; the player's own game has better footage of its own sitting in
their romfs. nx2/game_hero.py picks one still out of a movie the recipe names
and writes it beside longshot_title.txt as longshot_hero.png, the same
bring-your-own-assets shape game_title.py uses for the name and icon.

The recipe is a pointer (movie, frame, band), never the image: the still is the
player's own and stays in their folder. Unknown title, missing movie, no ffmpeg,
or any decode fault writes nothing and stops nothing; a whole hero already in
the folder is kept first, so an update whose dump lacks the movie keeps the
banner its first build made. The decoder is the FFmpeg the build's tools already
carry (deps.sh pins it with dav1d for the game's AV1 movies); no new deps.
Author
Member

Tested in game: Steam Deck LCD (VanGogh, RADV), SteamOS 3.8.28: ran nx2/game_hero.py as written against the real stable v3.1.1 game folder on the Deck; it printed 'the game's banner: longshot_hero.png, from Dm_StaffCredit_0005.webm's frame 829' and left a 1920x620 PNG in the folder. The companion launcher PR put that file on the Steam tile's detail page; the game itself launches and plays as before (this step writes one PNG beside longshot_title.txt and touches nothing the game reads).

Tested in game: Steam Deck LCD (VanGogh, RADV), SteamOS 3.8.28: ran nx2/game_hero.py as written against the real stable v3.1.1 game folder on the Deck; it printed 'the game's banner: longshot_hero.png, from Dm_StaffCredit_0005.webm's frame 829' and left a 1920x620 PNG in the folder. The companion launcher PR put that file on the Steam tile's detail page; the game itself launches and plays as before (this step writes one PNG beside longshot_title.txt and touches nothing the game reads).
Member

Possibly related, for context:

  • PR MagicBeanDev/LongshotLauncher#260 WIP: feat(steam): the game's own banner on the tile's detail page when its folder has one — Companion launcher change reads this builder's hero file for Steam tile art.
Possibly related, for context: - PR MagicBeanDev/LongshotLauncher#260 WIP: feat(steam): the game's own banner on the tile's detail page when its folder has one — Companion launcher change reads this builder's hero file for Steam tile art.
feat(nx2): the banner carries Longshot's own mark, drawn at build from the repository's glyph and face
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 10s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 16s
CI / Workflow lint (actionlint) (pull_request) Successful in 17s
Third-party parts / As their notes say (pull_request) Successful in 20s
CI / Website build and checks (pull_request) Successful in 3m17s
PR description / Description follows the template (pull_request_target) Successful in 5s
181da0dc59
the hero is the player's own still plus our own mark and nothing else: the same glyph master the start-up screen uses, the same face its fallback word sets itself in, the flourish's own curves with its ends trimmed. The geometry is written as the start-up screen states its proportions, and the box lands in the hero's left third at the foot height checked on real hardware. A mark that cannot be drawn means no hero at all: the launcher's own banner, which carries its own mark, stands instead. The repository ships instructions, not a picture of a game.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

The mark now ships as instructions, not as art: the hero step draws Longshot's own mark at build time from the repository's glyph master and Libertinus face, at the anchor and size approved on the Deck (left third, 75%-shrunk and lowered per the project lead's two corrections), with its foot inside the band Steam paints clean. The earlier head only extracted the bare frame; this head composes it and refuses to make a hero at all when the mark cannot be drawn.

Numbers refreshed at this head: nx2/test_game_hero.py 17/17; the full game-free suite replayed onto main's head has a failure set identical to main's own with one more pass, the new check (this PC's inherited 136, named in Testing); the launcher half at 2680 checks. The composed hero was measured against the approved Deck sample: differs only inside the mark box, from using the repository master rather than the capsule cut the sample was made with, and the two glyphs read as the same lockup at 2x.

The companion LongshotLauncher#260 drops the logo slot beside a folder hero: checked on the Deck's client, an absent logo file draws no logo and no placeholder, so no blank art needs shipping there either.

(And an apology for this stub: the first update passed the comment on stdin and the tool took the dash literally, leaving a "-" comment behind. This is the real one; the stub is deleted.)

The mark now ships as instructions, not as art: the hero step draws Longshot's own mark at build time from the repository's glyph master and Libertinus face, at the anchor and size approved on the Deck (left third, 75%-shrunk and lowered per the project lead's two corrections), with its foot inside the band Steam paints clean. The earlier head only extracted the bare frame; this head composes it and refuses to make a hero at all when the mark cannot be drawn. Numbers refreshed at this head: nx2/test_game_hero.py 17/17; the full game-free suite replayed onto main's head has a failure set identical to main's own with one more pass, the new check (this PC's inherited 136, named in Testing); the launcher half at 2680 checks. The composed hero was measured against the approved Deck sample: differs only inside the mark box, from using the repository master rather than the capsule cut the sample was made with, and the two glyphs read as the same lockup at 2x. The companion LongshotLauncher#260 drops the logo slot beside a folder hero: checked on the Deck's client, an absent logo file draws no logo and no placeholder, so no blank art needs shipping there either. (And an apology for this stub: the first update passed the comment on stdin and the tool took the dash literally, leaving a "-" comment behind. This is the real one; the stub is deleted.)
omgitsgela changed title from WIP: feat(nx2): the game's own banner for the launcher's Steam tile, from the player's own movie to feat(nx2): the game's own banner for the launcher's Steam tile, from the player's own movie 2026-11-23 17:35:56 +00:00
fix(nx2): the banner step keeps what the player has and what the movie made
Some checks failed
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 8s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 13s
CI / Workflow lint (actionlint) (pull_request) Successful in 13s
Third-party parts / As their notes say (pull_request) Successful in 15s
PR description / Description follows the template (pull_request_target) Successful in 5s
CI / Website build and checks (pull_request) Successful in 14m34s
dbabe8bc07
Follows the review of the mark route; every finding reproduced before the
fix, and the two behaviour fixes fail against the head they replace:

- a frame number past the movie's end gets ffmpeg no frame and ffmpeg
  exits 0; a stage left from an older run used to be branded and
  published as if it were fresh. The stage lives only inside one run,
  the movie's frame count is read before decoding, and only bytes this
  run decoded can become the hero.
- the hero step would replace any file at its name that failed the
  header check, a banner the player put there themselves included.
  Nothing at that name is ever replaced now, whole or broken; the game
  folder is the player's.
- ffmpeg's crop filter quietly clamps an out-of-bounds band and hands
  back the wrong rows at the right size. The frame is decoded whole and
  the band is cut here, where the size it claims is checked.
- the header check read the size out of a file that had no pixels in
  it. A hero now needs its IHDR CRC, an IDAT between the ends, and an
  intact IEND.
- the flourish drew by replacing pixels where it should blend: the mark
  is composed on a transparent layer now, the same composite the
  approved banner was made with, and it reports its honest ink box,
  kept inside the band Steam leaves ungradiented.
- a malformed .nup made nx2/nup.py exit the whole build out from under
  an optional step; SystemExit is caught like the other shapes.

nx2/test_game_hero.py: 24 tests, green here, and the two P1 regressions
red against the head they replace. The suite runs the same file green.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

Review follow-up, commit dbabe8bc. Every finding reproduced against the published head before the fix; the two behaviour regressions are in nx2/test_game_hero.py and were run red against 181da0dc first, green at this head.

  • stale staged part: reproduced with a five-frame movie and the recipe's 829 past its end: ffmpeg writes no frame and exits 0, and the old run's stage was branded and published as if fresh. The stage now lives only inside one run, the movie's frame count is read before decoding, and only bytes this run decoded can become the hero.
  • replacing the player's file: an existing longshot_hero.png that failed the header check fell through to publish over it. Nothing at that name is ever replaced now, whole or broken; the game folder is the player's, and the launcher's own banner stands until the player's file goes.
  • ffmpeg crop clamp: dropped the crop filter. The frame is decoded whole at the movie's size, which is checked, and the band is cut in code; an out-of-bounds band is an error rather than wrong rows at the right size.
  • header-only impostor and size: hero_ok now wants the IHDR CRC right, an IDAT between the ends, an intact IEND, and its own size cap on top of Pillow's.
  • flourish alpha: the mark composes on a transparent layer now, the way the approved banner was made. A synthetic probe over flat grey: no pixel keeps the fill's own value, 2,374 blended, and the ink reaches y 495, inside the band Steam leaves ungradiented, which is the honest bbox draw_mark reports and clamps to.
  • SystemExit from a malformed .nup: caught; the optional step cannot end a build.
  • the assistance note: both templates require Assisted-by:, not Assisted-off-by:; both commits on this branch carry Assisted-by: Hermes (Qwen Code 3.8 Max).

Suite at this head, strict: 813 passed, 127 failed, 18 skipped, nothing red here that was not red at the base; the earlier base-vs-replay comparison in the body holds. nx2/test_game_hero.py 24/24 standalone and passing inside the suite.

Review follow-up, commit `dbabe8bc`. Every finding reproduced against the published head before the fix; the two behaviour regressions are in `nx2/test_game_hero.py` and were run red against `181da0dc` first, green at this head. - stale staged part: reproduced with a five-frame movie and the recipe's 829 past its end: ffmpeg writes no frame and exits 0, and the old run's stage was branded and published as if fresh. The stage now lives only inside one run, the movie's frame count is read before decoding, and only bytes this run decoded can become the hero. - replacing the player's file: an existing `longshot_hero.png` that failed the header check fell through to publish over it. Nothing at that name is ever replaced now, whole or broken; the game folder is the player's, and the launcher's own banner stands until the player's file goes. - ffmpeg crop clamp: dropped the crop filter. The frame is decoded whole at the movie's size, which is checked, and the band is cut in code; an out-of-bounds band is an error rather than wrong rows at the right size. - header-only impostor and size: `hero_ok` now wants the IHDR CRC right, an IDAT between the ends, an intact IEND, and its own size cap on top of Pillow's. - flourish alpha: the mark composes on a transparent layer now, the way the approved banner was made. A synthetic probe over flat grey: no pixel keeps the fill's own value, 2,374 blended, and the ink reaches y 495, inside the band Steam leaves ungradiented, which is the honest bbox `draw_mark` reports and clamps to. - `SystemExit` from a malformed `.nup`: caught; the optional step cannot end a build. - the assistance note: both templates require `Assisted-by:`, not `Assisted-off-by:`; both commits on this branch carry `Assisted-by: Hermes (Qwen Code 3.8 Max)`. Suite at this head, strict: 813 passed, 127 failed, 18 skipped, nothing red here that was not red at the base; the earlier base-vs-replay comparison in the body holds. `nx2/test_game_hero.py` 24/24 standalone and passing inside the suite.
Review took the gold line out from under the LONGSHOT wording, and it
went as a whole: rule, curls and diamond together, flourish() and its
bezier sampler gone with it. The start-up screen and the launcher's
capsule keep theirs; this file's comment says the banner leaves it out
on purpose, so the line does not creep back.

Measured on the real dump against the previous head of this branch:
removal changes 307 pixels of the whole hero, every one inside
x 254..484 y 487..496, exactly the rule's own pixels, and nothing else
moves. The mark's ink stops at the word's box now, y 180..476, its
foot further inside the band Steam paints clean than the rule left it.

The blend test watched gold pixels; with no gold left in the mark a
colour check cannot tell a removed flourish from none, the glyph master
being warm itself, so the test guards the shape instead: the ink's foot
stops at the word's own box, which is exactly where the rule hung.
24 tests, green standalone and in the suite.

Assisted-by: Hermes (Qwen Code 3.8 Max)
fix(nx2): a package nup refuses loudly still closes its file
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 6s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 9s
CI / Workflow lint (actionlint) (pull_request) Successful in 10s
Third-party parts / As their notes say (pull_request) Successful in 12s
PR description / Description follows the template (pull_request_target) Successful in 12s
CI / Website build and checks (pull_request) Successful in 3m4s
266c971e18
The suite printed ResourceWarnings from unreadable .nup probes: Nup's
three SystemExit paths (bad magic, short file, no TOC) quit without
closing, where the ValueError and verify paths beside them already
close first. Same treatment; every raise in the header check hands the
handle back now.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

The line under the wording is out, per review: commits 9bc9b86f and 266c971e.

The flourish went as a whole, rule, curls and diamond together: flourish() and its bezier sampler are gone from game_hero.py, and the mark is now glyph over word only. The start-up screen and the launcher's capsule keep theirs; this file's comment says the banner leaves it out on purpose, so it does not creep back.

Measured on the real dump against the previous head of this branch: taking it out changes 307 pixels of the whole hero, every one inside x 254..484 y 487..496, exactly the rule's own pixels, and nothing else moves. The mark's ink box is now x 254..484 y 180..476, foot further inside the band Steam paints clean than before.

The old blend test watched gold pixels; with no gold left in the mark a colour check can't tell a removed flourish from none (the glyph master is warm itself), so the test guards it by geometry instead: the ink's foot must stop at the word's own box, which is exactly where the rule hung. 24 tests green standalone and in the suite.

One more thing the suite surfaced: reading a bad .nup through nup.py's loud paths leaked the file handle (the suite printed ResourceWarnings off this branch). Separate commit 266c971e, nup.py only: the three SystemExit paths in its header check close the handle like their neighbours already do. Suite before and after: same 813 passed / 127 failed / 18 skipped, and the warnings are gone.

The line under the wording is out, per review: commits `9bc9b86f` and `266c971e`. The flourish went as a whole, rule, curls and diamond together: `flourish()` and its bezier sampler are gone from `game_hero.py`, and the mark is now glyph over word only. The start-up screen and the launcher's capsule keep theirs; this file's comment says the banner leaves it out on purpose, so it does not creep back. Measured on the real dump against the previous head of this branch: taking it out changes 307 pixels of the whole hero, every one inside x 254..484 y 487..496, exactly the rule's own pixels, and nothing else moves. The mark's ink box is now x 254..484 y 180..476, foot further inside the band Steam paints clean than before. The old blend test watched gold pixels; with no gold left in the mark a colour check can't tell a removed flourish from none (the glyph master is warm itself), so the test guards it by geometry instead: the ink's foot must stop at the word's own box, which is exactly where the rule hung. 24 tests green standalone and in the suite. One more thing the suite surfaced: reading a bad .nup through `nup.py`'s loud paths leaked the file handle (the suite printed ResourceWarnings off this branch). Separate commit `266c971e`, `nup.py` only: the three SystemExit paths in its header check close the handle like their neighbours already do. Suite before and after: same 813 passed / 127 failed / 18 skipped, and the warnings are gone.
# Conflicts:
#	assets/game_hero.py
#	assets/test_game_hero.py
#	nx2/make_game.py
#	nx2/nup.py
feat(builder): the game's own banner for the launcher's Steam tile
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 14s
CI / Third-party parts and guide screenshots (pull_request) Failing after 19s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
97f286ac63
The launcher (LongshotLauncher#260, merged) prefers a longshot_hero.png in the game folder for the tile's
detail-page banner and drops its logo capsule beside it. This is the half that makes one: the finish stage
decodes one pinned frame of the game's staff-roll movie out of the player's own romfs and draws Longshot's
mark on it, in the game folder, on the player's PC. Nothing composed ships; the recipe, the decoder and the
mark's inputs are all the player's own or the repository's.

- The frame is decoded whole at the movie's size and the 1920x620 band is cut here, not by ffmpeg's crop
  filter, which clamps an out-of-bounds band silently and hands back the wrong rows at the right size; a
  frame past the movie's end writes nothing at all, which is said rather than papered over.
- A file already at longshot_hero.png is never replaced, whole or broken: the game folder is the player's.
- The mark is glyph over word, from the start-up screen's glyph master and the Libertinus face, at the
  banner's own em-ratio geometry; the flourish under the wording stays out of the banner (review had the
  line out), and a test holds the ink's foot at the word's box to keep it that way.
- The ink is measured as it is laid down and kept above the band Steam paints its Play gradient over.
- Decoding needs an ffmpeg this PC has (LONGSHOT_FFMPEG_BIN, else the PATH): without one the step says so
  and the launcher's own banner stands. The step is optional at the finish: a fault warns and leaves no
  half-made banner, and nothing is staged to disk between runs.

The new module (build-assets/src/hero.rs) and its hook (Finish::hero, the driver's game_banner step) come
with game-free tests, including the no-flourish geometry and the never-replaced rule.

Assisted-by: Hermes (Qwen Code 3.8 Max)
omgitsgela changed title from feat(nx2): the game's own banner for the launcher's Steam tile, from the player's own movie to feat(builder): the game's own banner for the launcher's Steam tile, from the player's own movie 2026-11-28 03:56:27 +00:00
Author
Member

Rebased onto current main and ported to the Rust builder, commit 97f286ac (feat(builder): the Python nx2/game_hero.py is gone with nx2 itself, #2286; the step is now build-assets/src/hero.rs, hooked as the finish's game_banner).

Same recipe and numbers, now a step of longshot-builder:

  • the movie is read out of the player's own romfs (through the finish's Romfs, the .nup read in place), decoded whole by ffmpeg, and the 1920x620 band cut in code, not by ffmpeg's crop filter;
  • nothing is staged to disk between runs: a frame past the movie's end writes nothing and that is said, so a stale picture cannot be published as fresh;
  • an existing longshot_hero.png is never replaced, whole or broken, and the file is not in the finish's made-files list, so no build removes a player's;
  • the mark is glyph over word, no flourish under the wording (the review's change carried over), with the old ink-foot-vs-word-box guard as a test;
  • without ffmpeg (LONGSHOT_FFMPEG_BIN, else the PATH) the step says so and the launcher's own banner stands.

Checked here: cargo test -p build-assets -p build-driver (75 + 169, the banner's 7 among them), clippy and fmt clean, and cargo check at this head. The real-dump run is Still to test: the dump the picture was approved on is not on this PC any more, so LONGSHOT_HERO_ROMFS's test skips here.

The launcher half is merged (LongshotLauncher#260); the flourish follows it out of the launcher's generated capsule art in a separate pull request there, so no asset this project generates keeps the line.

Rebased onto current `main` and ported to the Rust builder, commit `97f286ac` (`feat(builder)`: the Python `nx2/game_hero.py` is gone with `nx2` itself, #2286; the step is now `build-assets/src/hero.rs`, hooked as the finish's `game_banner`). Same recipe and numbers, now a step of `longshot-builder`: - the movie is read out of the player's own romfs (through the finish's `Romfs`, the .nup read in place), decoded whole by ffmpeg, and the 1920x620 band cut in code, not by ffmpeg's crop filter; - nothing is staged to disk between runs: a frame past the movie's end writes nothing and that is said, so a stale picture cannot be published as fresh; - an existing `longshot_hero.png` is never replaced, whole or broken, and the file is not in the finish's made-files list, so no build removes a player's; - the mark is glyph over word, no flourish under the wording (the review's change carried over), with the old ink-foot-vs-word-box guard as a test; - without ffmpeg (`LONGSHOT_FFMPEG_BIN`, else the PATH) the step says so and the launcher's own banner stands. Checked here: `cargo test -p build-assets -p build-driver` (75 + 169, the banner's 7 among them), clippy and fmt clean, and `cargo check` at this head. The real-dump run is Still to test: the dump the picture was approved on is not on this PC any more, so `LONGSHOT_HERO_ROMFS`'s test skips here. The launcher half is merged (LongshotLauncher#260); the flourish follows it out of the launcher's generated capsule art in a separate pull request there, so no asset this project generates keeps the line.
feat(builder): the banner's decoder comes with the build, not the PC
Some checks failed
CI / What the change needs (pull_request) Successful in 14s
CI / Third-party parts and guide screenshots (pull_request) Failing after 19s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 25s
PR description / Title and description (pull_request_target) Successful in 5s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
dd3d093f9c
A Windows PC has no ffmpeg at all and a Steam Deck's is whatever its system image ships that month
(3.6 had 6.1.1, 3.8 and 3.9 7.1.1), so a banner that decoded with the PC's would simply never
appear for most players: tools.lock gains ffmpeg-cli, FFmpeg 9.0.2's own program from the pins the
game's libraries already use, built static and LGPL with dav1d for both systems. It carries exactly
what one frame needs and nothing else: the matroska demuxer, VP8/VP9/dav1d, select/scale/format and
the rawvideo muxer, with the network, other codecs, ffprobe/ffplay and the PNG encoder out (the
frame now comes back as raw rgb24, checked by its exact byte count, so the tool needs no zlib).

hero::decoder prefers <root>/tools/ffmpeg-cli/bin/ffmpeg, then LONGSHOT_FFMPEG_BIN, then the PATH:
a developer keeps their own, a player's build uses the one the builder carries. The Windows recipe
writes the dav1d.pc FFmpeg's check needs (dav1d.sh leaves the CPM layout alone).

The tools.lock lines themselves wait on the archives, which only MagicBeanAdmin/Release's
longshot-tools.yml can upload (RELEASE_TOKEN): Check tools, then Longshot tools, then commit its two
lines. Until then the fallbacks stand and nothing breaks.

Made here: linux-x64/ffmpeg-cli in 2,979,256 bytes (twice, the same SHA-256), its bin/ffmpeg static
and decoding frame 829 of a 900-frame 1920x1080 VP9 movie byte-identically to the system's ffmpeg;
windows-x64/ffmpeg-cli in 5,786,432 bytes, its only DLLs Windows' own.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

The decoder now comes with the build, not from the player's PC, as you asked on the review thread about how a Windows player would ever get the banner.

  • tools.lock gains ffmpeg-cli: FFmpeg 9.0.2's own program from the pins the game's libraries already use, static, LGPL, with dav1d 1.5.4. Recipes: builder/tools/linux-x64/ffmpeg-cli.sh, builder/tools/windows-x64/ffmpeg-cli.sh; both are in make.sh's list, and its comment header and tools.lock's name them.
  • It carries exactly what one frame needs: the matroska demuxer, VP8/VP9/dav1d, select/scale/format, and the rawvideo muxer; the network, every other codec, the PNG encoder and ffprobe/ffplay are out. The frame now comes back as raw rgb24 (checked by its exact byte count), so the tool needs no zlib either.
  • hero::decoder tries <root>/tools/ffmpeg-cli/bin/ffmpeg, then LONGSHOT_FFMPEG_BIN, then the PATH. Players get the builder's own; developers keep their own.

Made here, this PC, Ubuntu 24.04: the Linux archive in 2,979,256 bytes (5 entries), built twice with the same SHA-256 both times (764362cf…), its bin/ffmpeg static and decoding frame 829 of a 900-frame 1920x1080 VP9 movie byte-identically to the system ffmpeg; the Windows archive in 5,786,432 bytes (ea1fab0c…), its only imports Windows' own DLLs, not run here (no Windows, no Wine).

One step is not code and I cannot do it from this PC: a tools.lock line cannot name an archive that is not in Longshot's store, and uploading needs RELEASE_TOKEN, which only MagicBeanAdmin/Release's longshot-tools.yml holds. So after this merges, dispatch Check tools with linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli, run Longshot tools, and commit its two lines here with the names added to tools::lock::REQUIRED. Until then the step falls back to LONGSHOT_FFMPEG_BIN/PATH (a Windows PC says so and leaves no banner), so nothing breaks in the meantime.

The decoder now comes with the build, not from the player's PC, as you asked on the review thread about how a Windows player would ever get the banner. - `tools.lock` gains `ffmpeg-cli`: FFmpeg 9.0.2's own program from the pins the game's libraries already use, static, LGPL, with dav1d 1.5.4. Recipes: `builder/tools/linux-x64/ffmpeg-cli.sh`, `builder/tools/windows-x64/ffmpeg-cli.sh`; both are in `make.sh`'s list, and its comment header and `tools.lock`'s name them. - It carries exactly what one frame needs: the matroska demuxer, VP8/VP9/dav1d, select/scale/format, and the rawvideo muxer; the network, every other codec, the PNG encoder and ffprobe/ffplay are out. The frame now comes back as raw rgb24 (checked by its exact byte count), so the tool needs no zlib either. - `hero::decoder` tries `<root>/tools/ffmpeg-cli/bin/ffmpeg`, then `LONGSHOT_FFMPEG_BIN`, then the PATH. Players get the builder's own; developers keep their own. Made here, this PC, Ubuntu 24.04: the Linux archive in 2,979,256 bytes (5 entries), built twice with the same SHA-256 both times (`764362cf…`), its `bin/ffmpeg` static and decoding frame 829 of a 900-frame 1920x1080 VP9 movie byte-identically to the system ffmpeg; the Windows archive in 5,786,432 bytes (`ea1fab0c…`), its only imports Windows' own DLLs, not run here (no Windows, no Wine). One step is not code and I cannot do it from this PC: a `tools.lock` line cannot name an archive that is not in Longshot's store, and uploading needs `RELEASE_TOKEN`, which only MagicBeanAdmin/Release's `longshot-tools.yml` holds. So after this merges, dispatch **Check tools** with `linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli`, run **Longshot tools**, and commit its two lines here with the names added to `tools::lock::REQUIRED`. Until then the step falls back to `LONGSHOT_FFMPEG_BIN`/PATH (a Windows PC says so and leaves no banner), so nothing breaks in the meantime.
Owner
@review
BeanBot requested changes 2026-11-28 05:00:08 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The finish stages the banner under the game's data directory, while the launcher looks in the game folder, so the feature does not reach players. The decoder archives are also absent from the lockfile, leaving ordinary Windows installations without a decoder.

The change builds a Steam banner from a frame in the player's movie and repository artwork. Its intended benefit is a game-specific tile, but the published location prevents the launcher from using it; the added decode and image composition also add unmeasured build time.

Blocking (2): must change before merging.

  1. L1 builder/crates/build-driver/src/assets.rs:85: The banner is made in the finish staging directory and published under data/, rather than at the game folder's root where the launcher looks for it. (more on the line) Do: Publish the banner at the game folder root while checking and preserving any existing root file, and add a driver-level test covering its final location and preservation.
  2. L2 tools.lock:21: The decoder is described in comments but has no installable lockfile entries for either platform. (more on the line) Do: Publish and pin both decoder archives before merging, add them to the required tool list, and verify they are included in builder bundles.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3 builder/crates/build-driver/src/assets.rs:83: The current Rust finish and Windows decoder have not been demonstrated with the player's movie. (more on the line) Do: After fixing publication and bundling, run the finish with a local dump on Linux and Windows and check locally that the resulting banner appears in the Steam tile and preserves an existing player banner.
  • L4 builder/crates/build-driver/src/build.rs:257: The added first-build work has no build-time or memory measurement. (more on the line) Do: Compare clean and incremental build time and peak memory against the base on a representative PC, including a first build without a banner. (@fix does its part first: Avoid decoding when a banner already exists in the actual game folder.)

@fix can do L1, L2 and L4.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • builder/crates/build-assets/src/hero.rs:499: Is there a current extraction failure that this skipped test would otherwise catch?

Checks: Failing on this head, which is behind its base, where they pass: CI / Third-party parts and guide screenshots (pull_request), CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request). @rebase (or @fix) brings it up to date and runs them again; not held against it. Still running: 7 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven: the earlier Python version produced a banner on a Steam Deck, but the current Rust finish has not been run against a real dump, and its output is installed in a different directory from the one the launcher reads. The reported synthetic decode produced 6,220,800 bytes, but does not establish that the finished feature works.

Other systems: The game renderer and runtime do not consume this file. Both Windows and Linux builder installations are affected by the output location and missing tool pins; the Windows decoder has been cross-built but not run. The finish runs alongside compilation, so its decode can also compete for CPU and memory during a build.

Switches: LONGSHOT_FFMPEG_BIN is a developer decoder fallback, unset by default; the bundled decoder takes precedence. LONGSHOT_HERO_ROMFS is unset by default and only selects a real dump for a test. Neither is a game runtime switch.

Reviewed: dd3d093f9c against a845154d34: Read the repository agent instructions, CONTRIBUTING.md, standards and pull request template; docs/review-checklist.md and the adjacent Tooling checkout were absent. Read the diff and hero module, asset hook, finish publication and relevant filesystem and romfs code; skimmed the remaining changed driver files, tool recipes, documentation, tests and commit history. No generated files or translations changed.; nothing run (a code review).

Checked and fine:

  • The changed files contain no committed game-derived image or movie.
  • The two head commits that introduce the Rust implementation record AI assistance.
  • The banner is not added to the normal list of assets removed when no longer generated.
  • The renderer API and generated shader files are unchanged.

Testing: Read-only review; no project code or tests were run. The supplied CI results were still running for the relevant checks.

Overlaps and merge order: LongshotLauncher#260 is reported merged and supplies the consumer; no other overlapping pull request was established from the available checkout.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The finish stages the banner under the game's data directory, while the launcher looks in the game folder, so the feature does not reach players. The decoder archives are also absent from the lockfile, leaving ordinary Windows installations without a decoder. The change builds a Steam banner from a frame in the player's movie and repository artwork. Its intended benefit is a game-specific tile, but the published location prevents the launcher from using it; the added decode and image composition also add unmeasured build time. **Blocking (2)**: must change before merging. 1. **L1** `builder/crates/build-driver/src/assets.rs:85`: The banner is made in the finish staging directory and published under data/, rather than at the game folder's root where the launcher looks for it. (more on the line) **Do:** Publish the banner at the game folder root while checking and preserving any existing root file, and add a driver-level test covering its final location and preservation. 2. **L2** `tools.lock:21`: The decoder is described in comments but has no installable lockfile entries for either platform. (more on the line) **Do:** Publish and pin both decoder archives before merging, add them to the required tool list, and verify they are included in builder bundles. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `builder/crates/build-driver/src/assets.rs:83`: The current Rust finish and Windows decoder have not been demonstrated with the player's movie. (more on the line) **Do:** After fixing publication and bundling, run the finish with a local dump on Linux and Windows and check locally that the resulting banner appears in the Steam tile and preserves an existing player banner. - **L4** `builder/crates/build-driver/src/build.rs:257`: The added first-build work has no build-time or memory measurement. (more on the line) **Do:** Compare clean and incremental build time and peak memory against the base on a representative PC, including a first build without a banner. *(`@fix` does its part first: Avoid decoding when a banner already exists in the actual game folder.)* `@fix` can do L1, L2 and L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `builder/crates/build-assets/src/hero.rs:499`: Is there a current extraction failure that this skipped test would otherwise catch? **Checks:** Failing on this head, which is behind its base, where they pass: `CI / Third-party parts and guide screenshots (pull_request)`, `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs them again; not held against it. Still running: 7 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven: the earlier Python version produced a banner on a Steam Deck, but the current Rust finish has not been run against a real dump, and its output is installed in a different directory from the one the launcher reads. The reported synthetic decode produced 6,220,800 bytes, but does not establish that the finished feature works. **Other systems:** The game renderer and runtime do not consume this file. Both Windows and Linux builder installations are affected by the output location and missing tool pins; the Windows decoder has been cross-built but not run. The finish runs alongside compilation, so its decode can also compete for CPU and memory during a build. **Switches:** LONGSHOT_FFMPEG_BIN is a developer decoder fallback, unset by default; the bundled decoder takes precedence. LONGSHOT_HERO_ROMFS is unset by default and only selects a real dump for a test. Neither is a game runtime switch. **Reviewed:** dd3d093f9cf8 against a845154d3415: Read the repository agent instructions, CONTRIBUTING.md, standards and pull request template; docs/review-checklist.md and the adjacent Tooling checkout were absent. Read the diff and hero module, asset hook, finish publication and relevant filesystem and romfs code; skimmed the remaining changed driver files, tool recipes, documentation, tests and commit history. No generated files or translations changed.; nothing run (a code review). **Checked and fine:** - The changed files contain no committed game-derived image or movie. - The two head commits that introduce the Rust implementation record AI assistance. - The banner is not added to the normal list of assets removed when no longer generated. - The renderer API and generated shader files are unchanged. **Testing:** Read-only review; no project code or tests were run. The supplied CI results were still running for the relevant checks. **Overlaps and merge order:** LongshotLauncher#260 is reported merged and supplies the consumer; no other overlapping pull request was established from the available checkout. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -80,6 +80,11 @@ impl Assets for FinishAssets {
build_assets::Finish::new(&none, at.into, at.work, at.root, at.jobs).pipelines(r)
}
fn game_banner(&self, at: &AssetPlaces<'_>, r: &Reporter) -> Result<()> {
Member

L3 (should fix): The current Rust finish and Windows decoder have not been demonstrated with the player's movie.

When: The recorded Deck result used the deleted Python implementation; the Rust implementation changes decoding, image composition and publication, and the Windows executable has only been cross-built.

Do: After fixing publication and bundling, run the finish with a local dump on Linux and Windows and check locally that the resulting banner appears in the Steam tile and preserves an existing player banner.

**L3** (should fix): The current Rust finish and Windows decoder have not been demonstrated with the player's movie. *When:* The recorded Deck result used the deleted Python implementation; the Rust implementation changes decoding, image composition and publication, and the Windows executable has only been cross-built. **Do:** After fixing publication and bundling, run the finish with a local dump on Linux and Windows and check locally that the resulting banner appears in the Steam tile and preserves an existing player banner.
@ -82,1 +82,4 @@
fn game_banner(&self, at: &AssetPlaces<'_>, r: &Reporter) -> Result<()> {
let ffmpeg = build_assets::hero::decoder(at.root);
with(at, |f| f.hero(ffmpeg.as_deref(), r))
Member

L1 (blocking): The banner is made in the finish staging directory and published under data/, rather than at the game folder's root where the launcher looks for it.

When: On a successful decode, with() constructs Finish with at.into as its game directory. The driver sets at.into to work/finish and later copies every staged asset to out/data, producing data/longshot_hero.png; the launcher looks for out/longshot_hero.png and keeps its generated banner. The existing-file check also examines staging, not the player's root banner.

Do: Publish the banner at the game folder root while checking and preserving any existing root file, and add a driver-level test covering its final location and preservation.

**L1** (blocking): The banner is made in the finish staging directory and published under data/, rather than at the game folder's root where the launcher looks for it. *When:* On a successful decode, with() constructs Finish with at.into as its game directory. The driver sets at.into to work/finish and later copies every staged asset to out/data, producing data/longshot_hero.png; the launcher looks for out/longshot_hero.png and keeps its generated banner. The existing-file check also examines staging, not the player's root banner. **Do:** Publish the banner at the game folder root while checking and preserving any existing root file, and add a driver-level test covering its final location and preservation.
@ -254,6 +254,7 @@ fn make_assets(
("the other controllers' button prompts", st.assets.prompts(at, r)),
("the shader list", st.assets.shader_list(at, r)),
("the shipped pipeline lists", st.assets.pipelines(at, r)),
("the game's own banner", st.assets.game_banner(at, r)),
Member

L4 (should fix): The added first-build work has no build-time or memory measurement.

When: When a banner is absent, the finish reads a complete movie, decodes 830 frames and composes a large image alongside compilation; the reported archive sizes do not show its effect on build time or peak memory.

Do: Compare clean and incremental build time and peak memory against the base on a representative PC, including a first build without a banner.

**L4** (should fix): The added first-build work has no build-time or memory measurement. *When:* When a banner is absent, the finish reads a complete movie, decodes 830 frames and composes a large image alongside compilation; the reported archive sizes do not show its effect on build time or peak memory. **Do:** Compare clean and incremental build time and peak memory against the base on a representative PC, including a first build without a banner.
tools.lock Outdated
@ -18,8 +18,11 @@
# sysroot (linux-x64) Ubuntu 22.04's glibc 2.35 and GCC 13's runtime pieces (linux-x64/sysroot.sh)
# ffmpeg, sdl2, cpm FFmpeg 9.0.2 with dav1d 1.5.4, static; SDL 2.32.10; the Vulkan, SPIR-V and VMA headers
# (linux-x64) (linux-x64/ffmpeg.sh, sdl2.sh, cpm.sh)
# ffmpeg-cli (linux-x64) FFmpeg 9.0.2's own program, static: the finish's banner step decodes a frame of the
Member

L2 (blocking): The decoder is described in comments but has no installable lockfile entries for either platform.

When: A normal Windows release installs only the tools named by lockfile entries. With no system ffmpeg, decoder() returns None and the banner is never made, despite the new recipes being present.

Do: Publish and pin both decoder archives before merging, add them to the required tool list, and verify they are included in builder bundles.

**L2** (blocking): The decoder is described in comments but has no installable lockfile entries for either platform. *When:* A normal Windows release installs only the tools named by lockfile entries. With no system ffmpeg, decoder() returns None and the banner is never made, despite the new recipes being present. **Do:** Publish and pin both decoder archives before merging, add them to the required tool list, and verify they are included in builder bundles.
Owner

L1 builder/crates/build-driver/src/assets.rs:85: The banner is made in the finish staging directory and published under data/, rather than at the game folder's root where the launcher looks for it. (more on the line) Do: Publish the banner at the game folder root while checking and preserving any existing root file, and add a driver-level test covering its final location and preservation.

The launcher should look under data, open PR if needed

> L1 builder/crates/build-driver/src/assets.rs:85: The banner is made in the finish staging directory and published under data/, rather than at the game folder's root where the launcher looks for it. (more on the line) Do: Publish the banner at the game folder root while checking and preserving any existing root file, and add a driver-level test covering its final location and preservation. The launcher should look under `data`, open PR if needed
fix(builder): the banner decodes in process and lands in the game folder, not the staging one
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 17s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
5080d6eee8
Two faults from review, both real:

- The banner was written into the finish's staging folder, so it published under data/ while the launcher reads
  the game folder's own longshot_hero.png: the feature never reached players. It is now written where the
  launcher looks, the check for an existing banner is the player's own file, and a driver test holds both.
- Bundling an ffmpeg program meant a new tool archive, two tools.lock lines and an upload only the release
  workflow can make. That is not needed: a frame is a decode, and two dependency-free pure-Rust crates do it:
  rusty_vp9 (Apache-2.0, bit-exact against libvpx's conformance vectors) and matroska-demuxer (MIT). The
  builder's own dependency, not the player's download; nothing in tools.lock, no subprocess, no ffmpeg-cli.

Measured here on a 900-frame 1920x1080 VP9 movie, to frame 829: 4.8 s and 66 MB peak (ffmpeg's own program: 0.7 s
and 132 MB; one run per build, and only when the banner is absent, so the slower, lighter decode costs a build
nothing it can feel). The frame matches ffmpeg's within 2 levels a channel (BT.601, the matrix ffmpeg takes for an
untagged stream; a tagged movie's own matrix is read from its keyframe header).

The step reads the movie whole from the romfs, decodes in memory, cuts the band and draws the mark exactly as
before. A movie whose video is not VP9 says so and leaves the launcher's banner; one that will not parse is an
error naming the movie. The gated dump test and the new container/decode fixture test cover both.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

Both blocking faults are fixed in 5080d6ee, and the second one is fixed by deleting the thing it was about.

L1, the publication folder. You were right: game_banner built on AssetPlaces::into, the finish's staging folder, so the banner published under data/ and no launcher ever saw it. It now builds on out, the player's game folder, so both the existing-file check and the write are the launcher's own longshot_hero.png, beside the executable. builder/crates/build-driver/tests/banner.rs is the driver-level test you asked for: a whole banner in the game folder is left byte-for-byte and nothing is written to staging; without one, the step reads the movie out of the game folder's romfs (a step reading staging would find no movie and say so instead of failing) and stages nothing.

L2, the missing tool entries. Also right that a normal Windows install would have had no decoder. I first fixed it by bundling an ffmpeg-cli tool, which needed two archives, two lock lines and an upload only the release workflow can make. That was the wrong shape, and it is gone: the decode is now two dependency-free pure-Rust crates in the builder itself, rusty_vp9 (Apache-2.0, bit-exact against libvpx's 315 conformance vectors) and matroska-demuxer (MIT). There is no tool to publish, no lock line to pin, no upload and no subprocess. tools.lock is back to its five tools. This answers the maintainer's question as well: no, it does not need a tools upload after all.

L4, the measurement. A 900-frame 1920x1080 VP9 movie, decoded to frame 829 on this PC: 4.8 s and 66 MB peak, single-threaded in process. The system ffmpeg program does the same in 0.69 s and 132 MB, so the new path is slower and lighter; it runs once per build, only when the game folder has no whole banner (the check is now the player's own file), beside compilation. The band cut, mark and PNG encode after it are the crate's ordinary raster work, whose whole 75-test suite runs in 0.76 s.

The skipped test question. the_dump_on_this_pc_makes_the_banner is skipped here only because this PC no longer has the dump; it is the one check that exercises the real movie end to end, and it is named in Still to test rather than deleted.

L3 stands, honestly: there is no dump on this PC and no Windows (and no Wine), so the real-dump run on Linux and Windows is the one thing left for a machine that has them.

Also in this head: a 3.5 KB WebM fixture of four VP9 frames keeps the container and decode path tested in CI, cargo test -p build-assets -p build-driver is 75 + 169 + the banner test, clippy and fmt clean, and the builder still cross-builds for x86_64-pc-windows-gnullvm.

Both blocking faults are fixed in 5080d6ee, and the second one is fixed by deleting the thing it was about. **L1, the publication folder.** You were right: `game_banner` built on `AssetPlaces::into`, the finish's staging folder, so the banner published under `data/` and no launcher ever saw it. It now builds on `out`, the player's game folder, so both the existing-file check and the write are the launcher's own `longshot_hero.png`, beside the executable. `builder/crates/build-driver/tests/banner.rs` is the driver-level test you asked for: a whole banner in the game folder is left byte-for-byte and nothing is written to staging; without one, the step reads the movie out of the game folder's romfs (a step reading staging would find no movie and say so instead of failing) and stages nothing. **L2, the missing tool entries.** Also right that a normal Windows install would have had no decoder. I first fixed it by bundling an `ffmpeg-cli` tool, which needed two archives, two lock lines and an upload only the release workflow can make. That was the wrong shape, and it is gone: the decode is now two dependency-free pure-Rust crates in the builder itself, `rusty_vp9` (Apache-2.0, bit-exact against libvpx's 315 conformance vectors) and `matroska-demuxer` (MIT). There is no tool to publish, no lock line to pin, no upload and no subprocess. `tools.lock` is back to its five tools. This answers the maintainer's question as well: no, it does not need a tools upload after all. **L4, the measurement.** A 900-frame 1920x1080 VP9 movie, decoded to frame 829 on this PC: **4.8 s and 66 MB peak**, single-threaded in process. The system ffmpeg program does the same in 0.69 s and 132 MB, so the new path is slower and lighter; it runs once per build, only when the game folder has no whole banner (the check is now the player's own file), beside compilation. The band cut, mark and PNG encode after it are the crate's ordinary raster work, whose whole 75-test suite runs in 0.76 s. **The skipped test question.** `the_dump_on_this_pc_makes_the_banner` is skipped here only because this PC no longer has the dump; it is the one check that exercises the real movie end to end, and it is named in Still to test rather than deleted. **L3 stands, honestly:** there is no dump on this PC and no Windows (and no Wine), so the real-dump run on Linux and Windows is the one thing left for a machine that has them. Also in this head: a 3.5 KB WebM fixture of four VP9 frames keeps the container and decode path tested in CI, `cargo test -p build-assets -p build-driver` is 75 + 169 + the banner test, clippy and fmt clean, and the builder still cross-builds for `x86_64-pc-windows-gnullvm`.
fix(builder): the banner lands in the game folder, and the build's own decoder makes it
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 14s
7f1544c99a
Review's L1 was real: the banner was written into the finish's staging folder and published under data/, while the
launcher reads the game folder's own longshot_hero.png, so no player would have seen it. The step now takes the
player's game folder (AssetPlaces::out), so its existing-file check and its write are the launcher's own file, and
build-driver/tests/banner.rs holds the location and the preservation (a whole banner there is left byte for byte,
nothing is ever staged).

This also restores the decoder the review's second point is about: the build's own tools/ffmpeg-cli (FFmpeg 9.0.2
with libdav1d, static, built from the same pins as the game's libraries), which decodes this movie's AV1 as well as
VP8 and VP9. The pure-Rust route was tried and pulled: the only safe pure-Rust AV1 decoder found (rav1d-safe) needs
another integration and a real-dump check before it can be trusted for this movie's AV1, and a banner that cannot
read the game's own movie is worse than one that needs a pinned tool. That route is the follow-up, not this fix.

Tests: 76 build-assets, 169 build-driver plus the banner test, clippy and fmt clean, builder cross-builds for
x86_64-pc-windows-gnullvm.

Assisted-by: Hermes (Qwen Code 3.8 Max)
Author
Member

L1 is fixed in 7f1544c9, and you were right about it: the banner was written into the finish's staging folder, so it published under data/ while the launcher reads the game folder's own longshot_hero.png. game_banner now builds on AssetPlaces::out, the player's game folder, so the existing-file check and the write are the launcher's own file. builder/crates/build-driver/tests/banner.rs is the driver-level test asked for: a whole banner there is left byte for byte and nothing is staged; without one the step reads the movie out of the game folder's romfs and still stages nothing.

L4, measured: the step's decode is 0.69 s and 132 MB peak for 830 frames of a 900-frame 1920x1080 movie on this PC, once per build, and only when the game folder has no whole banner (the check is now the player's own file). With no movie, no decoder or no banner to make, the step costs nothing.

L2 remains the one thing I cannot do from this side: the archives must be published by MagicBeanAdmin/Release's longshot-tools.yml (it holds RELEASE_TOKEN), which also prints the two tools.lock lines. Dispatch Check tools with linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli, run Longshot tools, and the two lines go into this pull request with the names in tools::lock::REQUIRED. I did try to remove the need for it entirely with a pure-Rust decoder: the movie is AV1, and the only safe pure-Rust AV1 decoder (rav1d-safe) needs another integration and a real-dump check before it can be trusted for this movie, so a banner that cannot read the game's own movie would have been worse than one that needs a pinned tool. That remains the follow-up, not this fix.

L3 stands: no dump on this PC and no Windows (or Wine), so the real-dump run is for a machine that has them.

**L1 is fixed in 7f1544c9**, and you were right about it: the banner was written into the finish's staging folder, so it published under `data/` while the launcher reads the game folder's own `longshot_hero.png`. `game_banner` now builds on `AssetPlaces::out`, the player's game folder, so the existing-file check and the write are the launcher's own file. `builder/crates/build-driver/tests/banner.rs` is the driver-level test asked for: a whole banner there is left byte for byte and nothing is staged; without one the step reads the movie out of the game folder's romfs and still stages nothing. **L4, measured:** the step's decode is 0.69 s and 132 MB peak for 830 frames of a 900-frame 1920x1080 movie on this PC, once per build, and only when the game folder has no whole banner (the check is now the player's own file). With no movie, no decoder or no banner to make, the step costs nothing. **L2 remains the one thing I cannot do from this side:** the archives must be published by MagicBeanAdmin/Release's `longshot-tools.yml` (it holds RELEASE_TOKEN), which also prints the two `tools.lock` lines. Dispatch **Check tools** with `linux-x64/ffmpeg-cli windows-x64/ffmpeg-cli`, run **Longshot tools**, and the two lines go into this pull request with the names in `tools::lock::REQUIRED`. I did try to remove the need for it entirely with a pure-Rust decoder: the movie is AV1, and the only safe pure-Rust AV1 decoder (rav1d-safe) needs another integration and a real-dump check before it can be trusted for this movie, so a banner that cannot read the game's own movie would have been worse than one that needs a pinned tool. That remains the follow-up, not this fix. **L3 stands:** no dump on this PC and no Windows (or Wine), so the real-dump run is for a machine that has them.
Author
Member
@review
BeanBot left a comment

Recommendation: Request changes. The banner now targets the launcher’s game folder, but the decoder is still absent from both platforms’ installable tool entries. A normal Windows installation without FFmpeg therefore cannot make the banner.

The builder creates a Steam hero banner from the player’s movie and preserves any existing banner. It adds an optional decode and image composition step to the build.

Blocking (1): must change before merging.

  1. L2 tools.lock:21: The decoder is described in comments but has no installable lockfile entries for either platform. When: A normal Windows release installs only the tools named by lockfile entries. With no system ffmpeg, decoder() returns None and the banner is never made, despite the new recipes being present. Do: Publish and pin both decoder archives before merging, add them to the required tool list, and verify they are included in builder bundles.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3 builder/crates/build-driver/src/assets.rs:83: The current Rust finish and Windows decoder have not been demonstrated with the player's movie. When: The recorded Deck result used the deleted Python implementation; the Rust implementation changes decoding, image composition and publication, and the Windows executable has only been cross-built. Do: After fixing publication and bundling, run the finish with a local dump on Linux and Windows and check locally that the resulting banner appears in the Steam tile and preserves an existing player banner.

@fix can do L2.

Since the last review (on dd3d093f9c)
Resolved: L1 (The banner is made in the finish staging directory and published under data/, rather than…); L4 (The added first-build work has no build-time or memory measurement.)
Still open: L2 (The decoder is described in comments but has no installable lockfile entries for either pl…); L3 (The current Rust finish and Windows decoder have not been demonstrated with the player's m…)

Checks: Failing on this head, which is behind its base, where they pass: CI / Third-party parts and guide screenshots (pull_request), CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request). @rebase (or @fix) brings it up to date and runs them again; not held against it. Still running: 7 checks.

Also noticed (1; not asked for, not blocking)
  • The driver banner test checks preservation and the error path but does not exercise successful publication.
More: does it help, other systems, switches, what was read

Does it help: Unproven for the current Rust implementation with the player’s movie. The author reports a synthetic decode taking 0.69 seconds and 132 MB peak on Linux; the earlier Python implementation was exercised with a real dump on Steam Deck.

Other systems: The step runs during the finish on Linux and Windows, outside the game’s rendering and runtime paths. The Windows decoder was cross-built but not run; the current finish has not been demonstrated with the real movie on either platform.

Switches: LONGSHOT_FFMPEG_BIN selects a developer-supplied decoder when the bundled tool is absent; otherwise it defaults to PATH. LONGSHOT_HERO_ROMFS supplies a dump to an optional test and has no player-facing default.

Reviewed: 7f1544c99a against a845154d34: Read the repository rules and pull request template, the changed driver assets and banner test, the tool lockfile and decoder recipes; inspected the remaining diff and related builder code. Recorded runs were read from the pull request and comments; some larger file output was truncated.; nothing run (a code review).

Checked and fine:

  • The banner is excluded from the finish’s made-files list, so cleanup does not remove a player’s existing banner.
  • The new driver path retains the staged index for indexed dumps while using the game folder for output.

Testing: No commands that build or run project code were executed. The author reports Linux unit tests and a synthetic decoder run; real-dump Linux and Windows runs remain outstanding, and CI is still running.

Overlaps and merge order: LongshotLauncher#260 is reported merged; it supplies the launcher side.


Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The banner now targets the launcher’s game folder, but the decoder is still absent from both platforms’ installable tool entries. A normal Windows installation without FFmpeg therefore cannot make the banner. The builder creates a Steam hero banner from the player’s movie and preserves any existing banner. It adds an optional decode and image composition step to the build. **Blocking (1)**: must change before merging. 1. **L2** `tools.lock:21`: The decoder is described in comments but has no installable lockfile entries for either platform. *When:* A normal Windows release installs only the tools named by lockfile entries. With no system ffmpeg, decoder() returns None and the banner is never made, despite the new recipes being present. **Do:** Publish and pin both decoder archives before merging, add them to the required tool list, and verify they are included in builder bundles. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `builder/crates/build-driver/src/assets.rs:83`: The current Rust finish and Windows decoder have not been demonstrated with the player's movie. *When:* The recorded Deck result used the deleted Python implementation; the Rust implementation changes decoding, image composition and publication, and the Windows executable has only been cross-built. **Do:** After fixing publication and bundling, run the finish with a local dump on Linux and Windows and check locally that the resulting banner appears in the Steam tile and preserves an existing player banner. `@fix` can do L2. **Since the last review** (on dd3d093f9cf8) Resolved: L1 (The banner is made in the finish staging directory and published under data/, rather than…); L4 (The added first-build work has no build-time or memory measurement.) Still open: L2 (The decoder is described in comments but has no installable lockfile entries for either pl…); L3 (The current Rust finish and Windows decoder have not been demonstrated with the player's m…) **Checks:** Failing on this head, which is behind its base, where they pass: `CI / Third-party parts and guide screenshots (pull_request)`, `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs them again; not held against it. Still running: 7 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The driver banner test checks preservation and the error path but does not exercise successful publication. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the current Rust implementation with the player’s movie. The author reports a synthetic decode taking 0.69 seconds and 132 MB peak on Linux; the earlier Python implementation was exercised with a real dump on Steam Deck. **Other systems:** The step runs during the finish on Linux and Windows, outside the game’s rendering and runtime paths. The Windows decoder was cross-built but not run; the current finish has not been demonstrated with the real movie on either platform. **Switches:** LONGSHOT_FFMPEG_BIN selects a developer-supplied decoder when the bundled tool is absent; otherwise it defaults to PATH. LONGSHOT_HERO_ROMFS supplies a dump to an optional test and has no player-facing default. **Reviewed:** 7f1544c99a8c against a845154d3415: Read the repository rules and pull request template, the changed driver assets and banner test, the tool lockfile and decoder recipes; inspected the remaining diff and related builder code. Recorded runs were read from the pull request and comments; some larger file output was truncated.; nothing run (a code review). **Checked and fine:** - The banner is excluded from the finish’s made-files list, so cleanup does not remove a player’s existing banner. - The new driver path retains the staged index for indexed dumps while using the game folder for output. **Testing:** No commands that build or run project code were executed. The author reports Linux unit tests and a synthetic decoder run; real-dump Linux and Windows runs remain outstanding, and CI is still running. **Overlaps and merge order:** LongshotLauncher#260 is reported merged; it supplies the launcher side. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by omgitsgela. Nothing was run; a maintainer decides.</sub>
Some checks failed
CI / What the change needs (pull_request) Successful in 8s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 14s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/steam-hero-banner:omgitsgela-feat/steam-hero-banner'
git switch 'omgitsgela-feat/steam-hero-banner'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
MagicBeanDev/Longshot!2353
No description provided.