WIP: feat(items): support custom items in Quick Select Items #2528

Draft
snaildev99 wants to merge 13 commits from snaildev99/Longshot:feat/rust-usable-items into mod-api
Contributor

Summary

Mods can register usable items in Quick Select Items, which opens with L or R by default. Confirming an item equips it. A script can read the selection and set the count shown on the tile and HUD.

An item can reserve a + menu slot with slot: { id }. Until the layout supplies its button, the item remains available in Quick Select Items. The Hookshot retains its icon and the previous native item loses its highlight when a custom item is equipped. Creating layout buttons is future work.

This stacks on controller PR #2516 at f8b0c6c68, based on Rust Mod API #2434 at b9ac71657. The forge target is mod-api. This supersedes #2340. See game/crates/oot/src/equipment.rs for menu behavior and docs/modding/api-guide.md for the mod-author example. Item-only diff

Testing

Previous Windows hand test. Windows, GeForce RTX 3090, NVIDIA 610.88. Hand-tested custom selection, HUD counts and icon shadows in Adult Kakariko with three custom items. On 0243535e9, custom items appeared on the left. With a custom item equipped, the + Items page opened, closed and reopened, the Hookshot was visible, and the previously equipped native item stayed unhighlighted.

Before the compiler-selection fix, all 236 content, 312 OOT and 30 game-site tests passed with the game-site suite run serially. The Rust mod tool regression passed for selection, trigger release and independent equipment slots. The schema consistency check passed. Seven repository hook-site checks passed, and all 27 ported hook contracts and placements match the prior implementation. The broader Windows suites reported three failures: the API loader test a_content_mods_changed_module_runs_again_and_its_outputs_are_served, the mod tool emulator discovery test eden_and_ryujinx_mods_are_found_with_their_switches, and every_example_passes_its_tests in the UI2 demo. All three failures also reproduced on the parent controller revision.

The standard Windows builder at this #2434 revision misses the ImGui include flags for vk_ui2.cpp. The local play builds use the renderer's existing ImGui flags for that file.

Still to test:

  • Windows and Linux, by hand on the rebased head. Equip a custom item, switch back to the Hookshot and reopen the + Items page. Check selection, HUD count, native highlight and menu transitions.

Measurements

The earlier Windows play log recorded 60.0 fps in its final two reporting intervals. A matched, interleaved performance comparison against the dependency base is pending.

Risks

Both menus use the same pouch row IDs. The changes reorder display entries and skip missing buttons while retaining those IDs. Incorrect mapping could affect a native upgrade, cursor movement or an icon. Custom selection lasts for the session.

Checklist

The integration target is mod-api. Windows hand-testing passed on the earlier head and is pending on the rebased build. The strict suite, matched timings, paired screenshots and Linux verification remain open.

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).
  • 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 fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • 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.
