Commit Graph

8 Commits

Author SHA1 Message Date
6a8b857fbd mask_channels: validate dimensions/buffers and --json paths, preserve symlinks and /dev/null 2026-11-25 06:30:04 +01:00
a0e187649e mask_channels: migrate to shared report_paths.same_report_path (BUILD-589) (#6520)
Squash-merged after diff review of PR #6520
2026-11-23 12:54:37 -06:00
5c4ff1a92a mask_channels: publish the --json report from a staging file and create its folder (#6337)
Squash-merged after review of PR #6337 - mask_channels: publish the --json report from a staging file and create its folder
2026-11-23 08:15:02 -06:00
b9681ec4ce mask_channels: unreadable input and --json paths print one error line and exit 2 (#5957)
Squash-merged after review of PR #5957 - mask_channels: unreadable input and --json paths print one error line and exit 2
2026-11-23 08:07:52 -06:00
e2bc606923 mask_channels: refuse a --json path that is the input DDS (same path, other spelling, link)
Review fix (Flyander on #3992): the report's open(..., "w") would truncate the texture and exit 0.
Checked before reading, as bink_index.same_output_path does; the test keeps the input's bytes for the
same path, a ./ spelling and a hard link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:57:36 +01:00
b00f249c36 test_mask_channels: a left-edge case that fails without the x=0 guard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:48:48 +01:00
d141b4ae0e mask_channels: left-edge wrap test; gamedata intro scoped to its table (review nits)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:47:54 +01:00
afdbc53daf gamedata: AlphaChannels Channel numbers the dirt mask's R, G, B in order (ASSET-304)
tools/mask_channels.py counts per-channel range, coverage and 4-connected blobs of a DDS export.
On the ped dirt mask: alpha constant 255; G a soft layer (never below 90) used alone by the
dusty/urban entries; R broad (92% one blob at >=64) used alone by snow; B speckled (7.6x R's
blobs) used alone by the spotty entry. The reversed order contradicts both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:45:46 +01:00