Game: Debug Inventory: locked items can't be unlocked (greyed out, Enter and A do nothing) #2980
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2980
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What happened
In Debug > Inventory, locked items can't be unlocked. Every locked card is greyed out, and Enter on the keyboard and A on the controller do nothing on it. This happens for every locked item tried, not just one.
Found while testing #2721, where I needed the Lens of Truth on a save that didn't have it.
Steps to reproduce
cheats: inventory ...line.What the log shows
The same unlock sent another way reaches the game's edit:
HOS_INPUT_LIVE's!cheat 10880(3000 + Lens of Truth, row 30, × 256 + 200: unlock), the log showscheats: inventory Item_GlassTruth +1 (had 0, now 0, event status 2).Armor_GlassTruthingame/oot_cheat_items.h(a local test build only), the same!cheatgave the Lens: it is in the pause screen and stays after a save. The log still saidnow 0, event status 2.Armor_GlassTruth=1 Armor_Child_GlassTruth=1 Armor_Adult_GlassTruth=1). A Relock of it loggedItem_GlassTruth -1 (had 1, now 1, event status 2), and the Lens stayed.So there may be two parts:
event status 2with the count unchanged. It isn't settled whetherItem_GlassTruthitself works, because I didn't check the pause screen after that attempt.System
468bb8d2e(a dev pack).Related
Correction to System: the controller's model wasn't recorded; it was a controller plus keyboard and mouse, both unresponsive on locked cards.
Possibly related, for context:
Update: the person testing confirms the controller is Xbox-style, so the original System line was right.
Tested this on Windows 11 with a fresh
market-entrancesave (missing both Kokiri Sword and Lens of Truth) and could not reproduce the unresponsive locked cards using Enter in Debug > Inventory — locked items unlocked and relocked immediately:cheats: inventory Weapon_Sword_Kokiri +1 (had 0, now 0, event status 2)->-1 (had 1, now 1, event status 2)cheats: inventory Item_GlassTruth +1 (had 0, now 0, event status 2)->-1 (had 1, now 1, event status 2)(
now 0, event status 2on the same log line is expected because the pouch change is queued asynchronously and updates on the nextoot_inventory_refresh.)Was Keyboard set to Auto while the Xbox-style controller was connected, or was a specific controller layout/preset active when both Enter and A failed?
This should be resolved by #3030 (ready for review, mergeable; its description has
Fixes #2980, so this closes when it merges).What the bug turned out to be. The menu does send the unlock, and the game does take it, when the game is running, which is why @cfw34683 couldn't reproduce it (thanks for testing). The cards stay Locked when the edit is made with the game's own pause screen open under the Insert menu (found by a hand repro on 2026-12-02). The Debug tools' actions are taken during Link's update, and Link doesn't update while the pause screen is open. Each edit went into a single action slot, so every new edit replaced the last, and only one of them arrived once the pause screen closed. An Amount of more than one step was also cut short: Gold Skulltula Tokens set from 0 to 100 gave 37.
To answer the question: the input settings aren't the cause. Keyboard and the pad fail the same way, because the edit is sent but not taken until the pause screen closes.
The second part of this report is settled too:
Item_GlassTruthis the right name. With the fix, the Lens shows in the pause screen after an unlock. Thenow 0, event status 2on the same line is the pouch changing later, as cfw34683 said.What #3030 does (in the Rust Debug tools now on
main): every edit made while paused is kept and applied in the order made, one per update, each from the game's real count. The Amount row shows the count asked while it waits, and its help says that edits wait while the game's menu is open. Edits still waiting are dropped when another map loads (another save), except for the tools' own Teleport or Switch age. Tested in game on Windows 10 / RTX 4090: seven edits made while paused all arrived in order, and Gold 0 to 100 went up by exactly +1 per press. Onmain, only one edit arrives.History: #2990 was the same fix for the old C++ tools, and it was closed when
mod-apireplaced them. The Fairy Bow / Slingshot coming without its bag (#2416) was split out into #3033, which has merged.