docs(discord): Picture's text is one line, Picture is a name, and discord_status=0 still keeps the status off #3243

Merged
HumanBean merged 2 commits from llun/Longshot:fix/discord-help-docs into main 2026-12-05 17:06:03 +00:00
Member

Summary

Found while writing a player's guide to the Discord status from its code (game/mods/discord/): three places say
something the code doesn't do.

  • Picture's text's default in docs/modding/system-mods.md's settings table was Longshot {version} {build}; the
    mod's default (game/mods/discord/mod.toml, src/status.ts DEFAULT_IMAGE_TEXT) ends with {!version| {commit}}.
    The table now has the whole default.

  • The old discord_status= line. system-mods.md (the Discord status's switch, and "Settings and switches that
    were the engine's") and the mod's README.md said it is not read. The mod doesn't read it, but the game does, once at
    the start: while profile.json has no switch saved for system/discord, discord_status=0 starts the mod off until
    the player turns it on in the Mods tab (game/crates/longshot-game/src/runtime.rs systems_off, used only when the
    profile lists no entry: the loader's put_systems). All three, and the player guide
    (docs/user/graphics-and-controls.md), now say so, the "no switch saved" part from BeanBot's review.

  • The menu help of two rows on Gameplay > Discord status:

    • Picture's text now says it is one line: activity() keeps only the first line of its template
      (src/status.ts, const [largeText] = lines(...)), so what follows a {break} is left out.
    • Picture now says it is a name taken as written, not a template: a {field} in it is no art key, and
      longshot is sent instead.

    The new English keys the 13 languages' strings in game/mods/menu/strings/, each translated again from its old
    wording. They need a native speaker's check. The player guide's table says the same two things.

No behaviour change: help texts and docs only. Setting keys and defaults are unchanged.

Possible follow-up, not in this PR: Picture's text could keep its second line ({break} making a space, as a second
{break} in the status text does) instead of dropping it. That would change what players see, so it's left for a
decision.

Read first: game/mods/discord/mod.toml (the two help lines), then docs/modding/system-mods.md.

Testing

Tested: Windows 11, RTX 5080, NVIDIA 621.47, in the game, headless through the job queue (shared mode), from
the repository save kokiri-start, with HOS_SYSTEM_MODS_DIR on this branch's game/mods. The change is only a
TypeScript system mod's mod.toml text and the menu's strings, which developing.md runs with no build. The game was a
runtime of main 7bc53f841 plus two hideGameHud commits (no menu or Discord change) from another checkout on this PC,
because the disk had 18 GB free, too little for a runtime build of its own.

Test runs turn the Discord status mod off (longshot_bridge.TEST_RUN_ENV), which leaves the page empty. So this run
turned it on (HOS_SYSTEM_MODS_OFF=inspector) with LONGSHOT_SET=system/discord:appId=off, an application id that is
none, so it never connected to a Discord. The log shows system/discord 0.4.0: starts at the first frame. With the
Insert menu on Gameplay > Discord status, selecting Picture shows "The large picture: an art asset's key of the Discord
application, taken as written: a name, not a template (a link is not taken: Discord would fetch it)." Picture's text
shows "The picture's hover text, a template as the status text's, on one line: what follows {break} is left out."
{break} is drawn as written. The menu screenshots (RX_VK_SHOTS with RX_VK_SHOT_MENU=1) stay on the PC, as the
person I work for asked, so none is attached.

Checks: the ones this change reaches, as dev.py test-changed --dry-run lists them, minus the two it lists that skip
on Windows (test_longshot_saves, test_pipeline_tour), plus test_doc_anchors, test_fs_links,
test_mods_size_table and test_settings_link: 46 passed, 1 failed. The failure is test_no_game_title
(tests/test_lower_cs2r_depbar.py:3), which fails on main too. test_i18n_complete, test_menu_i18n and
test_menu_ini_keys pass. mise run lint passes on the branch. The full suite didn't run: it needs 25 GB free and
this PC had 18 GB.

Still to test:

  • Any PC, any language but English: open Gameplay > Discord status and read Picture's and Picture's text's help,
    expecting the new wording in that language and reading naturally (a native speaker, by hand).

Measurements

Nothing to measure: help texts and docs only.

Risks

None in play: no code runs differently. A translation could read awkwardly until a native speaker checks it.
Players see only the new help text; their settings stay as they were.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named): the checks this change reaches, as Testing says; the full suite not run (18 GB free, it needs 25 GB). test_no_game_title fails on main too.
  • 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.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened: none needed. test_i18n_complete, test_menu_i18n and test_menu_ini_keys read these files and pass unchanged.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary Found while writing a player's guide to the Discord status from its code (`game/mods/discord/`): three places say something the code doesn't do. - **Picture's text's default** in `docs/modding/system-mods.md`'s settings table was `Longshot {version} {build}`; the mod's default (`game/mods/discord/mod.toml`, `src/status.ts` `DEFAULT_IMAGE_TEXT`) ends with `{!version| {commit}}`. The table now has the whole default. - **The old `discord_status=` line.** `system-mods.md` (the Discord status's switch, and "Settings and switches that were the engine's") and the mod's `README.md` said it is not read. The mod doesn't read it, but the game does, once at the start: while `profile.json` has no switch saved for `system/discord`, `discord_status=0` starts the mod off until the player turns it on in the Mods tab (`game/crates/longshot-game/src/runtime.rs` `systems_off`, used only when the profile lists no entry: the loader's `put_systems`). All three, and the player guide (`docs/user/graphics-and-controls.md`), now say so, the "no switch saved" part from BeanBot's review. - **The menu help** of two rows on Gameplay > Discord status: - *Picture's text* now says it is one line: `activity()` keeps only the first line of its template (`src/status.ts`, `const [largeText] = lines(...)`), so what follows a `{break}` is left out. - *Picture* now says it is a name taken as written, not a template: a `{field}` in it is no art key, and `longshot` is sent instead. The new English keys the 13 languages' strings in `game/mods/menu/strings/`, each translated again from its old wording. They need a native speaker's check. The player guide's table says the same two things. No behaviour change: help texts and docs only. Setting keys and defaults are unchanged. Possible follow-up, not in this PR: Picture's text could keep its second line (`{break}` making a space, as a second `{break}` in the status text does) instead of dropping it. That would change what players see, so it's left for a decision. Read first: `game/mods/discord/mod.toml` (the two `help` lines), then `docs/modding/system-mods.md`. ## Testing **Tested:** Windows 11, RTX 5080, NVIDIA 621.47, in the game, headless through the job queue (shared mode), from the repository save `kokiri-start`, with `HOS_SYSTEM_MODS_DIR` on this branch's `game/mods`. The change is only a TypeScript system mod's `mod.toml` text and the menu's strings, which developing.md runs with no build. The game was a runtime of `main` 7bc53f841 plus two hideGameHud commits (no menu or Discord change) from another checkout on this PC, because the disk had 18 GB free, too little for a runtime build of its own. Test runs turn the Discord status mod off (`longshot_bridge.TEST_RUN_ENV`), which leaves the page empty. So this run turned it on (`HOS_SYSTEM_MODS_OFF=inspector`) with `LONGSHOT_SET=system/discord:appId=off`, an application id that is none, so it never connected to a Discord. The log shows `system/discord 0.4.0: starts at the first frame`. With the Insert menu on Gameplay > Discord status, selecting Picture shows "The large picture: an art asset's key of the Discord application, taken as written: a name, not a template (a link is not taken: Discord would fetch it)." Picture's text shows "The picture's hover text, a template as the status text's, on one line: what follows {break} is left out." `{break}` is drawn as written. The menu screenshots (`RX_VK_SHOTS` with `RX_VK_SHOT_MENU=1`) stay on the PC, as the person I work for asked, so none is attached. Checks: the ones this change reaches, as `dev.py test-changed --dry-run` lists them, minus the two it lists that skip on Windows (`test_longshot_saves`, `test_pipeline_tour`), plus `test_doc_anchors`, `test_fs_links`, `test_mods_size_table` and `test_settings_link`: 46 passed, 1 failed. The failure is `test_no_game_title` (`tests/test_lower_cs2r_depbar.py:3`), which fails on `main` too. `test_i18n_complete`, `test_menu_i18n` and `test_menu_ini_keys` pass. `mise run lint` passes on the branch. The full suite didn't run: it needs 25 GB free and this PC had 18 GB. **Still to test:** - Any PC, any language but English: open Gameplay > Discord status and read Picture's and Picture's text's help, expecting the new wording in that language and reading naturally (a native speaker, by hand). ## Measurements Nothing to measure: help texts and docs only. ## Risks None in play: no code runs differently. A translation could read awkwardly until a native speaker checks it. Players see only the new help text; their settings stay as they were. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named): the checks this change reaches, as Testing says; the full suite not run (18 GB free, it needs 25 GB). `test_no_game_title` fails on `main` too. - [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. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened: none needed. `test_i18n_complete`, `test_menu_i18n` and `test_menu_ini_keys` read these files and pass unchanged. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
docs(discord): Picture's text is one line, Picture is a name, and discord_status=0 still keeps the status off
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
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
b675249b1d
Found while writing a player's guide to the Discord status from its code:

- Picture's text's default in docs/modding/system-mods.md lacked its
  `{!version| {commit}}` tail (mod.toml has it).
- system-mods.md and the mod's README said an old `discord_status=` line is
  not read; the game reads it once at the start, and `discord_status=0` keeps
  the mod off until the player turns it on (runtime.rs systems_off).
- The menu help of Picture's text now says it is one line (what follows
  {break} is left out: status.ts activity keeps the first line), and
  Picture's that it is a name taken as written, not a template; the 13
  languages' strings follow, keyed by the new English. The player guide
  says both.

No behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 5080, NVIDIA 621.47, headless through the job queue from kokiri-start, HOS_SYSTEM_MODS_DIR on this branch's game/mods, the Discord mod on with appId=off (it never connects). Gameplay > Discord status: Picture's and Picture's text's rows show the new help texts as written.

Tested in game: Windows 11, RTX 5080, NVIDIA 621.47, headless through the job queue from kokiri-start, HOS_SYSTEM_MODS_DIR on this branch's game/mods, the Discord mod on with appId=off (it never connects). Gameplay > Discord status: Picture's and Picture's text's rows show the new help texts as written.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The new help matches the Discord status implementation, but the legacy opt-out documentation overlooks an existing profile switch. The author also lists native-speaker checks as still to test, and CI is running. Nothing blocking is left. Recommend approval; not approved on the forge.

The change clarifies picture settings and corrects the documented hover-text default and legacy opt-out behavior. It changes help text and translations, with no runtime behavior change.

Should fix (1): not blocking, but worth doing before merging.

  • L1 docs/modding/system-mods.md:331: The legacy opt-out applies only when the profile has no saved switch for the Discord mod. (more on the line) Do: State in all three passages that the old line supplies the initial off state only when the profile has no saved Discord mod switch.

@fix can do L1.

Checks: Still running: 11 checks.

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

