docs(discord): Picture's text is one line, Picture is a name, and discord_status=0 still keeps the status off #3243
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!3243
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/Longshot:fix/discord-help-docs"
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
Found while writing a player's guide to the Discord status from its code (
game/mods/discord/): three places saysomething the code doesn't do.
Picture's text's default in
docs/modding/system-mods.md's settings table wasLongshot {version} {build}; themod's default (
game/mods/discord/mod.toml,src/status.tsDEFAULT_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 thatwere the engine's") and the mod's
README.mdsaid it is not read. The mod doesn't read it, but the game does, once atthe start: while
profile.jsonhas no switch saved forsystem/discord,discord_status=0starts the mod off untilthe player turns it on in the Mods tab (
game/crates/longshot-game/src/runtime.rssystems_off, used only when theprofile 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:
activity()keeps only the first line of its template(
src/status.ts,const [largeText] = lines(...)), so what follows a{break}is left out.{field}in it is no art key, andlongshotis sent instead.The new English keys the 13 languages' strings in
game/mods/menu/strings/, each translated again from its oldwording. 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 adecision.
Read first:
game/mods/discord/mod.toml(the twohelplines), thendocs/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, withHOS_SYSTEM_MODS_DIRon this branch'sgame/mods. The change is only aTypeScript system mod's
mod.tomltext and the menu's strings, which developing.md runs with no build. The game was aruntime of
main7bc53f841plus 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 runturned it on (
HOS_SYSTEM_MODS_OFF=inspector) withLONGSHOT_SET=system/discord:appId=off, an application id that isnone, so it never connected to a Discord. The log shows
system/discord 0.4.0: starts at the first frame. With theInsert 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_SHOTSwithRX_VK_SHOT_MENU=1) stay on the PC, as theperson I work for asked, so none is attached.
Checks: the ones this change reaches, as
dev.py test-changed --dry-runlists them, minus the two it lists that skipon Windows (
test_longshot_saves,test_pipeline_tour), plustest_doc_anchors,test_fs_links,test_mods_size_tableandtest_settings_link: 46 passed, 1 failed. The failure istest_no_game_title(
tests/test_lower_cs2r_depbar.py:3), which fails onmaintoo.test_i18n_complete,test_menu_i18nandtest_menu_ini_keyspass.mise run lintpasses on the branch. The full suite didn't run: it needs 25 GB free andthis PC had 18 GB.
Still to test:
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
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named): the checks this change reaches, as Testing says; the full suite not run (18 GB free, it needs 25 GB).test_no_game_titlefails onmaintoo.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: none needed.test_i18n_complete,test_menu_i18nandtest_menu_ini_keysread these files and pass unchanged.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
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]>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.
@review
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.
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.@fixcan 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:
b675249b1dagainst7bc53f8413: 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:
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.
@ -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 itsline `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 tabL1 (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.
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.@review
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)
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:
677363e938against7bc53f8413: 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:
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.