Game: Debug Inventory: locked items can't be unlocked (greyed out, Enter and A do nothing) #2980

Open
opened 2026-12-01 23:30:21 +00:00 by cuecuemoar · 5 comments
Contributor

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

  1. Load a save that is missing some items.
  2. Insert menu > Debug: turn Debug tools On.
  3. Open Inventory and move to any locked item, for example Lens of Truth.
  4. Press Enter or A. The card stays greyed out and Locked, and the log gets no cheats: inventory ... line.

What the log shows

The same unlock sent another way reaches the game's edit:

  • Through HOS_INPUT_LIVE's !cheat 10880 (3000 + Lens of Truth, row 30, × 256 + 200: unlock), the log shows cheats: inventory Item_GlassTruth +1 (had 0, now 0, event status 2).
  • With the Lens row's pouch name changed to Armor_GlassTruth in game/oot_cheat_items.h (a local test build only), the same !cheat gave the Lens: it is in the pause screen and stays after a save. The log still said now 0, event status 2.
  • Once the Lens is held, the inventory probe counts it under every spelling (Armor_GlassTruth=1 Armor_Child_GlassTruth=1 Armor_Adult_GlassTruth=1). A Relock of it logged Item_GlassTruth -1 (had 1, now 1, event status 2), and the Lens stayed.

So there may be two parts:

  • The menu doesn't send the unlock for a locked card at all. This is the main bug: it affects every locked item.
  • The game-side add or remove may not take for some items: event status 2 with the count unchanged. It isn't settled whether Item_GlassTruth itself works, because I didn't check the pause screen after that attempt.

System

  • Build: main 468bb8d2e (a dev pack).
  • Windows 10, RTX 4090.
  • Keyboard and mouse, and an Xbox-style controller.
  • #2335: quantity edits not changing Magic Beans or bottles (a different symptom).
  • #2779: ammunition needing its bag.
### 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 1. Load a save that is missing some items. 2. Insert menu > Debug: turn **Debug tools** On. 3. Open **Inventory** and move to any locked item, for example **Lens of Truth**. 4. Press Enter or A. The card stays greyed out and Locked, and the log gets no `cheats: inventory ...` line. ### What the log shows The same unlock sent another way reaches the game's edit: - Through `HOS_INPUT_LIVE`'s `!cheat 10880` (3000 + Lens of Truth, row 30, × 256 + 200: unlock), the log shows `cheats: inventory Item_GlassTruth +1 (had 0, now 0, event status 2)`. - With the Lens row's pouch name changed to `Armor_GlassTruth` in `game/oot_cheat_items.h` (a local test build only), the same `!cheat` gave the Lens: it is in the pause screen and stays after a save. The log still said `now 0, event status 2`. - Once the Lens is held, the inventory probe counts it under every spelling (`Armor_GlassTruth=1 Armor_Child_GlassTruth=1 Armor_Adult_GlassTruth=1`). A Relock of it logged `Item_GlassTruth -1 (had 1, now 1, event status 2)`, and the Lens stayed. So there may be two parts: - The menu doesn't send the unlock for a locked card at all. This is the main bug: it affects every locked item. - The game-side add or remove may not take for some items: `event status 2` with the count unchanged. It isn't settled whether `Item_GlassTruth` itself works, because I didn't check the pause screen after that attempt. ### System - Build: main 468bb8d2e (a dev pack). - Windows 10, RTX 4090. - Keyboard and mouse, and an Xbox-style controller. ### Related - #2335: quantity edits not changing Magic Beans or bottles (a different symptom). - #2779: ammunition needing its bag.
Author
Contributor

Correction to System: the controller's model wasn't recorded; it was a controller plus keyboard and mouse, both unresponsive on locked cards.

Correction to System: the controller's model wasn't recorded; it was a controller plus keyboard and mouse, both unresponsive on locked cards.
Member

Possibly related, for context:

  • PR #2779 fix(debug): the Debug tab's ammunition amounts give the bag they need, and a removal takes what is held — Related debug inventory unlock behavior; fixes bag-dependent additions, not locked-card activation.
  • PR #429 fix(menu): show learned songs correctly in the inventory editor — Earlier inventory editor state/toggle bug for learned songs, distinct from all locked cards receiving no activation.
Possibly related, for context: - PR #2779 fix(debug): the Debug tab's ammunition amounts give the bag they need, and a removal takes what is held — Related debug inventory unlock behavior; fixes bag-dependent additions, not locked-card activation. - PR #429 fix(menu): show learned songs correctly in the inventory editor — Earlier inventory editor state/toggle bug for learned songs, distinct from all locked cards receiving no activation.
Author
Contributor

Update: the person testing confirms the controller is Xbox-style, so the original System line was right.

Update: the person testing confirms the controller is Xbox-style, so the original System line was right.
Contributor

Tested this on Windows 11 with a fresh market-entrance save (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 2 on the same log line is expected because the pouch change is queued asynchronously and updates on the next oot_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?

Tested this on Windows 11 with a fresh `market-entrance` save (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 2` on the same log line is expected because the pouch change is queued asynchronously and updates on the next `oot_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?
Author
Contributor

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_GlassTruth is the right name. With the fix, the Lens shows in the pause screen after an unlock. The now 0, event status 2 on 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. On main, only one edit arrives.

History: #2990 was the same fix for the old C++ tools, and it was closed when mod-api replaced them. The Fairy Bow / Slingshot coming without its bag (#2416) was split out into #3033, which has merged.

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_GlassTruth` is the right name. With the fix, the Lens shows in the pause screen after an unlock. The `now 0, event status 2` on 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. On `main`, only one edit arrives. History: #2990 was the same fix for the old C++ tools, and it was closed when `mod-api` replaced them. The Fairy Bow / Slingshot coming without its bag (#2416) was split out into #3033, which has merged.
Sign in to join this conversation.
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#2980
No description provided.