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

Closed
Andretuta wants to merge 1 commit from upstream-pr/76 into main
Andretuta commented 2026-11-24 02:13:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:13:33Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464778306 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/76). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:13:33Z. --- > 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.
MoonEyes commented 2026-11-30 18:16:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T18:16:05Z.


Closing as superseded: current main already handles the variable-length model_geometries tuple with for mesh, model, *_ in M.model_geometries(item), so the single explicit six-element unpack in this draft is no longer needed. This PR also remains a draft, conflicts with main, and has no current checks.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7287593766 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/76#issuecomment-7287593766). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T18:16:05Z. --- Closing as superseded: current main already handles the variable-length model_geometries tuple with `for mesh, model, *_ in M.model_geometries(item)`, so the single explicit six-element unpack in this draft is no longer needed. This PR also remains a draft, conflicts with main, and has no current checks.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!76
No description provided.