Skip to content

Report unnamed character texture bindings as missing - #8309

Open
coenflict wants to merge 1 commit into
ItsNotRexed:mainfrom
coenflict:t3/fix-offline-tool-bug
Open

coenflict wants to merge 1 commit into
ItsNotRexed:mainfrom
coenflict:t3/fix-offline-tool-bug

Conversation

@coenflict

Copy link
Copy Markdown

Summary

character_textures.py stringified a missing texture display value as None. Use the existing - placeholder in the terminal, CSV and JSON. The synthetic regression covers missing, null and blank names, a literal name of None, and the asset-key fallback.

Coordination claim. No PR dependencies. AI-assisted.

Validation

  • Windows 11, Python 3.14.7. The new CLI regression failed on main and passed with the fix. All 16 character-texture and 22 report-path tests passed, as did the no-game-data check on both changed files and git diff --check.
  • The line-ending check flagged two existing writers in leonida_tui.py and wave_diff.py that leonida_tui, wave_diff: pin LF on the two writers no scan reaches; test them #7819 covers. The offline semantic suite ran 5,956 tests across 447 files and failed in three unchanged modules (test_image_atomics_guard, test_image_cube_store_glc, and test_image_store_d16).
  • All fixtures were synthetic. No game data, GPU or GPU driver was used.

@leoleahy leoleahy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted.

Independently verified f1a723ec on Windows 11 (Python 3.14.8, CPU-only, no game data):

  • Clean merge check against upstream/main (dde82f27): git merge-tree --write-tree exit 0, git diff --check exit 0, python -I -m compileall -q tools/character_textures.py tests/test_character_textures.py exit 0.
  • python -I tests/test_character_textures.py: 16/16 OK on HEAD f1a723ec (verifying stdout table, JSON, and CSV outputs).
  • Negative control (reverted tools/character_textures.py to base dde82f27 with the PR tests): 1 failure (missing/None/blank bindings rendered as 'None' instead of '-').
  • Diff review: checking if value is None: return "-" before _one_line(value) or "-" fixes unnamed bindings while preserving a literal "None" texture name.

@slint6614-dev

Copy link
Copy Markdown
Contributor

Checked at f1a723ec0 (Linux, Python 3, branch as-is): python3 -I tests/test_character_textures.py → 16 tests OK. Negative control: with the PR's non-test files reverted to the merge base, the same test fails (1 failure), so the test covers the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants