feat(steam): the game's own banner on the tile's detail page when its folder has one #260
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!260
Loading…
Reference in a new issue
No description provided.
Delete branch "omgitsgela/LongshotLauncher:feat/steam-hero-banner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why: Steam's tile detail page has a 1920x620 hero slot that today always gets the launcher's generated capsule. The builder can now put the player's own game's own still (one frame from a movie in their own dump, made on their machine, with Longshot's own mark drawn over it at build time) into the game folder as longshot_hero.png; the launcher should prefer it for that one slot and change nothing else.
WIP: the launcher half of the pair. The builder side is Longshot's own pull request (nx2/game_hero.py, same branch name); this one only reads what that writes.
No game art ships here either. The still is extracted on the player's machine from their own dump and lives in their game folder; this repository changes no artwork and scripts/make_artwork.py is untouched. The PR ships the preference rule, not a pixel.
The rule
_herocapsule carries the folder's bytes under both grid names, and the_logooffer is dropped with it: that hero carries Longshot's mark, drawn by the builder from the repository's own glyph master and face, and Steam draws its logo capsule right over the hero, which would paint a second mark on the same picture. A slot that is never offered is simply never written: checked against a Deck's own client with the file deleted, Steam draws no logo over the banner and no placeholder in its place, so this needs no blank art shipped to say the same thing.Testing
python -I tests/test_launcher_core.pyat this head: 2686 checks passing against 2668 on current main at a clean worktree of it (the wrapper then reports only the base's own inherited translation faults, byte-identical on both; the core harness itself passes both). The added hero block covers: no folder, no file, wrong shape, foreign bytes and an empty file all read as no hero; a PNG cut mid-write, and one that only draws its header (signature, IHDR and IEND with their CRCs right, no IDAT between them), are no hero either; the whole frame is not a hero; the folder's whole hero replaces only the_heroslot and drops the_logooffer, under both names a full hero takes; the launcher's cached capsules are never mutated; a broken hero leaves the whole generated set filling every open slot beside it, the logo back in; a whole hero offered again after its slot came free lands again; the retirement takes the generated logo under both names and nothing else, leaves art that is not the launcher's own byte for byte, and does not run at all with no folder hero.The banner now carries the mark, so the logo offer retires with it. WithGameHero drops the
_logooffer when the game folder's hero fills the_heroslot: Steam draws its logo capsule right over the hero, and a second mark on a picture that already carries one is the look this whole pair exists to stop. An absent logo file was checked on a Deck's own client: no logo, no placeholder, so the rule needs no blank art shipped to say the same thing. A folder with no whole hero keeps the entire generated set, logo back in with them.Refreshed at this head: 2680 checks against 2668 at a clean worktree of main, zero build warnings; the hero block now asserts the logo offer is gone beside a folder hero and returns with the rest when the hero is broken. The description above is current for this head.
WIP: feat(steam): the game's own banner on the tile's detail page when its folder has oneto feat(steam): the game's own banner on the tile's detail page when its folder has oneReview follow-up, commit
9eaa2db. Both findings reproduced against the published head first; both now have checks in the hero block, 2686 in the harness against 2668 at a clean worktree of main.GameHerotook a 45-byte file with a signature, an IHDR and an IEND and no pixels in it, a file that drew its own size for the check, and would have offered it to Steam, trading the logo slot for a black capsule. It now wants the IHDR CRC right, an IDAT between the ends, and an intact IEND, the same rules the builder holds its own output to. A file cut mid-write is checked too.WriteArtworkdeliberately never overwrites, so an install from before the marked hero keeps the logo this launcher generated for it, and the game ends up with that logo drawn over its own marked hero, two marks in one banner.RetireGeneratedLogodeletes the logo grid files under both names only when the bytes are ours byte for byte; art the user chose in Steam's UI, or anything a byte off our own, is never touched, and nothing runs at all when the folder has no hero.BuildStepViewModelcalls it after the write beside a folder hero; a folder-hero build re-run offers no logo, so a retired logo stays retired. That makesApp/ViewModels/BuildStepViewModel.csa third file in this pull request.Both PR heads now carry the review fixes; nothing else in either diff moved.
Heads-up from the paired builder pull request: review asked the gold line out from under the LONGSHOT wording on the baked hero, and it is out there (the mark is now glyph over word only). Nothing changes in this repository's code:
GameHero's whole-PNG rules, the_logodrop and the logo retirement all read and write the same files either way, and the hero's size is untouched. Harness still 2686 checks at this head.dukenheimer referenced this pull request2026-11-25 05:04:14 +00:00