fix(debug): the Debug tab's ammunition amounts give the bag they need, and a removal takes what is held #2779

Merged
HumanBean merged 3 commits from llun/Longshot:fix/debug-item-quantities into main 2026-11-29 06:22:42 +00:00
Member

Summary

The Debug tab's ammunition amounts did nothing on a save without the bag that holds them. The game keeps only as many Deku Sticks, Deku Nuts, Bombs, Bombchus, Deku Seeds or Arrows as the largest bag held holds, and it clamps an add past that. With no Deku Stick Bag, Deku Nut Bag, Bomb Bag, Bullet Bag or Quiver, every add was clamped to nothing. That covered Right on the Inventory page's amounts and the Debug tab's Change quantity row. The Inventory page had no row for the Deku Stick or Deku Nut Bags, so those two could never get any. A removal of more than was held was refused whole by the game. For example, the Change quantity row's -10 on 3 Deku Nuts did nothing, and -3 on 2 Bombchus left 2.

To see it on main: load a save without bags (the repository's market-entrance is one), turn Debug tools On, open Debug > Inventory > Items > Bombs > Edit amount and press Right. The amount stays 0. The log line is cheats: inventory Item_Bomb +1 (had 0, ...), the next one still says had 0, and the pause screen has no bombs.

This changes two things:

  • An add of ammunition with none of its bags gives the smallest bag first, then the add. The bags come as the game gives them: a Bomb Bag with 20 bombs, a Bullet Bag with 30 seeds, a Quiver with 30 arrows. The smallest Deku Stick or Nut Bag comes empty and takes the one added. Bombchus need a Bomb Bag too.
  • A removal is cut to what Link holds, so Left and the Change quantity row's minus always take what is there.

The Inventory page also gets the Deku Stick and Nut Bags' rows (Upgrades, three sizes each, the game's Item_StickBag_* and Item_NutBag_*), so the bigger ones can be given and taken away. PR #1411 (mooki's Progress editor) found the same bag names. Its other half, presses summed while the game hasn't yet taken the last one, stays with it.

Read first: oot_pouch_add in game/oot_tools.c (the bags table above it), then tests/test_oot_ammo_bags.py.

Fixes #871. See #2335: its Magic Beans add fine here (0 to 1 to 2 to 7 in the game), and its bottle is not this (below).

Not fixed: bottles ("I can't reduce my number of empty bottles"). Adding works: Item_Bottle or Weapon_Bottle +1 put an empty bottle in the pause screen's bottle row. But the game's count by name (QueryGetPouchContentNumByActorName) reads 0 for every bottle name tried (Item_Bottle, Weapon_Bottle, Item_Bottle_Pouch, Item_Bottle_Empty, Item_Bottle_Fairy, and others) with four bottles held. So the editor shows Empty Bottle at 0, and the game refuses the removal of one it doesn't count (status 3). Bottles live in slots with contents and need the game's own bottle calls, which are not found yet. That is a follow-up.

Testing

Tested: Windows 11 (build 26300), RTX 5080 (NVIDIA 621.40), this branch's game against the shared base 22d0d200 (dev.py pack / rt), the repository's market-entrance save (child Link, no bags), Debug tools on (HOS_OOT_CHEATS=1). The edits were sent as the menu sends them (the live input file's !cheat <action>, the same action numbers), read back from the game's own counts, the HUD and the pause screen, through the job queue.

  • Before, main (22d0d200 base, the same inventory code as main): +1, +1, +5, -2 on each counted item: Deku Nuts, Bombs, Bombchus, Deku Seeds, Arrows and Empty Bottle stayed at 0 (event status 2: the game took it and clamped it); Magic Beans and Gold Skulltula Tokens went 0, 1, 2, 7. Bomb Bag, then Bombs +63: 20; Big Bomb Bag: 30; Biggest: 40, and Bombchus stayed 0 until a Bomb Bag was held, then followed it. The same for Bullet Bags (30, 40, 50) and Quivers (30, 40, 50).
  • After, this branch, child Link with no bags: one +1 on each: the log says Item_DekuStick needs a bag: gave Item_StickBag_Small first, and so on for each. The pause screen then showed Deku Stick 1, Deku Nut 1/20, Bombs 20, Bombchus 1, Seeds 30 and Arrows 30 (the last two in the game's counts: no Slingshot or Bow to show them). Bombs -3: 17, +1: 18. The Change quantity row's Deku Nuts -10 on 1: 0 (on main it was refused).
  • A save and a load: the pause screen's System > Save (the run's own copy of the save, never a player's), then the game started again (the bridge's relaunch) and the save loaded: Deku Stick 1, Deku Nut 0, Bombs 17, Bombchus 1, Seeds 30, Arrows 30 and every small bag held, in the game's counts and on the pause screen.
  • Adult Link (the Debug tab's age switch, Market): Big Quiver, Big Deku Stick Bag and Big Deku Nut Bag from their rows, then +63 on each: Deku Sticks 20, Deku Nuts 30 and Arrows 40, each clamped at the bag's size; Arrows -5: 35. The pause screen showed Deku Stick 20 and Deku Nut 30, full.
  • Through the Insert menu itself (head 9963d60b's code: the same game/ and gpu/ as the run above; headless, the menu ticked and drawn into the shots with RX_VK_SHOT_MENU=1, its keys from RX_VK_MENU_SCRIPT, a fresh market-entrance save): Debug > Inventory > Items > Bombs > Edit amount. Right once with no bag: the Bomb Bag, 20 bombs. Left three times 50 ms apart: 19, 18, 17, each its own cheats: inventory Item_Bomb -1 line, none dropped. Right: 18. The card read "Quantity 18" and the HUD 18. Then Upgrades > Biggest Deku Stick Bag > Unlock and Biggest Deku Nut Bag > Unlock: Deku Sticks 30 and Deku Nuts 40 on their cards (the bags come filled). Right on each in Edit amount left 30 and 40, their sizes. Then both bags Relock (Item_StickBag_Large -1, Item_NutBag_Large -1): Deku Sticks and Nuts 0 (with no bag the game holds none).
  • Checks: tests/test_oot_ammo_bags.py (new) fails on main ("no Inventory row for Item_StickBag_Small"; with that part off, "Item_Bomb +1 with no bag: still 0") and passes here. Undoing the fix's two lines one at a time fails it ("Item_Bomb +1 with no bag: still 0", "Item_Bomb -3 with 2 held: still 2"). test_oot_song_inventory (updated: it cuts oot_inventory_edit, which now adds through oot_pouch_add), test_cheat_items and test_oot_first_night pass. tests/run_all.py --changed (llvm-mingw clang): 20 passed, 4 failed, 12 skipped (no gcc here). Of the 4, test_oot_first_night failed only on a local diagnostic that is not in this branch (it passes on the head), and test_bug_report, test_hle_guest_ranges and test_parity_gates fail on main @ 2a1460546 the same way on this PC.
  • Compiled: game/oot_tools.c in the game build on Windows (llvm-mingw, the pack), and the renderer (vk_menu.cpp reads oot_cheat_items.h) in the same pack. Linux (WSL Ubuntu 24.04): game/oot_tools.c with -fsyntax-only -Wall -Wextra gives the same diagnostics here as on main @ 2a1460546 (gcc 13.3: 3 warnings, no error, on both; clang: the same 2 errors and 1 warning on both, from a header this one-file check leaves out), so nothing new from this change.
  • Guide picture: scripts/check_guide_screenshots.py --review-sources flagged settings-graphics.png, whose reviewed UI sources include game/oot_cheat_items.h (the Insert menu's code includes it); it passes on main. The picture shows the Graphics tab, not the Inventory page's rows this adds, so it is kept and the review is recorded in docs/user/images/guide/manifest.json (the header's new hash, at 9963d60b, a note why), as #2771 recorded #2730's. The checker and tests/test_guide_screenshots.py pass.

Still to test:

  • Linux, any GPU: Debug tools On, Debug > Inventory > Items > Deku Nuts > Edit amount, Right once on a save without a Deku Nut Bag, expecting Deku Nut 1/20 on the pause screen (@Beanstalk Linux: the Debug tab's Inventory, Deku Nuts +1 on a save with no nut bag, expecting 1/20 on the pause screen).

Measurements

Verdict: it fixes the amounts: on a save with no bags, Right once on each ammunition now gives some (none on main), and a removal of more than is held takes what is there (refused on main). No speed to measure: the change runs only when a Debug tab inventory edit is taken (one to four extra pouch reads then), on no frame-time path.

test_oot_ammo_bags was run again on main @ 3ab4db6e9 and this head 705b91b08 (the row below). The game rows were taken on the shared base 22d0d200 (before) and this branch's pack over it (after); they still hold: nothing on main since then touches the inventory code (game/oot_tools.c, game/oot_cheat_items.h, gpu/vk/vk_menu.cpp, host/nn_hid.c are the same), and the Insert menu run above was on this head's code.

Before: main @ 3ab4db6e9 After: this PR @ 705b91b08
test_oot_ammo_bags FAIL: no Inventory row for Item_StickBag_Small PASS
Pause screen after Right once on each ammunition, no bags (child, Market) nothing (0 everywhere) Deku Stick 1, Deku Nut 1/20, Bombs 20, Bombchus 1 (Seeds 30, Arrows 30 in the counts)
Change quantity, Deku Nuts -10 on 1 refused, 1 0

Pictures (in the comment below): the pause screen on main after Right once on each ammunition with no bags (Deku Stick 0, Bombs 0, Bombchus 0, Deku Nut 0), and on this branch after the same, then Bombs -3 and Deku Nuts -10 (Deku Stick 1, Bombs 17, Bombchus 1, Deku Nut 0).

Risks

  • An add now gives a bag when Link has none: a player using the Debug tools to add ammunition gets the smallest bag with it, as the game would have given it, and the bag stays in the save. Left on the bag's own row takes it away again.
  • Six new rows on the Inventory page (Upgrades): the items after them move by six in the menu's list and in the game side's OOT_CHEAT_ITEM_BASE + i reports; both are built from the same header, so they move together. Nothing is saved by index: longshot_options.ini holds no inventory row.
  • Taking a bag away empties its ammunition (the game's own rule: Relock on the only stick or nut bag left Deku Sticks and Nuts at 0).
  • Bombchus' bag is taken to be the Bomb Bag (as seen: Bombchus stayed 0 until one was held).
  • Turning it off: a revert. Debug tools Off hides all of it.

Checklist

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.

🤖 Generated with Claude Code

## Summary The Debug tab's ammunition amounts did nothing on a save without the bag that holds them. The game keeps only as many Deku Sticks, Deku Nuts, Bombs, Bombchus, Deku Seeds or Arrows as the largest bag held holds, and it clamps an add past that. With no Deku Stick Bag, Deku Nut Bag, Bomb Bag, Bullet Bag or Quiver, every add was clamped to nothing. That covered Right on the Inventory page's amounts and the Debug tab's Change quantity row. The Inventory page had no row for the Deku Stick or Deku Nut Bags, so those two could never get any. A removal of more than was held was refused whole by the game. For example, the Change quantity row's -10 on 3 Deku Nuts did nothing, and -3 on 2 Bombchus left 2. To see it on `main`: load a save without bags (the repository's `market-entrance` is one), turn Debug tools On, open Debug > Inventory > Items > Bombs > Edit amount and press Right. The amount stays 0. The log line is `cheats: inventory Item_Bomb +1 (had 0, ...)`, the next one still says `had 0`, and the pause screen has no bombs. This changes two things: - **An add of ammunition with none of its bags gives the smallest bag first, then the add.** The bags come as the game gives them: a Bomb Bag with 20 bombs, a Bullet Bag with 30 seeds, a Quiver with 30 arrows. The smallest Deku Stick or Nut Bag comes empty and takes the one added. Bombchus need a Bomb Bag too. - **A removal is cut to what Link holds**, so Left and the Change quantity row's minus always take what is there. The Inventory page also gets the Deku Stick and Nut Bags' rows (Upgrades, three sizes each, the game's `Item_StickBag_*` and `Item_NutBag_*`), so the bigger ones can be given and taken away. PR #1411 (mooki's Progress editor) found the same bag names. Its other half, presses summed while the game hasn't yet taken the last one, stays with it. Read first: `oot_pouch_add` in `game/oot_tools.c` (the bags table above it), then `tests/test_oot_ammo_bags.py`. Fixes #871. See #2335: its Magic Beans add fine here (0 to 1 to 2 to 7 in the game), and its bottle is not this (below). **Not fixed: bottles** ("I can't reduce my number of empty bottles"). Adding works: `Item_Bottle` or `Weapon_Bottle` +1 put an empty bottle in the pause screen's bottle row. But the game's count by name (`QueryGetPouchContentNumByActorName`) reads 0 for every bottle name tried (`Item_Bottle`, `Weapon_Bottle`, `Item_Bottle_Pouch`, `Item_Bottle_Empty`, `Item_Bottle_Fairy`, and others) with four bottles held. So the editor shows Empty Bottle at 0, and the game refuses the removal of one it doesn't count (status 3). Bottles live in slots with contents and need the game's own bottle calls, which are not found yet. That is a follow-up. ## Testing **Tested:** Windows 11 (build 26300), RTX 5080 (NVIDIA 621.40), this branch's game against the shared base `22d0d200` (`dev.py pack` / `rt`), the repository's `market-entrance` save (child Link, no bags), Debug tools on (`HOS_OOT_CHEATS=1`). The edits were sent as the menu sends them (the live input file's `!cheat <action>`, the same action numbers), read back from the game's own counts, the HUD and the pause screen, through the job queue. - **Before, main (`22d0d200` base, the same inventory code as `main`):** +1, +1, +5, -2 on each counted item: Deku Nuts, Bombs, Bombchus, Deku Seeds, Arrows and Empty Bottle stayed at 0 (event status 2: the game took it and clamped it); Magic Beans and Gold Skulltula Tokens went 0, 1, 2, 7. Bomb Bag, then Bombs +63: 20; Big Bomb Bag: 30; Biggest: 40, and Bombchus stayed 0 until a Bomb Bag was held, then followed it. The same for Bullet Bags (30, 40, 50) and Quivers (30, 40, 50). - **After, this branch, child Link with no bags:** one +1 on each: the log says `Item_DekuStick needs a bag: gave Item_StickBag_Small first`, and so on for each. The pause screen then showed Deku Stick 1, Deku Nut 1/20, Bombs 20, Bombchus 1, Seeds 30 and Arrows 30 (the last two in the game's counts: no Slingshot or Bow to show them). Bombs -3: 17, +1: 18. The Change quantity row's Deku Nuts -10 on 1: 0 (on `main` it was refused). - **A save and a load:** the pause screen's System > Save (the run's own copy of the save, never a player's), then the game started again (the bridge's `relaunch`) and the save loaded: Deku Stick 1, Deku Nut 0, Bombs 17, Bombchus 1, Seeds 30, Arrows 30 and every small bag held, in the game's counts and on the pause screen. - **Adult Link** (the Debug tab's age switch, Market): Big Quiver, Big Deku Stick Bag and Big Deku Nut Bag from their rows, then +63 on each: Deku Sticks 20, Deku Nuts 30 and Arrows 40, each clamped at the bag's size; Arrows -5: 35. The pause screen showed Deku Stick 20 and Deku Nut 30, full. - **Through the Insert menu itself** (head `9963d60b`'s code: the same `game/` and `gpu/` as the run above; headless, the menu ticked and drawn into the shots with `RX_VK_SHOT_MENU=1`, its keys from `RX_VK_MENU_SCRIPT`, a fresh `market-entrance` save): Debug > Inventory > Items > Bombs > Edit amount. Right once with no bag: the Bomb Bag, 20 bombs. Left three times 50 ms apart: 19, 18, 17, each its own `cheats: inventory Item_Bomb -1` line, none dropped. Right: 18. The card read "Quantity 18" and the HUD 18. Then Upgrades > Biggest Deku Stick Bag > Unlock and Biggest Deku Nut Bag > Unlock: Deku Sticks 30 and Deku Nuts 40 on their cards (the bags come filled). Right on each in Edit amount left 30 and 40, their sizes. Then both bags Relock (`Item_StickBag_Large -1`, `Item_NutBag_Large -1`): Deku Sticks and Nuts 0 (with no bag the game holds none). - **Checks:** `tests/test_oot_ammo_bags.py` (new) fails on `main` ("no Inventory row for Item_StickBag_Small"; with that part off, "Item_Bomb +1 with no bag: still 0") and passes here. Undoing the fix's two lines one at a time fails it ("Item_Bomb +1 with no bag: still 0", "Item_Bomb -3 with 2 held: still 2"). `test_oot_song_inventory` (updated: it cuts `oot_inventory_edit`, which now adds through `oot_pouch_add`), `test_cheat_items` and `test_oot_first_night` pass. `tests/run_all.py --changed` (llvm-mingw clang): 20 passed, 4 failed, 12 skipped (no gcc here). Of the 4, `test_oot_first_night` failed only on a local diagnostic that is not in this branch (it passes on the head), and `test_bug_report`, `test_hle_guest_ranges` and `test_parity_gates` fail on `main` @ `2a1460546` the same way on this PC. - Compiled: `game/oot_tools.c` in the game build on Windows (llvm-mingw, the pack), and the renderer (`vk_menu.cpp` reads `oot_cheat_items.h`) in the same pack. Linux (WSL Ubuntu 24.04): `game/oot_tools.c` with `-fsyntax-only -Wall -Wextra` gives the same diagnostics here as on `main` @ `2a1460546` (gcc 13.3: 3 warnings, no error, on both; clang: the same 2 errors and 1 warning on both, from a header this one-file check leaves out), so nothing new from this change. - **Guide picture:** `scripts/check_guide_screenshots.py --review-sources` flagged `settings-graphics.png`, whose reviewed UI sources include `game/oot_cheat_items.h` (the Insert menu's code includes it); it passes on `main`. The picture shows the Graphics tab, not the Inventory page's rows this adds, so it is kept and the review is recorded in `docs/user/images/guide/manifest.json` (the header's new hash, at `9963d60b`, a note why), as #2771 recorded #2730's. The checker and `tests/test_guide_screenshots.py` pass. **Still to test:** - Linux, any GPU: Debug tools On, Debug > Inventory > Items > Deku Nuts > Edit amount, Right once on a save without a Deku Nut Bag, expecting Deku Nut 1/20 on the pause screen (@Beanstalk Linux: the Debug tab's Inventory, Deku Nuts +1 on a save with no nut bag, expecting 1/20 on the pause screen). ## Measurements **Verdict:** it fixes the amounts: on a save with no bags, Right once on each ammunition now gives some (none on `main`), and a removal of more than is held takes what is there (refused on `main`). No speed to measure: the change runs only when a Debug tab inventory edit is taken (one to four extra pouch reads then), on no frame-time path. `test_oot_ammo_bags` was run again on `main` @ `3ab4db6e9` and this head `705b91b08` (the row below). The game rows were taken on the shared base `22d0d200` (before) and this branch's pack over it (after); they still hold: nothing on `main` since then touches the inventory code (`game/oot_tools.c`, `game/oot_cheat_items.h`, `gpu/vk/vk_menu.cpp`, `host/nn_hid.c` are the same), and the Insert menu run above was on this head's code. | | Before: main @ 3ab4db6e9 | After: this PR @ 705b91b08 | |---|---|---| | `test_oot_ammo_bags` | FAIL: no Inventory row for Item_StickBag_Small | PASS | | Pause screen after Right once on each ammunition, no bags (child, Market) | nothing (0 everywhere) | Deku Stick 1, Deku Nut 1/20, Bombs 20, Bombchus 1 (Seeds 30, Arrows 30 in the counts) | | Change quantity, Deku Nuts -10 on 1 | refused, 1 | 0 | Pictures (in the comment below): the pause screen on `main` after Right once on each ammunition with no bags (Deku Stick 0, Bombs 0, Bombchus 0, Deku Nut 0), and on this branch after the same, then Bombs -3 and Deku Nuts -10 (Deku Stick 1, Bombs 17, Bombchus 1, Deku Nut 0). ## Risks - **An add now gives a bag** when Link has none: a player using the Debug tools to add ammunition gets the smallest bag with it, as the game would have given it, and the bag stays in the save. Left on the bag's own row takes it away again. - **Six new rows on the Inventory page** (Upgrades): the items after them move by six in the menu's list and in the game side's `OOT_CHEAT_ITEM_BASE + i` reports; both are built from the same header, so they move together. Nothing is saved by index: `longshot_options.ini` holds no inventory row. - **Taking a bag away empties its ammunition** (the game's own rule: Relock on the only stick or nut bag left Deku Sticks and Nuts at 0). - Bombchus' bag is taken to be the Bomb Bag (as seen: Bombchus stayed 0 until one was held). - Turning it off: a revert. Debug tools Off hides all of it. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] 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. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On a save with no Bomb Bag, Bullet Bag, Quiver, Deku Stick Bag or Deku Nut Bag, Right on Bombs, Bombchus, Deku
Seeds, Arrows, Deku Sticks or Deku Nuts (the Inventory page's amounts, and the Debug tab's Change quantity row) left
them at 0: the game keeps as many as the largest bag held holds and clamps an add past it (#871, #2335). And a
removal of more than is held is refused whole: -3 on 2 Bombchus left 2. The check cuts oot_inventory_edit and
oot_edit_pouch out of game/oot_tools.c and runs them on a pouch with the game's rules, as seen in the game; it also
asks for an Inventory row for each bag. It fails on main: no Deku Stick Bag row, and Bombs +1 with no bag stays 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(debug): the Debug tab's ammunition amounts give the bag they need, and a removal takes what is held
Some checks failed
CI / What the change needs (pull_request) Successful in 11s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
0b66fb67f8
The Inventory page's amounts and the Debug tab's Change quantity row did nothing to Deku Sticks, Deku Nuts, Bombs,
Bombchus, Deku Seeds or Arrows on a save without the bag that holds them: the game keeps as many as the largest bag
held holds, so with none an add is clamped to nothing (#871, #2335). An add of ammunition with none of its bags now
gives the smallest bag first, then the add: a Bomb Bag comes with 20 bombs, a Bullet Bag with 30 seeds, a Quiver
with 30 arrows, as the game gives them; the smallest Deku Stick or Nut Bag comes empty and takes the sticks or nuts
added.

The Inventory page gets the Deku Stick and Nut Bags' rows (three sizes each, the game's Item_StickBag_* and
Item_NutBag_*), so the bigger ones can be given and taken away; the Bomb Bags, Bullet Bags and Quivers had theirs.
PR #1411 found the same bags.

A removal of more than is held is cut to what Link holds: the game refused it whole (the Change quantity row's -10
on a smaller count did nothing).

Fixes #871. See #2335 (its bottle is not this).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11 (26300), RTX 5080, NVIDIA 621.40, this branch's pack over the shared base 22d0d200, the repository's market-entrance save (child, no bags), Debug tools on. Right once on Deku Sticks, Deku Nuts, Bombs, Bombchus, Deku Seeds and Arrows each gave the smallest bag and then the add: the pause screen showed Deku Stick 1, Deku Nut 1/20, Bombs 20, Bombchus 1, and the game's counts Seeds 30 and Arrows 30 (on main all stayed 0). Bombs -3 gave 17; Change quantity Deku Nuts -10 on 1 gave 0 (refused on main). A save through the pause screen's System > Save and a relaunch kept every count and bag. Adult Link: Big Quiver, Big Deku Stick and Nut Bags from their new rows held 40 arrows, 20 sticks and 30 nuts. Not driven: the Insert menu's own keys (the same action numbers were sent through the live input file).

Tested in game: Windows 11 (26300), RTX 5080, NVIDIA 621.40, this branch's pack over the shared base 22d0d200, the repository's market-entrance save (child, no bags), Debug tools on. Right once on Deku Sticks, Deku Nuts, Bombs, Bombchus, Deku Seeds and Arrows each gave the smallest bag and then the add: the pause screen showed Deku Stick 1, Deku Nut 1/20, Bombs 20, Bombchus 1, and the game's counts Seeds 30 and Arrows 30 (on main all stayed 0). Bombs -3 gave 17; Change quantity Deku Nuts -10 on 1 gave 0 (refused on main). A save through the pause screen's System > Save and a relaunch kept every count and bag. Adult Link: Big Quiver, Big Deku Stick and Nut Bags from their new rows held 40 arrows, 20 sticks and 30 nuts. Not driven: the Insert menu's own keys (the same action numbers were sent through the live input file).
Author
Member

Pause screens, the repository's market-entrance save (child Link, no bags), Debug tools on, Windows 11, RTX 5080:

Before, main (base 22d0d200, the same inventory code), after Right once on Deku Sticks, Deku Nuts, Bombs, Bombchus, Deku Seeds and Arrows: every amount still 0.
main: Deku Stick 0, Bombs 0, Bombchus 0, Deku Nut 0

After, this branch @ 0b66fb67f, the same presses, then Bombs -3 and the Change quantity row's Deku Nuts -10: Deku Stick 1, Bombs 17 (the Bomb Bag's 20, less 3), Bombchus 1, Deku Nut 0 (1, then -10 cut to what was held). These counts and the bags were the same after a save through the pause screen and a relaunch.
this branch: Deku Stick 1, Bombs 17, Bombchus 1, Deku Nut 0

Adult Link, the Big Deku Stick and Nut Bags given from their new rows, then +63 on each: Deku Stick 20 and Deku Nut 30, full.
this branch, adult: Deku Stick 20, Deku Nut 30

Pause screens, the repository's market-entrance save (child Link, no bags), Debug tools on, Windows 11, RTX 5080: Before, `main` (base 22d0d200, the same inventory code), after Right once on Deku Sticks, Deku Nuts, Bombs, Bombchus, Deku Seeds and Arrows: every amount still 0. ![main: Deku Stick 0, Bombs 0, Bombchus 0, Deku Nut 0](https://git.magicbean.dev/attachments/312ef33c-fe46-40e3-9953-53e035afa801) After, this branch @ 0b66fb67f, the same presses, then Bombs -3 and the Change quantity row's Deku Nuts -10: Deku Stick 1, Bombs 17 (the Bomb Bag's 20, less 3), Bombchus 1, Deku Nut 0 (1, then -10 cut to what was held). These counts and the bags were the same after a save through the pause screen and a relaunch. ![this branch: Deku Stick 1, Bombs 17, Bombchus 1, Deku Nut 0](https://git.magicbean.dev/attachments/ed0bf52a-f86e-42ab-a452-31103710db2a) Adult Link, the Big Deku Stick and Nut Bags given from their new rows, then +63 on each: Deku Stick 20 and Deku Nut 30, full. ![this branch, adult: Deku Stick 20, Deku Nut 30](https://git.magicbean.dev/attachments/11edbfe1-5a11-4fbf-86d8-d83320b558ec)
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The reported game runs show that ammunition can be added without an existing bag and that oversized removals take the amount held. The actual Insert menu interaction and the largest stick and nut bag rows still need an in-game check. Recommend approval; not approved on the forge.

The debug inventory gives ammunition its smallest bag when needed, limits removals to the amount held, and exposes stick and nut bag upgrades. It adds a few pouch queries per edit and can persist a newly granted bag in the save.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L1 game/oot_cheat_items.h:69: The new bag rows and ammunition edit have not been exercised through the Insert menu itself. (more on the line) Do: On one supported setup, use the Insert menu to add and remove bombs, then give and remove the largest stick and nut bags and check their capacities.

Checks: Failing on this head, which is behind its base, where it passes: CI / Third-party parts and guide screenshots (pull_request). @rebase (or @fix) brings it up to date and runs it again; not held against it. Still running: 7 checks.

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

Does it help: Yes. The author's Windows game run reports ammunition staying at 0 on the base and becoming nonzero on the branch; Deku Nuts -10 on 1 changed from 1 to 0. The run used the menu's action numbers rather than driving the menu itself.

Other systems: The shared item list feeds both renderer labels and game-side actions, so their indices move together. The change affects debug inventory edits and saved inventory, not rendering or normal gameplay paths. Windows game behavior and save/reload were reported; the actual menu interaction remains untested.

Switches: None added, changed or removed.

Reviewed: 0b66fb67f8 against 2a1460546e: Read AGENTS.md, CONTRIBUTING.md, the pull request template, relevant standards, the full diff, commit messages, game/oot_cheat_items.h, tests/test_oot_ammo_bags.py and tests/test_oot_song_inventory.py. Read the changed functions and their callers in game/oot_tools.c and the inventory menu wiring; skimmed unrelated portions of the larger files, documentation and translations. No review-checklist file was found.; nothing run (a code review).

Checked and fine:

  • The new test exercises both ammunition addition and oversized removal, and the author reports that undoing either fix makes it fail.
  • Both commits record AI assistance; no generated files, game files or switch-table entries are changed.
  • The existing mask and song special cases remain outside the new ordinary pouch removal path.

Testing: Read-only review; no tests or project code were run. The author reports Windows game and game-free checks; CI is still running.

Overlaps and merge order: PR #1411 is described as having related inventory work; its separate pending-input handling remains with that PR. Merge order is not established here.


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

**Recommendation: Approve.** The code is ready: only testing is left (a run of the change itself). The reported game runs show that ammunition can be added without an existing bag and that oversized removals take the amount held. The actual Insert menu interaction and the largest stick and nut bag rows still need an in-game check. Recommend approval; not approved on the forge. The debug inventory gives ammunition its smallest bag when needed, limits removals to the amount held, and exposes stick and nut bag upgrades. It adds a few pouch queries per edit and can persist a newly granted bag in the save. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L1** `game/oot_cheat_items.h:69`: The new bag rows and ammunition edit have not been exercised through the Insert menu itself. (more on the line) **Do:** On one supported setup, use the Insert menu to add and remove bombs, then give and remove the largest stick and nut bags and check their capacities. **Checks:** Failing on this head, which is behind its base, where it passes: `CI / Third-party parts and guide screenshots (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs it again; not held against it. Still running: 7 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The author's Windows game run reports ammunition staying at 0 on the base and becoming nonzero on the branch; Deku Nuts -10 on 1 changed from 1 to 0. The run used the menu's action numbers rather than driving the menu itself. **Other systems:** The shared item list feeds both renderer labels and game-side actions, so their indices move together. The change affects debug inventory edits and saved inventory, not rendering or normal gameplay paths. Windows game behavior and save/reload were reported; the actual menu interaction remains untested. **Switches:** None added, changed or removed. **Reviewed:** 0b66fb67f846 against 2a1460546ec7: Read AGENTS.md, CONTRIBUTING.md, the pull request template, relevant standards, the full diff, commit messages, game/oot_cheat_items.h, tests/test_oot_ammo_bags.py and tests/test_oot_song_inventory.py. Read the changed functions and their callers in game/oot_tools.c and the inventory menu wiring; skimmed unrelated portions of the larger files, documentation and translations. No review-checklist file was found.; nothing run (a code review). **Checked and fine:** - The new test exercises both ammunition addition and oversized removal, and the author reports that undoing either fix makes it fail. - Both commits record AI assistance; no generated files, game files or switch-table entries are changed. - The existing mask and song special cases remain outside the new ordinary pouch removal path. **Testing:** Read-only review; no tests or project code were run. The author reports Windows game and game-free checks; CI is still running. **Overlaps and merge order:** PR #1411 is described as having related inventory work; its separate pending-input handling remains with that PR. Merge order is not established here. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -66,6 +66,12 @@
OOT_ITEM("Bullet Bag", "Item_BulletBag_Small", 0) \
OOT_ITEM("Big Bullet Bag", "Item_BulletBag_Medium", 0) \
OOT_ITEM("Biggest Bullet Bag", "Item_BulletBag_Large", 0) \
OOT_ITEM("Deku Stick Bag", "Item_StickBag_Small", 0) \
Member

L1 (should fix): The new bag rows and ammunition edit have not been exercised through the Insert menu itself.

When: The reported run sent action numbers directly, so it did not check selecting and operating the new rows or entering and leaving amount editing through the menu.

Do: On one supported setup, use the Insert menu to add and remove bombs, then give and remove the largest stick and nut bags and check their capacities.

**L1** (should fix): The new bag rows and ammunition edit have not been exercised through the Insert menu itself. *When:* The reported run sent action numbers directly, so it did not check selecting and operating the new rows or entering and leaving amount editing through the menu. **Do:** On one supported setup, use the Insert menu to add and remove bombs, then give and remove the largest stick and nut bags and check their capacities.
Author
Member
@fix
BeanBot force-pushed fix/debug-item-quantities from 0b66fb67f8
Some checks failed
CI / What the change needs (pull_request) Successful in 11s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 3a5b1d0cde
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 4m21s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m20s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m25s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m38s
CI / Website build and checks (pull_request) Failing after 1m21s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
2026-11-29 03:54:20 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The reported game runs show the ammunition fix working, but the new bag rows and ammunition edits still need an end-to-end run through the Insert menu. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 3a5b1d0cde. I rebased it onto main (8efea58644).

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

Adding ammunition without a bag now gives the smallest bag first, and removals are limited to the amount held. The inventory also gains stick and nut bag rows; the extra pouch reads occur only during debug edits.

Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)

  • L1 game/oot_cheat_items.h:69: The new bag rows and ammunition edit have not been exercised through the Insert menu itself. When: The reported run sent action numbers directly, so it did not check selecting and operating the new rows or entering and leaving amount editing through the menu. Do: On one supported setup, use the Insert menu to add and remove bombs, then give and remove the largest stick and nut bags and check their capacities.

Checks: they run again on this head (CI / Third-party parts and guide screenshots (pull_request) failed on the last one); a failure shows on the pull request.

Also noticed (2; not asked for, not blocking)
  • The description also requests a Linux game run and checks of the largest stick and nut bags.
  • CI has not yet run on this head.
More: does it help, other systems, switches, what was read

Does it help: Yes: the reported Windows game run changed ammunition from 0 to a nonzero amount with no bag, and a Deku Nut removal of 10 from 1 left 0 instead of 1. The menu itself was not driven.

Other systems: The change affects debug inventory edits on Windows and Linux, independently of GPU. Windows game behavior and save/load were reported; a Linux game run remains unreported.

Switches: None added, changed or removed. Existing HOS_OOT_CHEATS enables the debug tools.

Reviewed: 3a5b1d0cde against 8efea58644: Read the repository rules, the PR-specific diff, game/oot_cheat_items.h, game/oot_tools.c, and the two changed tests; inspected the menu action wiring and the reported runs. The user documentation was reviewed at the changed passage; unrelated rebased shader changes were not reviewed in full.; nothing run (a code review).

Checked and fine:

  • The menu and game derive inventory item indices from the same header.
  • The reported game-free test covers adds without bags, removals exceeding the held count, and both edit paths.

Testing: No commands that build or run tests were executed. The author reports Windows game and game-free test results; the Insert menu still needs a manual end-to-end run.

Overlaps and merge order: PR #1411 also concerns the inventory editor; its separate handling of presses pending game processing remains there.


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 (a run of the change itself). The reported game runs show the ammunition fix working, but the new bag rows and ammunition edits still need an end-to-end run through the Insert menu. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 3a5b1d0cdeb3. I rebased it onto `main` (8efea58644ab). Nothing was built or run: the checks run again on the new head. Adding ammunition without a bag now gives the smallest bag first, and removals are limited to the amount held. The inventory also gains stick and nut bag rows; the extra pouch reads occur only during debug edits. **Testing before merging (1)** (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation) - **L1** `game/oot_cheat_items.h:69`: The new bag rows and ammunition edit have not been exercised through the Insert menu itself. *When:* The reported run sent action numbers directly, so it did not check selecting and operating the new rows or entering and leaving amount editing through the menu. **Do:** On one supported setup, use the Insert menu to add and remove bombs, then give and remove the largest stick and nut bags and check their capacities. **Checks:** they run again on this head (`CI / Third-party parts and guide screenshots (pull_request)` failed on the last one); a failure shows on the pull request. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The description also requests a Linux game run and checks of the largest stick and nut bags. - CI has not yet run on this head. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: the reported Windows game run changed ammunition from 0 to a nonzero amount with no bag, and a Deku Nut removal of 10 from 1 left 0 instead of 1. The menu itself was not driven. **Other systems:** The change affects debug inventory edits on Windows and Linux, independently of GPU. Windows game behavior and save/load were reported; a Linux game run remains unreported. **Switches:** None added, changed or removed. Existing HOS_OOT_CHEATS enables the debug tools. **Reviewed:** 3a5b1d0cdeb3 against 8efea58644ab: Read the repository rules, the PR-specific diff, game/oot_cheat_items.h, game/oot_tools.c, and the two changed tests; inspected the menu action wiring and the reported runs. The user documentation was reviewed at the changed passage; unrelated rebased shader changes were not reviewed in full.; nothing run (a code review). **Checked and fine:** - The menu and game derive inventory item indices from the same header. - The reported game-free test covers adds without bags, removals exceeding the held count, and both edit paths. **Testing:** No commands that build or run tests were executed. The author reports Windows game and game-free test results; the Insert menu still needs a manual end-to-end run. **Overlaps and merge order:** PR #1411 also concerns the inventory editor; its separate handling of presses pending game processing remains there. </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>
docs(guide): the Graphics tab's guide picture is retained after the Inventory page's new bag rows
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
56cecd0e3f
game/oot_cheat_items.h is among the Graphics tab picture's reviewed UI sources (the Insert menu's code includes it).
This pull request adds the Deku Stick and Nut Bags' rows to the Debug tab's Inventory page, which the picture does not
show: its rows, labels, values, tab strip and footer are unchanged. The review is recorded at 3a5b1d0c with the
header's new hash, and the PNG is kept, as #2771 recorded #2730's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
llun force-pushed fix/debug-item-quantities from 56cecd0e3f
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Successful in 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 705b91b081
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 11s
PR description / Title and description (pull_request_target) Successful in 5s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m12s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m52s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m19s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m12s
CI / Website build and checks (pull_request) Failing after 1m19s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 17m39s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 37m55s
2026-11-29 04:22:40 +00:00
Compare
Author
Member

Rebased on main @ 3ab4db6e9; head 705b91b08.

BeanBot's L1 (the Insert menu itself): done, in the game through the job queue (Windows 11, RTX 5080, NVIDIA 621.40). The menu ran headless, drawn into the shots with RX_VK_SHOT_MENU=1 and driven by its own keys (RX_VK_MENU_SCRIPT), on a fresh market-entrance save with no bags:

  • Bombs, through Debug > Inventory > Items > Bombs > Edit amount: Right gave the Bomb Bag and 20 bombs. Left three times, 50 ms apart, gave 19, 18 and 17: three log lines, none dropped. Right gave 18, and the card and the HUD both read 18.
  • The largest bags, through Upgrades: Unlock on the Biggest Deku Stick Bag gave 30 sticks, and on the Biggest Deku Nut Bag 40 nuts, both shown on their cards. Right on each stayed at 30 and 40, so those are their sizes.
  • Taking the bags away: Relock on both bags left Deku Sticks and Nuts at 0, because with no bag the game holds none. That is now under Risks.

The Biggest bags' sizes are no longer under Still to test. Pictures follow in the next comment.

The failed CI job, "Third-party parts and guide screenshots": this is this PR's, not main's. scripts/check_guide_screenshots.py --review-sources passes on main @ 8efea586 and failed here with REVIEW REQUIRED: settings-graphics.png: game/oot_cheat_items.h changed since reviewed revision 694ae582. The Insert menu's code includes that header, so it counts among the Graphics tab picture's sources. The picture shows the Graphics tab, not the Inventory page's new rows, so the PNG stays as it is. The review is recorded in docs/user/images/guide/manifest.json (the header's new hash at 9963d60b, and a note), the way #2771 recorded #2730's. The checker and tests/test_guide_screenshots.py pass here.

The Rust job's failure on the last head (3a5b1d0c) is not from this PR, which changes no Rust. I couldn't read its log (it needs a sign-in), so the next run on this head will show whether it is still there.

Rebased on `main` @ `3ab4db6e9`; head `705b91b08`. **BeanBot's L1 (the Insert menu itself):** done, in the game through the job queue (Windows 11, RTX 5080, NVIDIA 621.40). The menu ran headless, drawn into the shots with `RX_VK_SHOT_MENU=1` and driven by its own keys (`RX_VK_MENU_SCRIPT`), on a fresh `market-entrance` save with no bags: - **Bombs, through Debug > Inventory > Items > Bombs > Edit amount:** Right gave the Bomb Bag and 20 bombs. Left three times, 50 ms apart, gave 19, 18 and 17: three log lines, none dropped. Right gave 18, and the card and the HUD both read 18. - **The largest bags, through Upgrades:** Unlock on the Biggest Deku Stick Bag gave 30 sticks, and on the Biggest Deku Nut Bag 40 nuts, both shown on their cards. Right on each stayed at 30 and 40, so those are their sizes. - **Taking the bags away:** Relock on both bags left Deku Sticks and Nuts at 0, because with no bag the game holds none. That is now under Risks. The Biggest bags' sizes are no longer under Still to test. Pictures follow in the next comment. **The failed CI job, "Third-party parts and guide screenshots":** this is this PR's, not `main`'s. `scripts/check_guide_screenshots.py --review-sources` passes on `main` @ `8efea586` and failed here with `REVIEW REQUIRED: settings-graphics.png: game/oot_cheat_items.h changed since reviewed revision 694ae582`. The Insert menu's code includes that header, so it counts among the Graphics tab picture's sources. The picture shows the Graphics tab, not the Inventory page's new rows, so the PNG stays as it is. The review is recorded in `docs/user/images/guide/manifest.json` (the header's new hash at `9963d60b`, and a note), the way #2771 recorded #2730's. The checker and `tests/test_guide_screenshots.py` pass here. The Rust job's failure on the last head (`3a5b1d0c`) is not from this PR, which changes no Rust. I couldn't read its log (it needs a sign-in), so the next run on this head will show whether it is still there.
Author
Member

The Insert menu run's own shots (RX_VK_SHOT_MENU=1), this branch, a fresh market-entrance save:

Bombs in Edit amount after Right (the Bomb Bag, 20), Left three times and Right: the card and the HUD at 18.
Inventory, Items: Bombs Quantity 18, HUD 18

After Unlock on the Biggest Deku Stick Bag and Biggest Deku Nut Bag (Upgrades), then Right on each: Deku Sticks 30, Deku Nuts 40.
Inventory, Items: Deku Sticks 30, Deku Nuts 40, Bombs 18

After Relock on both bags: Deku Sticks 0, Deku Nuts 0.
Inventory, Items: Deku Sticks 0, Deku Nuts 0, Bombs 18

The Insert menu run's own shots (`RX_VK_SHOT_MENU=1`), this branch, a fresh `market-entrance` save: Bombs in Edit amount after Right (the Bomb Bag, 20), Left three times and Right: the card and the HUD at 18. ![Inventory, Items: Bombs Quantity 18, HUD 18](https://git.magicbean.dev/attachments/e5f44b27-f99f-4633-b274-2ec4aba4d0c6) After Unlock on the Biggest Deku Stick Bag and Biggest Deku Nut Bag (Upgrades), then Right on each: Deku Sticks 30, Deku Nuts 40. ![Inventory, Items: Deku Sticks 30, Deku Nuts 40, Bombs 18](https://git.magicbean.dev/attachments/ecacb9e2-094b-4346-b0f9-fed38278b072) After Relock on both bags: Deku Sticks 0, Deku Nuts 0. ![Inventory, Items: Deku Sticks 0, Deku Nuts 0, Bombs 18](https://git.magicbean.dev/attachments/2bf544d5-af3a-44c7-86f6-2c2d21d1f356)
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The reported Insert menu run shows the ammunition edit and new bag rows working, including removal and relocking. The manifest update records why the existing Graphics tab image remains applicable. Recommend approval; not approved on the forge.

Debug inventory edits now give ammunition its smallest required bag and limit removals to the amount held; players can also manage Deku Stick and Nut Bags. The change adds a small amount of work when an inventory edit is applied.

Since the last review (on 3a5b1d0cde)
Resolved: L1 (The new bag rows and ammunition edit have not been exercised through the Insert menu itsel…); L2 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 7 checks.

Also noticed (2; not asked for, not blocking)
  • The description still requests a Linux game run.
  • Several CI jobs are still running.
More: does it help, other systems, switches, what was read

Does it help: Yes. The reported Windows game run changed Bombs from 0 to 20 with one Right press and reduced them to 17 with three Left presses; on the base, ammunition additions without bags stayed at 0.

Other systems: The reported run covers Windows and the Insert menu, including save and reload. A Linux game run remains unreported; the change is debug inventory logic rather than GPU-specific rendering.

Switches: None added, changed or removed.

Reviewed: 705b91b081 against 3ab4db6e91: Read the pull request diff, repository rules and reported runs; inspected the changed guide manifest and inventory code. The full changed code files, template and referenced developer standards were not read in full; generated manifest content was skimmed.; nothing run (a code review).

Checked and fine:

  • The manifest identifies the retained image as the Graphics tab capture and records the changed inventory header's reviewed revision.
  • The menu and game derive inventory row indices from the same header.

Testing: No commands that build or run project code were executed. The author's reported Windows game and menu runs passed; CI is still running.

Overlaps and merge order: Not checked; network access is closed.


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

**Recommendation: Approve.** The reported Insert menu run shows the ammunition edit and new bag rows working, including removal and relocking. The manifest update records why the existing Graphics tab image remains applicable. Recommend approval; not approved on the forge. Debug inventory edits now give ammunition its smallest required bag and limit removals to the amount held; players can also manage Deku Stick and Nut Bags. The change adds a small amount of work when an inventory edit is applied. **Since the last review** (on 3a5b1d0cdeb3) Resolved: L1 (The new bag rows and ammunition edit have not been exercised through the Insert menu itsel…); L2 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 7 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The description still requests a Linux game run. - Several CI jobs are still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The reported Windows game run changed Bombs from 0 to 20 with one Right press and reduced them to 17 with three Left presses; on the base, ammunition additions without bags stayed at 0. **Other systems:** The reported run covers Windows and the Insert menu, including save and reload. A Linux game run remains unreported; the change is debug inventory logic rather than GPU-specific rendering. **Switches:** None added, changed or removed. **Reviewed:** 705b91b081f0 against 3ab4db6e9154: Read the pull request diff, repository rules and reported runs; inspected the changed guide manifest and inventory code. The full changed code files, template and referenced developer standards were not read in full; generated manifest content was skimmed.; nothing run (a code review). **Checked and fine:** - The manifest identifies the retained image as the Graphics tab capture and records the changed inventory header's reviewed revision. - The menu and game derive inventory row indices from the same header. **Testing:** No commands that build or run project code were executed. The author's reported Windows game and menu runs passed; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Owner
@rebase
Member

I rebased this pull request onto main (a3e0d2316e): the new head is fc5fe43766.

Conflicts resolved

  • docs/user/images/guide/manifest.json: Kept both reviews and recorded the combined source revision matching their hashes.

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 `main` (a3e0d2316e43): the new head is fc5fe437661a. **Conflicts resolved** - docs/user/images/guide/manifest.json: Kept both reviews and recorded the combined source revision matching their hashes. 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 fix/debug-item-quantities from 705b91b081
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 11s
PR description / Title and description (pull_request_target) Successful in 5s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m12s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m52s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m19s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m12s
CI / Website build and checks (pull_request) Failing after 1m19s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 17m39s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 37m55s
to fc5fe43766
Some checks failed
PR description / Title and description (pull_request_target) Successful in 17s
CI / What the change needs (pull_request) Successful in 18s
CI / Third-party parts and guide screenshots (pull_request) Successful in 24s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 21s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m20s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 2m29s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 2m36s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m7s
CI / Website build and checks (pull_request) Failing after 1m16s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 11m47s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 29m21s
2026-11-29 06:14:45 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The ammunition fix is demonstrated in game and the rebased manifest preserves the guide image review. The remaining PR description check is still running. Nothing blocking is left. Recommend approval; not approved on the forge.

Debug inventory edits now give ammunition its required smallest bag and clamp removals to the quantity held. The change adds bag rows and a focused game-free test, at the cost of a few pouch reads per edit.

Since the last review (on 705b91b081)
Nothing changed in the ledger.

Checks: Still running: PR description / Title and description (pull_request_target).

Also noticed (2; not asked for, not blocking)
  • The requested Linux game run remains outstanding.
  • The manifest retains the original review commit identifier in its notes while its reviewed revision points to the rebased commit.
More: does it help, other systems, switches, what was read

Does it help: Yes. The author reports that ammunition additions went from 0 on the shared base to nonzero amounts on Windows, and a Deku Nut removal of 10 from 1 went from 1 remaining to 0.

Other systems: The changed inventory logic is shared by Windows and Linux and is independent of GPU rendering. Windows game and menu runs are reported; a Linux game run remains unreported.

Switches: None.

Reviewed: fc5fe43766 against a3e0d2316e: Read the PR diff, commit list, repository rules, PR template, changed inventory header and test, and relevant manifest and checker sections. The manifest, other changed files, surrounding code and recorded runs were skimmed; tool output limits prevented a complete read of all changed files.; nothing run (a code review).

Checked and fine:

  • The manifest preserves the preceding source review and records the new inventory header as reviewed.
  • The reported Windows menu run covers adding ammunition and unlocking and relocking the largest stick and nut bags.

Testing: No commands from the project or tests were run. The author reports Windows game and menu runs and game-free test results; the PR description check is still running.

Overlaps and merge order: None identified.


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

**Recommendation: Approve.** The ammunition fix is demonstrated in game and the rebased manifest preserves the guide image review. The remaining PR description check is still running. Nothing blocking is left. Recommend approval; not approved on the forge. Debug inventory edits now give ammunition its required smallest bag and clamp removals to the quantity held. The change adds bag rows and a focused game-free test, at the cost of a few pouch reads per edit. **Since the last review** (on 705b91b081f0) Nothing changed in the ledger. **Checks:** Still running: `PR description / Title and description (pull_request_target)`. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The requested Linux game run remains outstanding. - The manifest retains the original review commit identifier in its notes while its reviewed revision points to the rebased commit. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The author reports that ammunition additions went from 0 on the shared base to nonzero amounts on Windows, and a Deku Nut removal of 10 from 1 went from 1 remaining to 0. **Other systems:** The changed inventory logic is shared by Windows and Linux and is independent of GPU rendering. Windows game and menu runs are reported; a Linux game run remains unreported. **Switches:** None. **Reviewed:** fc5fe437661a against a3e0d2316e43: Read the PR diff, commit list, repository rules, PR template, changed inventory header and test, and relevant manifest and checker sections. The manifest, other changed files, surrounding code and recorded runs were skimmed; tool output limits prevented a complete read of all changed files.; nothing run (a code review). **Checked and fine:** - The manifest preserves the preceding source review and records the new inventory header as reviewed. - The reported Windows menu run covers adding ammunition and unlocking and relocking the largest stick and nut bags. **Testing:** No commands from the project or tests were run. The author reports Windows game and menu runs and game-free test results; the PR description check is still running. **Overlaps and merge order:** None identified. </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>
HumanBean deleted branch fix/debug-item-quantities 2026-11-29 06:22:43 +00:00
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!2779
No description provided.