[PR #76] bvh_slot_check: unpack 6-tuple from model_geometries() #128

Open
opened 2026-11-26 20:16:53 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/76
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9803


📝 Commits (1)

  • b34987e bvh_slot_check: unpack 6-tuple from model_geometries()

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 tools/bvh_slot_check.py (+1 -1)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/76 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9803` --- ### 📝 Commits (1) - [`b34987e`](https://github.com/ubiquitarianism/leonida/commit/b34987e1bb614f48fc99ea9cd9c19957856a2bb6) bvh_slot_check: unpack 6-tuple from model_geometries() ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/bvh_slot_check.py` (+1 -1) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#128
No description provided.