fix(assets): Longshot's logo is the new striped one: the exe and taskbar icon, the start-up screen, the menu, the README and the website #2724
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2724
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/Longshot:fix/longshot-new-logo"
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?
Summary
The Longshot Launcher shows the new striped Longshot logo since its Rust port, but a game it builds still has the old
green hookshot as its exe and taskbar icon, on its start-up screen and in the menu's banner, and the README and the
website still show it too. On
main: build a game (or run a nightly), look atlongshot.exein Explorer, itstaskbar button or the start-up screen: the green hookshot. This puts the striped logo everywhere in this repository.
The new logo is LongshotLauncher's
assets/longshot.png,added by HumanBean in LongshotLauncher#284
(the Rust port): 619×619 RGBA, the largest copy of it there is (blob
2462464c).assets/longshot.png: that picture fitted in a transparent 512×512 square, 8-bit RGBA, non-interlaced, asbuild-compile'sgenerated::decode_pngreads it. It is the start-up screen's logo (generated::logo_header), themenu banner's, the Linux window icon's fallback (
build-assetslib.rs,host/posix/display_sdl.c) and the README's.assets/longshot.ico: the exe's icon (icon 1, which the window and taskbar take) and the Steam shortcut's(
longshot-buildersteam_cmd.rs). PNG images aticon::SIZES(16, 24, 32, 48, 64, 128, 256), each resampledonce from the 619 picture, not from the 512 PNG.
assets/branding/longshot.png: the website's favicon and header logo, the same file asassets/longshot.png; a linein
PROVENANCE.txtsays where it came from.docs/user/images/guide/settings-graphics.png: the menu fixture drawsassets/longshot.pngin the banner, so theGraphics image is recaptured and its manifest entry rewritten (below).
How the files were made (reproducible, the builder's own code):
builder/crates/build-assets/examples/longshot_icon.rs,It writes
assets/longshot.pngasicon::square(picture, 512)andassets/longshot.icoasicon::ico_of(icon::images_of(picture))(Lanczos into a transparent square, as the builder makes an exe's icon).Without a picture it remakes the
.icofrom the PNG there. A new test,icon::tests::longshots_ico_is_its_png, checksthe two stay together: the PNG is 512×512 RGBA, the
.icoholds every size, and each is the PNG's at that size withinrounding (0.65 to 0.73 apart on average per channel; main's old
.icoagainst the new PNG is 74 to 82 apart, thelimit is 4). No other copy or hash of the old artwork is in the tree (checked by blob and SHA-256); the
App/Assets/...hashes in the manifest are the old launcher's files and stay. MagicBeanDev/Site and Beanstalk havetheir own copies and are handled apart.
Read first:
builder/crates/build-assets/examples/longshot_icon.rs, the test inbuilder/crates/build-assets/src/icon.rs.Testing
Tested: Windows 11 Pro (build 26300), RTX 5080, driver 621.40, at
b31dccae(9a3d763aadds the guide image and its docs; the current head also fixes missing--rootvalue handling). Main22d0d200's shared base, this branch as a packover it (
mise run dev -- base,pack,rt, andrt --emptyfor main), each run windowed through the job queue witha build name:
longshot.exein File Explorer (large icons): main's has the hookshot, this branch's the striped logo. All 7 of thenew
.ico's images are in this branch's exe and none of main's (and the reverse for main's exe).guide fixture's capture instead (below).
Checks:
cargo test -p build-assets: 69 passed;cargo clippy -p build-assets --all-targets -D warningsandcargo fmt --checkclean.scripts/check_guide_screenshots.py --review-sourcespasses (onmainit fails: 14 UI sources changed since thelast review; the recapture records them).
tests/test_guide_screenshots.pypasses.mise run teston this PC (Windows): 169 passed, 672 failed, 47 skipped, the same 672 failing onmain22d0d200(compared file by file: none fails only here). They fail at once because this PC has no g++, glslang or spirv-val
for them; CI runs them on Linux.
The guide image: recaptured with
scripts/screenshots/capture_menu.pyfromb31dccae(Ubuntu 24.04 under WSL 2:clang 18.1.3, SDL 2.30.0, libpng 1.6.43). A capture of
mainwith the same toolchain differs from it in the logo and theversion text only. Against the previous image (captured from
e78aa33dwith clang 23.1.4, SDL 2.32.74) the rows,labels, values, help, tab strip and footer are the same; the logo, the version text and the text's antialiasing
differ. The PNG is the helper's output unchanged; the manifest records its 147 inputs.
Still to test:
longshot.pngin the game folder (by hand: it is judged by eye).longshot-builder steam addputs the striped icon on the game's Steam shortcut (by hand: it changes Steam'sshortcuts on the PC).
Measurements
Verdict: nothing runs differently, so there is no fps or frame time to measure: pictures only. The files and the
exe change size a little; the assets' build time is unchanged (the same steps on similar inputs).
Setup: the files' sizes on disk;
longshot.exefrom main's runtime (rt --empty) and this branch's, same base.22d0d200b31dccaeassets/longshot.pngassets/longshot.icolongshot.exeRisks
A picture only: the exe, the window, the start-up screen, the menu banner, the website and the README show the new
logo. Explorer may show the old exe icon for a game folder it cached before an update until its icon cache refreshes
(the same as any exe whose icon changes). A revert is enough.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened.mainand here, for a change that shows on screen.Assisted-by:/Co-Authored-By:trailers.(No "A fix: a game-free test that fails on
main" box: an old picture is not something a game-free test can showfailing. The new test guards the
.icoagainst the PNG and passes onmaintoo, where the old pair was made the sameway; the in-game pictures are the evidence.)
Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Tested in game: Windows 11 Pro 26300, RTX 5080, driver 621.40; this branch as a pack over main 22d0d200's base, windowed through the job queue. The start-up screen shows the striped logo (main: the green hookshot); longshot.exe in Explorer and the running game's taskbar button and title bar have the striped icon (main's exe: the hookshot); the game ran 77 s to its title scene and closed when asked (exit 0).
Possibly related, for context:
Before (main
22d0d200) and after (this branch), same PC, same base (Windows 11, RTX 5080, 621.40):The start-up screen's logo (left main, right here; cropped to the logo):
longshot.exein File Explorer (large icons; copies of each runtime's exe side by side):The taskbar while this branch's game runs (left: the Longshot Launcher's pinned button; right: the game's):
The menu banner in the guide's Graphics image (top: the published one; bottom: the recapture in this PR):
Measurements: a table of the files' and the exe's sizes, main against this branch (pictures only: nothing to measure in fps).
Still to test: the Linux window icon is by hand (judged by eye), not a Test Farm run.
WIP: fix(assets): Longshot's logo is the new striped one: the exe and taskbar icon, the start-up screen, the menu, the README and the websiteto fix(assets): Longshot's logo is the new striped one: the exe and taskbar icon, the start-up screen, the menu, the README and the websiteStill to test: wording only (both items are by hand).
@review
Recommendation: Approve. The Windows run shows the new logo on the startup screen, executable and taskbar. The Linux fallback icon and Windows Steam shortcut still need the hand checks identified in the pull request. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
Replaces Longshot’s logo across the game, executable, website and guide, and adds a tool and test for keeping the PNG and ICO aligned. The executable grows by about 16 KB in the author’s comparison.
Should fix (1): not blocking, but worth doing before merging.
builder/crates/build-assets/examples/longshot_icon.rs:19: A missing value after --root silently selects the default checkout instead of rejecting the command. (more on the line) Do: Require an argument after --root and exit with the usage message when it is absent.Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
@fixcan do L1.Checks: Cancelled on this head (no result):
PR description / Title and description (pull_request_target). Still running: 7 checks.More: does it help, other systems, switches, what was read
Does it help: Yes: the author reports that the startup screen, Explorer icon and taskbar show the striped logo on Windows, with before-and-after screenshots. The Linux fallback and Steam shortcut remain unverified.
Other systems: The PNG also feeds the menu banner, README, website and Linux fallback icon; the ICO feeds executable resources and Steam shortcuts. The guide fixture shows the banner, while the Linux fallback and Steam shortcut have not yet been checked by hand. No rendering logic or GPU-specific code changes.
Switches: None.
Reviewed:
9a3d763a03against22d0d20098: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, both changed Rust files, the changed READMEs and provenance text, the diff and commit messages. Skimmed the manifest and asset-consumer paths; binary image contents and attached screenshots were not independently inspected. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run, as requested. The author reports Windows game and asset checks; CI was still running.
Overlaps and merge order: No overlapping pull request was identified in the available checkout.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -0,0 +16,4 @@let (mut root, mut picture) = (PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../.."), None);while let Some(a) = args.next() {match a.as_str() {"--root" => root = args.next().map(PathBuf::from).unwrap_or(root),L1 (should fix): A missing value after --root silently selects the default checkout instead of rejecting the command.
When: Running the tool with a picture followed by a trailing --root exits successfully and overwrites this checkout’s logo files, although no target tree was supplied.
Do: Require an argument after --root and exit with the usage message when it is absent.
@fix
Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The striped logo is shown on the tested Windows startup screen, executable and taskbar, and in the menu fixture. The Linux fallback window icon and Windows Steam shortcut icon still need the listed visual checks. Recommend approval; not approved on the forge.
What
@fixchangedI changed this pull request: the new head is
d14722680d. I edited its description to match the change.Changed
Nothing was built or run: the checks run again on the new head.
Replaces Longshot branding across the game, executable, website and documentation, and adds a tool and test to keep the icon assets together. The reported executable size increases by 16 KB.
Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
Checks: they run again on this head; a failure shows on the pull request.
More: does it help, other systems, switches, what was read
Does it help: Yes for the tested Windows and menu presentations, based on the author's before-and-after observations and captures. This is not a performance change; the two remaining icon delivery paths are unverified.
Other systems: Linux uses the PNG fallback when the game has no usable icon; Windows Steam shortcuts embed the ICO. Both still need visual checks. The website and README use the updated artwork.
Switches: None.
Reviewed:
d14722680dagainst22d0d20098: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the icon example, icon module, changed build-assets README and branding provenance. Skimmed the guide README, manifest diff and icon delivery references; binary images and the full dependent files were not read. docs/review-checklist.md was absent.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The author reports Windows game and icon checks, a Linux menu fixture capture, and passing build-assets checks; CI has not yet run on the new head.
Overlaps and merge order: Not checked; network access is unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.