## Summary Mods can register usable items in **Quick Select Items**, which opens with **L** or **R** by default. Confirming an item equips it. A script can read the selection and set the count shown on the tile and HUD. An item can reserve a + menu slot with `slot: { id }`. Until the layout supplies its button, the item remains available in Quick Select Items. The Hookshot retains its icon and the previous native item loses its highlight when a custom item is equipped. Creating layout buttons is future work. This stacks on controller PR #2516 at `f8b0c6c68`, based on Rust Mod API #2434 at `b9ac71657`. The forge target is `mod-api`. This supersedes #2340. See `game/crates/oot/src/equipment.rs` for menu behavior and `docs/modding/api-guide.md` for the mod-author example. [Item-only diff](https://git.magicbean.dev/snaildev99/Longshot/compare/f8b0c6c68cf581e28239636a72d0cef1ff4c324c...c2fe49e249ecbbd590ed8e41101b832581f16ee4) ## Testing **Previous Windows hand test.** Windows, GeForce RTX 3090, NVIDIA 610.88. Hand-tested custom selection, HUD counts and icon shadows in Adult Kakariko with three custom items. On `0243535e9`, custom items appeared on the left. With a custom item equipped, the + Items page opened, closed and reopened, the Hookshot was visible, and the previously equipped native item stayed unhighlighted. Before the compiler-selection fix, all 236 content, 312 OOT and 30 game-site tests passed with the game-site suite run serially. The Rust mod tool regression passed for selection, trigger release and independent equipment slots. The schema consistency check passed. Seven repository hook-site checks passed, and all 27 ported hook contracts and placements match the prior implementation. The broader Windows suites reported three failures: the API loader test `a_content_mods_changed_module_runs_again_and_its_outputs_are_served`, the mod tool emulator discovery test `eden_and_ryujinx_mods_are_found_with_their_switches`, and `every_example_passes_its_tests` in the UI2 demo. All three failures also reproduced on the parent controller revision. The standard Windows builder at this #2434 revision misses the ImGui include flags for `vk_ui2.cpp`. The local play builds use the renderer's existing ImGui flags for that file. **Still to test:** - Windows and Linux, by hand on the rebased head. Equip a custom item, switch back to the Hookshot and reopen the + Items page. Check selection, HUD count, native highlight and menu transitions. ## Measurements The earlier Windows play log recorded 60.0 fps in its final two reporting intervals. A matched, interleaved performance comparison against the dependency base is pending. ## Risks Both menus use the same pouch row IDs. The changes reorder display entries and skip missing buttons while retaining those IDs. Incorrect mapping could affect a native upgrade, cursor movement or an icon. Custom selection lasts for the session. ## Checklist The integration target is `mod-api`. Windows hand-testing passed on the earlier head and is pending on the rebased build. The strict suite, matched timings, paired screenshots and Linux verification remain open. ### 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). - [ ] 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 fix: a game-free test that fails on `main` and passes here. - [ ] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [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.
Port the sandbox controller transport from #2016 and preserve virtual controller detection on the host SDL backend.

Assisted-by: OpenAI Codex
fix(input): reserve a game-owned controller connection
Some checks are pending
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 6s
7448586cab
Carry controller traffic on its own authenticated connection and retain the normal broker channels for other operations.

Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
Assisted-by: OpenAI Codex
docs(items): use the Quick Select Items name and default controls
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 4s
Website / Website on Cloudflare (pull_request) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 28s
Third-party parts / As their notes say (pull_request) Successful in 28s
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website builds (pull_request) Failing after 1m32s
1a44c88c92
Assisted-by: OpenAI Codex
Author
Contributor

Tested in game: Windows, GeForce RTX 3090, NVIDIA 610.88. In Adult Kakariko on 0243535e9, the tester confirmed custom item selection and left-side order in Quick Select Items, HUD icons and counts, and reopening the + Items page with the Hookshot visible and the previous native highlight cleared.

Tested in game: Windows, GeForce RTX 3090, NVIDIA 610.88. In Adult Kakariko on 0243535e9, the tester confirmed custom item selection and left-side order in Quick Select Items, HUD icons and counts, and reopening the + Items page with the Hookshot visible and the previous native highlight cleared.
Member

Possibly related, for context:

  • PR #2340 WIP: feat(modapi): select custom usable items from the native L menu — Earlier custom items in native L menu; overlapping feature, this PR extends to Quick Select.
