WIP: feat(modapi): select custom usable items from the native L menu #2340
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2340
Loading…
Reference in a new issue
No description provided.
Delete branch "snaildev99/Longshot:feat/usable-items-l-menu"
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
Mods can put a distinct usable item in the native L shortcut alongside the game's own equipment. After A confirms the row, the equipped HUD shows its icon and optional count. Reopening L focuses that item. Selecting a native item restores its action.
The content phase supplies an owned pouch item, a selector row and icon assets. The script calls
items.registerUsable, checksitems.isSelectedand can set the displayed ammo or charge withitems.setUsableCount. A display count of zero is valid. A value of -1 hides the number. While equipped, a custom item can handle ZL and ZR without activating the previously equipped native item. To reproduce with a fresh mod, follow A usable item in the L menu. It covers creating Signal Stone, providing its selector and inventory data and icons, granting it, and checking A, B, the HUD count and the handoff to the native Hookshot. A plain game build has no Signal Stone until you create and enable the mod.This targets the proposal's
mod-apiintegration branch. Held models, hand poses, custom use animations and save-slot persistence are separate work. The three local test items exercise the API and are not shipped with the change.Testing
Tested: Windows, GeForce RTX 3090, NVIDIA 610.88, adult Link on Death Mountain Trail. The development build ran the native L shortcut sorted by type. Confirmed three items, fired a tool with ammo, toggled a reusable beacon and charged and released a wand. Reopened L and pressed A without moving the stick for each custom item and the real Hookshot. Checked rendered HUD icons and equipped highlights, cancelled a preview and switched back to the Hookshot. The automated in-game scenario passed and a second interactive controller playtest confirmed smooth switching. The standalone mod also loaded on a copy of an existing save.
The submitted branch is based on the current API, uses the current hook schema, and releases its registrations when input permission is revoked. The native adapter regression, the mod-tools fake-game regression, the standalone pad harness, schema generation and 41 hook checks pass on the submitted branch. A completed full host-suite pass has yet to be recorded. Its pad placement check also fails on the unmodified target branch because it looks for a removed stick-direction call.
The latest interactive Slot 2 playtest passed on the controller-enabled development build. On the published API code at
40f54c909, the separate automated in-game run stopped at the fixture's independent item ownership check before it reached the selector assertions. The documentation update compiles and links both Signal Stone modules withlongshot mod check. The new example has not had a separate in-game run.Still to test:
Measurements
Verdict: The functional test went from a stale donor icon and cursor to four distinct, correct selections on the development build. The numbers below are functional observations. Frame-time parity has not yet been measured.
8da9fe53eRisks
Mods need distinct inventory identities and selector entries. Reusing a donor's native assignable identity can also change how the game resolves that donor. Custom selection is session-local. The host reserves both triggers while a custom item is selected, and waits for release at handoff. Fixed HUD overrides and native-only menus should keep their normal behavior. Disabling the mod releases its registrations.
Checklist
Ready for review
main; the title is a Conventional Commit. Targets the currentmod-apiintegration branch for this API.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.Ready to merge
main, measured again or a comment says why the numbers still hold.Tested in game: Windows, RTX 3090, NVIDIA 610.88, adult Death Mountain Trail. Confirmed Uzi, Beacon and Pulse Wand, checked their distinct HUD icons and counts, reopened and reconfirmed all three without stick input, then equipped and used the native Hookshot. Automated development build passed 1/1 and manual switching was confirmed. The current mod-api integration rerun is listed separately in Testing.
The submitted branch passes the native adapter, fake-game and direct pad tests, the schema check and 41 hook checks. The older controller placement assertion also fails on the unmodified target. Integration play and the full suite are in progress.
Recorded the successful manual controller playtest and the separate fixture result. Added a fresh-mod walkthrough for reviewers. The gameplay test mod stays local.
StebanPi referenced this pull request2026-11-24 17:17:07 +00:00
9ad27a4afad29b5b629cClosing in favor of #2528, which carries Quick Select Items on the Rust Mod API and stacks on controller PR #2516. Item testing and review continue there.
Pull request closed