bvh_slot_check: unpack 6-tuple from model_geometries() #76

Open
github-bot wants to merge 1 commit from github-bot/gh-76 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:13 UTC · original
ubiquitarianism:old-pr/9803 → main · +1 −1 · 1 files · 1 commits · draft

Carried over from old PR 9803 by EspadaHD in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9803, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
This branch conflicts with the current main and needs a rebase.
EspadaHD: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116605577

What and why

tools/bvh_match.py's model_geometries(item) returns a 6-tuple (mesh, model, geometry, triangles, shader_hash, render_bucket) after #6330 added the render bucket field, while tools/bvh_slot_check.py:153 still unpacked 5 elements and raised ValueError: too many values to unpack (expected 5, got 6). Unpack all 6 elements in match_exports().

Tested

  • python -I tests/test_bvh_slot_check.py -v: 9/9 passed (OK)
  • python -I tests/test_bvh_match.py: 41/41 passed (OK)
  • python -m compileall -q tools/bvh_slot_check.py: exit 0
  • python -I scripts/check_no_game_data.py tools/bvh_slot_check.py: exit 0
  • Environment: Windows, CPU-only standard library tests, no game data, no GPU used.

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.
**@⁠Andretuta** on GitHub · 2026-11-24 02:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/76) `ubiquitarianism:old-pr/9803` → `main` · +1 −1 · 1 files · 1 commits · draft > Carried over from **old PR 9803** by `EspadaHD` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9803`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > This branch conflicts with the current `main` and needs a rebase. > `EspadaHD`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116605577 ### What and why `tools/bvh_match.py`'s `model_geometries(item)` returns a 6-tuple `(mesh, model, geometry, triangles, shader_hash, render_bucket)` after `#6330` added the render bucket field, while `tools/bvh_slot_check.py:153` still unpacked 5 elements and raised `ValueError: too many values to unpack (expected 5, got 6)`. Unpack all 6 elements in `match_exports()`. ### Tested - `python -I tests/test_bvh_slot_check.py -v`: 9/9 passed (`OK`) - `python -I tests/test_bvh_match.py`: 41/41 passed (`OK`) - `python -m compileall -q tools/bvh_slot_check.py`: exit 0 - `python -I scripts/check_no_game_data.py tools/bvh_slot_check.py`: exit 0 - Environment: Windows, CPU-only standard library tests, no game data, no GPU used. AI-assisted: yes ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:43:20 +00:00
This pull request has changes conflicting with the target branch.
  • tools/bvh_slot_check.py
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 origin '+refs/pull/76/head:github-bot/gh-76'
git switch 'github-bot/gh-76'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-76'
git switch 'github-bot/gh-76'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-76'
git switch 'github-bot/gh-76'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-76'
git switch 'main'
git merge --squash 'github-bot/gh-76'
git switch 'main'
git merge --ff-only 'github-bot/gh-76'
git switch 'main'
git merge 'github-bot/gh-76'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.