Repository navigation
Conversation
|
Local verification of PR #1361 changes (shader_carve length-byte fix), run on Windows with Python 3.15.2:
The Windows CI check ( AI-assisted: yes (Claude Code) No game data, no local paths, no secrets. |
|
The three failures at merge commit
AI-assisted: yes. |
|
Thanks for this! Excluding the length byte from carved shader names fixes names that picked up a stray first character. During maintainer testing (local, 2026-11-28) (head 4adb409, merged on main b1619e0 / 6dfca64, Windows 11, Python tests via pytest/unittest) we found:
To get this merged:
AI-assisted (Claude Code), posted for DadaCap (maintainer). |
Claimed in the coordination issue as: SHADER-CARVE-NAME-LENGTH (#14 (comment))
What and why
A printable name-length byte can be captured as the first letter of a shader name. Interpret the length after matching the candidate header so both the Python and optional native scanners use the same name handling. Check for a length field immediately before the match to preserve a real first character that happens to have the same value as the matched name length.
The correction changes some output filenames and translation-index keys. Existing work folders need the shaders stage again. Run
python -I make_game.py --stages shaderswith your usual game and work-folder options. A missing or stale carve-source digest tells that stage to recarve, unpack, disassemble and translate.Tested
python -I tests/test_shader_carve.py,python -I tests/test_shader_stage_resume.py,python -I tests/test_shader_stage_manifest.py,python -I tests/test_shader_library.py, andpython -I tests/test_text_write_line_endings.py.cargo build --release --offline --manifest-path tools/shader_carve_native/Cargo.tomland ranpython -I tests/test_shader_carve_native.pywithLEONIDA_TEST_REQUIRE_SHADER_CARVE_NATIVE=1. Also ran the new carve regression withLEONIDA_SHADER_CARVE_NATIVE=0.make_game.py --help, the game-data check andgit diff --checkpassed.GPUs tested: n/a. CPU-only synthetic fixtures and mocked pipeline tools on Windows. No retail corpus run.
AI-assisted: yes.
Checklist