Repository navigation
skinned_glb, docs/character_skeleton: the palette is at grmModel + 0x28, its length at + 0x14 - #8578
Open
victormoens wants to merge 1 commit into
Open
victormoens wants to merge 1 commit into
victormoens wants to merge 1 commit into
Conversation
…28, its length at + 0x14 The module docstring and the "Skinned GLB export" section still named the palette at grmModel + 0x20 (and the docstring its length at + 0x0C), while the measured table on the same page and tools/anim_glb.py use + 0x28 and + 0x14. Text only: skinned_glb reads bone_palette from the decoded JSON. A test keeps both texts in step with the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Tested
|
|
Tested
AI-assisted (Claude Code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #8504 (comment) (
ne1i's finding in #8504, 18:57)What and why
tools/skinned_glb.py's module docstring and the "Skinned GLB export" section ofdocs/character_skeleton.mdstill placed the drawable palette atgrmModel + 0x20. The docstring also put its length atgrmModel + 0x0C. The measured table on the same page ("Model-side bone mapping") says+0x28for the bone-hash array pointer and+0x14for the local bone count, and notes that the earlier+0x20was wrong.tools/anim_glb.pyreadsmodel + 0x28andmodel + 20.tools/skinned_glb.py:44:+ 0x20→+ 0x28,+ 0x0C→+ 0x14. Only the text changes: the tool readsbone_palettefrom the decoded JSON, not the offset.docs/character_skeleton.md:343:+ 0x20→+ 0x28.tests/test_skinned_glb.py: newPaletteOffsetTextTest. It reads the two offsets from the table and checks that the docstring and the export section name them, so the texts can't drift from the table again.Tested
Windows 11, CPython 3.14.3 and 3.13.12. No GPU and no game files.
python -I tests/test_skinned_glb.py: 32 tests OK on 3.14 and on 3.13 (one skip on 3.13, which has no numpy). With the two text fixes reverted, both new tests fail.python -m compileall -q make_game.py tools tests: OK.python -I scripts/check_no_game_data.pyon the three changed files: exit 0.python -I tests/test_ci_registration.pyand thetests/test_docs_*.pyfiles:test_docs_cli_flags,test_docs_design_rowsandtest_docs_linksfail with one failure each, both with and without this change. None of those failures mentionscharacter_skeleton.md, and each already has an open PR (test_docs_cli_flags: spirv-opt passes are another program's flags (main is red) #8290, docs/README.md: one row each for strand_grooms and ped_catalogues, every fact kept #8366, docs: close the unclosed fence in runtime/README.md and the dead local-note link (test_docs_links red on main) #8169). The other docs tests pass.AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code