Possibly related, for context: - PR #2340 WIP: feat(modapi): select custom usable items from the native L menu — Earlier custom items in native L menu; overlapping feature, this PR extends to Quick Select.
snaildev99 force-pushed feat/rust-usable-items from 1a44c88c92
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 4s
Website / Website on Cloudflare (pull_request) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 28s
Third-party parts / As their notes say (pull_request) Successful in 28s
Website / Website preview, build (pull_request) Has been skipped
Website / Website preview, upload (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website builds (pull_request) Failing after 1m32s
to bc334cec67
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 20s
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-25 23:05:15 +00:00
Compare
snaildev99 force-pushed feat/rust-usable-items from bc334cec67
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 20s
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to c2fe49e249
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 23s
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
2026-11-25 23:12:42 +00:00
Compare
Author
Contributor

Rebased Quick Select Items on #2516 and ported the selection regression to #2434's Rust mod tool. The focused tests and schema consistency check passed on c2fe49e24. The Testing section distinguishes the earlier Windows playtest from checks run on this head. Item-only diff

Rebased Quick Select Items on #2516 and ported the selection regression to #2434's Rust mod tool. The focused tests and schema consistency check passed on `c2fe49e24`. The Testing section distinguishes the earlier Windows playtest from checks run on this head. [Item-only diff](https://git.magicbean.dev/snaildev99/Longshot/compare/f8b0c6c68cf581e28239636a72d0cef1ff4c324c...c2fe49e249ecbbd590ed8e41101b832581f16ee4)
Author
Contributor

Confirmed all three broader test failures on the parent revision. The game builder placed 193 hook sites on this branch, up from 166 on the controller base. All 27 added item hooks were placed.

Confirmed all three broader test failures on the parent revision. The game builder placed 193 hook sites on this branch, up from 166 on the controller base. All 27 added item hooks were placed.
Owner
@rebase
Member

I rebased this pull request onto mod-api (93c7a8e8ae): the new head is ecc9979525.

Conflicts resolved

  • docs/modding/scripting.md: Kept both sides’ features and ordered the generated list lexicographically.

Nothing was built or run: read the resolution before merging.


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

I rebased this pull request onto `mod-api` (93c7a8e8ae95): the new head is ecc99795257f. **Conflicts resolved** - docs/modding/scripting.md: Kept both sides’ features and ordered the generated list lexicographically. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed feat/rust-usable-items from c2fe49e249
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 23s
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
to ecc9979525
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 16s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 17s
Third-party parts / As their notes say (pull_request) Successful in 23s
2026-11-26 04:19:15 +00:00
Compare
Owner
@review
Owner
@review
BeanBot left a comment

Recommendation: Approve. A new controller test ignores the configured compiler and can fail on supported developer setups. The rebased feature and controller transport also still need in-game verification. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change lets mods register custom Quick Select Items, display counts and reserve item-use input. It also carries the stacked Windows sandbox controller transport and changes load-event handling.

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

  • L1 tests/test_pad_motion_policy.py:12: The new test hard-codes gcc and ignores CC. (more on the line) Do: Honor CC and select an available supported compiler by default, as the other new controller tests do.

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

  • L2: The rebased item hooks and controller transport need in-game verification. When: The only reported playtest predates the rebase, while the head changes native menu hooks and Windows controller routing; the supplied checks cannot show that selection, switching back and controller input work in the running game. Do: Run the stated item transitions on the rebased head on Windows and Linux, and exercise the Windows sandbox controller path, including motion and rumble.
  • L3: The per-frame hook and controller transport costs have not been compared against the base. When: The change adds callbacks and synchronized registry access on game paths and moves sandbox controller polling across a pipe; the single reported 60.0 fps value cannot show their frame-time or input-latency cost. Do: Compare matched, interleaved base and head runs in representative play, including frame times and controller responsiveness.

@fix can do L1.

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

  • game/crates/oot/src/items.rs:569: Can two distinct save-load requests reach save.load in consecutive polls, and if so, how can that sequence be reproduced?

Checks: Still running: PR description / Description follows the template (pull_request_target), Guide screenshots / Guide images and local UI source review (pull_request), Third-party parts / As their notes say (pull_request).

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

Does it help: Unproven on the rebased head. The earlier Windows playtest confirmed selection, counts and menu reopening on 0243535e9; the reported 60.0 fps has no matched base comparison.

Other systems: The item hooks affect native inventory highlighting, HUD updates, save-load notifications and input reservation. The stacked transport affects Windows sandbox controllers, motion and rumble; Linux also receives the motion-policy and item-input changes. The supplied runs do not verify these paths on the rebased head.

Switches: HOS_SWITCH2 remains on by default on unconfined Windows; its USB driver is unavailable in the Windows sandbox. HOS_SWITCH2_RUMBLE_TEST remains off and is likewise limited to unconfined Windows. The switch table and documentation describe these limits.

Reviewed: ecc9979525 against 93c7a8e8ae: Read the repository rules, PR template, standards, commit log, item equipment implementation, controller broker implementation and the focused diffs for content, item services, input and tests. Skimmed the remaining changed files and generated site declarations; not every changed code file was read in full. Tooling's sibling AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review).

Checked and fine:

  • The renderer interface change shown in vk_api.h changes a comment, not the interface layout.
  • The independent-slot feature checks its required site placements before staging content.
  • The new controller tests other than the motion-policy test use CC when supplied.

Testing: Read-only review; no builds, tests or project scripts were run.

Overlaps and merge order: The PR states that it stacks on #2516 and #2434 and supersedes #2340; the network was unavailable to verify their current status or merge order.


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

**Recommendation: Approve.** A new controller test ignores the configured compiler and can fail on supported developer setups. The rebased feature and controller transport also still need in-game verification. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change lets mods register custom Quick Select Items, display counts and reserve item-use input. It also carries the stacked Windows sandbox controller transport and changes load-event handling. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_pad_motion_policy.py:12`: The new test hard-codes gcc and ignores CC. (more on the line) **Do:** Honor CC and select an available supported compiler by default, as the other new controller tests do. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The rebased item hooks and controller transport need in-game verification. *When:* The only reported playtest predates the rebase, while the head changes native menu hooks and Windows controller routing; the supplied checks cannot show that selection, switching back and controller input work in the running game. **Do:** Run the stated item transitions on the rebased head on Windows and Linux, and exercise the Windows sandbox controller path, including motion and rumble. - **L3**: The per-frame hook and controller transport costs have not been compared against the base. *When:* The change adds callbacks and synchronized registry access on game paths and moves sandbox controller polling across a pipe; the single reported 60.0 fps value cannot show their frame-time or input-latency cost. **Do:** Compare matched, interleaved base and head runs in representative play, including frame times and controller responsiveness. `@fix` can do L1. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `game/crates/oot/src/items.rs:569`: Can two distinct save-load requests reach save.load in consecutive polls, and if so, how can that sequence be reproduced? **Checks:** Still running: `PR description / Description follows the template (pull_request_target)`, `Guide screenshots / Guide images and local UI source review (pull_request)`, `Third-party parts / As their notes say (pull_request)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the rebased head. The earlier Windows playtest confirmed selection, counts and menu reopening on 0243535e9; the reported 60.0 fps has no matched base comparison. **Other systems:** The item hooks affect native inventory highlighting, HUD updates, save-load notifications and input reservation. The stacked transport affects Windows sandbox controllers, motion and rumble; Linux also receives the motion-policy and item-input changes. The supplied runs do not verify these paths on the rebased head. **Switches:** HOS_SWITCH2 remains on by default on unconfined Windows; its USB driver is unavailable in the Windows sandbox. HOS_SWITCH2_RUMBLE_TEST remains off and is likewise limited to unconfined Windows. The switch table and documentation describe these limits. **Reviewed:** ecc99795257f against 93c7a8e8ae95: Read the repository rules, PR template, standards, commit log, item equipment implementation, controller broker implementation and the focused diffs for content, item services, input and tests. Skimmed the remaining changed files and generated site declarations; not every changed code file was read in full. Tooling's sibling AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review). **Checked and fine:** - The renderer interface change shown in vk_api.h changes a comment, not the interface layout. - The independent-slot feature checks its required site placements before staging content. - The new controller tests other than the motion-policy test use CC when supplied. **Testing:** Read-only review; no builds, tests or project scripts were run. **Overlaps and merge order:** The PR states that it stacks on #2516 and #2434 and supersedes #2340; the network was unavailable to verify their current status or merge order. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
@ -0,0 +9,4 @@
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--cc", default="gcc")
Member

L1 (should fix): The new test hard-codes gcc and ignores CC.

When: A supported Windows or Linux development environment with clang configured through CC but no gcc executable fails this check before exercising the motion policy.

Do: Honor CC and select an available supported compiler by default, as the other new controller tests do.

**L1** (should fix): The new test hard-codes gcc and ignores CC. *When:* A supported Windows or Linux development environment with clang configured through CC but no gcc executable fails this check before exercising the motion policy. **Do:** Honor CC and select an available supported compiler by default, as the other new controller tests do.
Owner
@fix
fix(tests): honor CC in motion policy test
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 13s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 17s
Third-party parts / As their notes say (pull_request) Successful in 19s
34dfb5c177
As the review on #2528 asked.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The rebased item hooks and controller transport still need in-game verification and a matched cost comparison. The compiler-selection fix preserves the test’s purpose. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 34dfb5c177. It was already up to date with mod-api. I edited its description to match the change.

Changed

  • Compiler selection in tests/test_pad_motion_policy.py:14: Honored CC and matched the other controller tests’ clang/cc fallback. Tests were not run, as requested.

Nothing was built or run: the checks run again on the new head.

Mods can add usable items to Quick Select Items and control their displayed counts. The change also carries controller transport work; its runtime cost and behavior on the rebased head remain unverified.

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

  • L2: The rebased item hooks and controller transport need in-game verification. When: The only reported playtest predates the rebase, while the head changes native menu hooks and Windows controller routing; the supplied checks cannot show that selection, switching back and controller input work in the running game. Do: Run the stated item transitions on the rebased head on Windows and Linux, and exercise the Windows sandbox controller path, including motion and rumble.
  • L3: The per-frame hook and controller transport costs have not been compared against the base. When: The change adds callbacks and synchronized registry access on game paths and moves sandbox controller polling across a pipe; the single reported 60.0 fps value cannot show their frame-time or input-latency cost. Do: Compare matched, interleaved base and head runs in representative play, including frame times and controller responsiveness.

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: Unproven on the rebased head. An earlier Windows playtest confirmed custom selection, counts and menu behavior; its 60.0 fps log is not a matched comparison.

Other systems: The item hooks affect menu and HUD behavior; controller transport affects Windows input, motion and rumble. Windows and Linux in-game verification remains outstanding.

Switches: HOS_SWITCH2 remains on by default and HOS_SWITCH2_RUMBLE_TEST remains off; their documented scope changes to unconfined Windows. The documentation also states that HOS_HD_RUMBLE and HOS_RUMBLE_BACKEND cannot enable HD rumble in confined Windows play. The defaults have not been validated on the rebased head.

Reviewed: 34dfb5c177 against 93c7a8e8ae: Read tests/test_pad_motion_policy.py, AGENTS.md, CONTRIBUTING.md and the pull request template in full; read the motion polling code and compiler-selection references. Skimmed the overall diff statistics and excerpts of equipment.rs and pad_broker_windows.c; the remaining changed files were not read in full. docs/review-checklist.md and the adjacent Tooling AGENTS.md were unavailable.; nothing run (a code review).

Checked and fine:

  • The motion-policy test honors --cc and CC, then falls back to clang or cc; its policy fixture and assertions remain intact.

Testing: No tests were run during this read-only review. The reported earlier Windows hand test and pre-fix automated results are recorded in the description; CI has not run on this head.

Overlaps and merge order: Stacks on controller PR #2516 and Rust Mod API PR #2434; the dependencies need to merge first.


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

**Recommendation: Approve.** The code is ready: only testing is left. The rebased item hooks and controller transport still need in-game verification and a matched cost comparison. The compiler-selection fix preserves the test’s purpose. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 34dfb5c17707. It was already up to date with `mod-api`. I edited its description to match the change. **Changed** - **Compiler selection in tests/test_pad_motion_policy.py:14**: Honored CC and matched the other controller tests’ clang/cc fallback. Tests were not run, as requested. Nothing was built or run: the checks run again on the new head. Mods can add usable items to Quick Select Items and control their displayed counts. The change also carries controller transport work; its runtime cost and behavior on the rebased head remain unverified. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The rebased item hooks and controller transport need in-game verification. *When:* The only reported playtest predates the rebase, while the head changes native menu hooks and Windows controller routing; the supplied checks cannot show that selection, switching back and controller input work in the running game. **Do:** Run the stated item transitions on the rebased head on Windows and Linux, and exercise the Windows sandbox controller path, including motion and rumble. - **L3**: The per-frame hook and controller transport costs have not been compared against the base. *When:* The change adds callbacks and synchronized registry access on game paths and moves sandbox controller polling across a pipe; the single reported 60.0 fps value cannot show their frame-time or input-latency cost. **Do:** Compare matched, interleaved base and head runs in representative play, including frame times and controller responsiveness. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on the rebased head. An earlier Windows playtest confirmed custom selection, counts and menu behavior; its 60.0 fps log is not a matched comparison. **Other systems:** The item hooks affect menu and HUD behavior; controller transport affects Windows input, motion and rumble. Windows and Linux in-game verification remains outstanding. **Switches:** HOS_SWITCH2 remains on by default and HOS_SWITCH2_RUMBLE_TEST remains off; their documented scope changes to unconfined Windows. The documentation also states that HOS_HD_RUMBLE and HOS_RUMBLE_BACKEND cannot enable HD rumble in confined Windows play. The defaults have not been validated on the rebased head. **Reviewed:** 34dfb5c17707 against 93c7a8e8ae95: Read tests/test_pad_motion_policy.py, AGENTS.md, CONTRIBUTING.md and the pull request template in full; read the motion polling code and compiler-selection references. Skimmed the overall diff statistics and excerpts of equipment.rs and pad_broker_windows.c; the remaining changed files were not read in full. docs/review-checklist.md and the adjacent Tooling AGENTS.md were unavailable.; nothing run (a code review). **Checked and fine:** - The motion-policy test honors --cc and CC, then falls back to clang or cc; its policy fixture and assertions remain intact. **Testing:** No tests were run during this read-only review. The reported earlier Windows hand test and pre-fix automated results are recorded in the description; CI has not run on this head. **Overlaps and merge order:** Stacks on controller PR #2516 and Rust Mod API PR #2434; the dependencies need to merge first. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 13s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 17s
Third-party parts / As their notes say (pull_request) Successful in 19s
This pull request has changes conflicting with the target branch.
  • docs/dev/reference/sandbox.md
  • docs/modding/reference.md
  • docs/modding/scripting.md
  • game/crates/modtool/src/testing_game/content.rs
  • game/crates/modtool/src/testing_game/input.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'feat/rust-usable-items:snaildev99-feat/rust-usable-items'
git switch 'snaildev99-feat/rust-usable-items'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'mod-api'
git merge --no-ff 'snaildev99-feat/rust-usable-items'
git switch 'snaildev99-feat/rust-usable-items'
git rebase 'mod-api'
git switch 'mod-api'
git merge --ff-only 'snaildev99-feat/rust-usable-items'
git switch 'snaildev99-feat/rust-usable-items'
git rebase 'mod-api'
git switch 'mod-api'
git merge --no-ff 'snaildev99-feat/rust-usable-items'
git switch 'mod-api'
git merge --squash 'snaildev99-feat/rust-usable-items'
git switch 'mod-api'
git merge --ff-only 'snaildev99-feat/rust-usable-items'
git switch 'mod-api'
git merge 'snaildev99-feat/rust-usable-items'
git push origin 'mod-api'
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!2528
No description provided.