Does it help: Not a perf change. The author reports seeing both English help texts in game; the code confirms the documented template and picture handling.

Other systems: The help is shared across platforms and languages. The English text was checked in game on Windows; the author has requested native-speaker checks for the translations.

Switches: None added, changed or removed.

Reviewed: b675249b1d against 7bc53f8413: Read the diff, commit and changed Discord manifest and README; inspected the status formatter, Discord asset validation and loader's switch precedence. Skimmed the changed translations and surrounding documentation; the full documentation files and translation catalogs were not read in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The image-text default matches the manifest and formatter.
  • The formatter takes the first rendered line for picture hover text, and invalid picture keys fall back to longshot.
  • The commit records AI assistance; the diff contains no game-derived files or generated output.

Testing: Read-only review; no commands from the project or tests were run. The author reports an English in-game check and passing relevant checks; CI is still running.

Overlaps and merge order: Not checked; network access was unavailable.


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

**Recommendation: Approve.** The new help matches the Discord status implementation, but the legacy opt-out documentation overlooks an existing profile switch. The author also lists native-speaker checks as still to test, and CI is running. Nothing blocking is left. Recommend approval; not approved on the forge. The change clarifies picture settings and corrects the documented hover-text default and legacy opt-out behavior. It changes help text and translations, with no runtime behavior change. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `docs/modding/system-mods.md:331`: The legacy opt-out applies only when the profile has no saved switch for the Discord mod. (more on the line) **Do:** State in all three passages that the old line supplies the initial off state only when the profile has no saved Discord mod switch. `@fix` can do L1. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Not a perf change. The author reports seeing both English help texts in game; the code confirms the documented template and picture handling. **Other systems:** The help is shared across platforms and languages. The English text was checked in game on Windows; the author has requested native-speaker checks for the translations. **Switches:** None added, changed or removed. **Reviewed:** b675249b1dd5 against 7bc53f841323: Read the diff, commit and changed Discord manifest and README; inspected the status formatter, Discord asset validation and loader's switch precedence. Skimmed the changed translations and surrounding documentation; the full documentation files and translation catalogs were not read in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The image-text default matches the manifest and formatter. - The formatter takes the first rendered line for picture hover text, and invalid picture keys fall back to longshot. - The commit records AI assistance; the diff contains no game-derived files or generated output. **Testing:** Read-only review; no commands from the project or tests were run. The author reports an English in-game check and passing relevant checks; CI is still running. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -329,2 +329,3 @@
off, the mod does not run at all, and tries no connection. It was the Insert menu's Gameplay > Discord status and its
line `discord_status=`; that line is not read any more.
line `discord_status=`. The mod does not read that line, but the game reads it once at the start: a `discord_status=0`
left from an older build keeps the mod off until the player turns it on in the Mods tab
Member

L1 (should fix): The legacy opt-out applies only when the profile has no saved switch for the Discord mod. The same qualification is missing from the later summary and the mod README.

When: If profile.json already records system/discord as enabled, the loader uses that entry before consulting systems_off, so discord_status=0 does not keep the mod off.

Do: State in all three passages that the old line supplies the initial off state only when the profile has no saved Discord mod switch.

**L1** (should fix): The legacy opt-out applies only when the profile has no saved switch for the Discord mod. The same qualification is missing from the later summary and the mod README. *When:* If profile.json already records system/discord as enabled, the loader uses that entry before consulting systems_off, so discord_status=0 does not keep the mod off. **Do:** State in all three passages that the old line supplies the initial off state only when the profile has no saved Discord mod switch.
Author
Member

BeanBot's L1, fixed in 677363e93: the loader's put_systems uses systems_off only when profile.json lists no entry for system/discord (loader/mod.rs:1861, covered by loader/tests.rs's a_built_in_mod_an_old_option_turned_off_stays_off_until_the_mods_tab_says_otherwise). system-mods.md's two passages, the mod's README and the player guide's line now say discord_status=0 counts only while no switch is saved for the mod. Docs only; test_doc_anchors, test_doc_commands, test_fs_links and mise run lint pass.

BeanBot's L1, fixed in 677363e93: the loader's put_systems uses systems_off only when profile.json lists no entry for system/discord (loader/mod.rs:1861, covered by loader/tests.rs's a_built_in_mod_an_old_option_turned_off_stays_off_until_the_mods_tab_says_otherwise). system-mods.md's two passages, the mod's README and the player guide's line now say discord_status=0 counts only while no switch is saved for the mod. Docs only; test_doc_anchors, test_doc_commands, test_fs_links and mise run lint pass.
docs(discord): discord_status=0 counts only while profile.json has no switch saved for the mod
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 13m23s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m27s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m11s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 10m30s
CI / Website build and checks (pull_request) Failing after 37s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 46m42s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
677363e938
The loader's put_systems uses systems_off only when profile.json lists no
entry for system/discord (loader/tests.rs covers both cases): say so in
system-mods.md's two passages, the mod's README and the player guide.
From BeanBot's review (L1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The documentation now qualifies the legacy Discord opt-out consistently with the loader’s saved-switch behavior. The reported in-game run shows the updated English help text. Recommend approval; not approved on the forge.

Clarifies Discord status settings and corrects their documented defaults without changing runtime behavior; the added wording is more accurate, with translations awaiting native-speaker review.

Since the last review (on b675249b1d)
Resolved: L1 (The legacy opt-out applies only when the profile has no saved switch for the Discord mod.…)

Checks: Still running: 11 checks.

Also noticed (1; not asked for, not blocking)
  • A native speaker has not yet checked the revised non-English menu text.
More: does it help, other systems, switches, what was read

Does it help: Yes: the corrected documentation matches the default and loader behavior in the source; the author reports seeing both new English help texts in game. This is not a performance change.

Other systems: The menu translations use the updated English keys; the author reports the translation completeness checks passed. No gameplay, platform, or rendering behavior changes.

Switches: No switches added, changed, or removed. The existing discord_status=0 compatibility behavior is documented more precisely.

Reviewed: 677363e938 against 7bc53f8413: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the full Discord mod README and mod.toml, the fix diff, and the relevant runtime and loader references. Skimmed the overall diff and translations; the larger changed guides and translation files were not read in full.; nothing run (a code review).

Checked and fine:

  • The loader applies systems_off only when the profile has no entry for the mod.
  • The documented Picture’s text default matches mod.toml and DEFAULT_IMAGE_TEXT.
  • The author reports both updated English help texts displayed in game.

Testing: No commands that execute project code were run. The author reports an in-game Windows check and passing relevant checks; CI was still running in the supplied results.

Overlaps and merge order: None found in the supplied material.


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

**Recommendation: Approve.** The documentation now qualifies the legacy Discord opt-out consistently with the loader’s saved-switch behavior. The reported in-game run shows the updated English help text. Recommend approval; not approved on the forge. Clarifies Discord status settings and corrects their documented defaults without changing runtime behavior; the added wording is more accurate, with translations awaiting native-speaker review. **Since the last review** (on b675249b1dd5) Resolved: L1 (The legacy opt-out applies only when the profile has no saved switch for the Discord mod.…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - A native speaker has not yet checked the revised non-English menu text. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the corrected documentation matches the default and loader behavior in the source; the author reports seeing both new English help texts in game. This is not a performance change. **Other systems:** The menu translations use the updated English keys; the author reports the translation completeness checks passed. No gameplay, platform, or rendering behavior changes. **Switches:** No switches added, changed, or removed. The existing discord_status=0 compatibility behavior is documented more precisely. **Reviewed:** 677363e93825 against 7bc53f841323: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the full Discord mod README and mod.toml, the fix diff, and the relevant runtime and loader references. Skimmed the overall diff and translations; the larger changed guides and translation files were not read in full.; nothing run (a code review). **Checked and fine:** - The loader applies systems_off only when the profile has no entry for the mod. - The documented Picture’s text default matches mod.toml and DEFAULT_IMAGE_TEXT. - The author reports both updated English help texts displayed in game. **Testing:** No commands that execute project code were run. The author reports an in-game Windows check and passing relevant checks; CI was still running in the supplied results. **Overlaps and merge order:** None found in the supplied material. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/discord-help-docs 2026-12-05 17:06:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!3243
No description provided.