Commit Graph

10 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
34702237c0 docs: point mask_channels at its --help usage line (#6584)
Squash-merged after diff review of PR #6584
2026-11-23 12:23:56 -06:00
ee31aea9fe mask_channels: --thresholds help says 1..255, the range the tool accepts (#6913)
Squash-merged after diff review of PR #6913 - mask_channels: --thresholds help says 1..255, the range the tool accepts (EGEN-MASKCHANNELS-THRESHOLD-HELP)
2026-11-23 09:39:57 -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
7dbaa0409a Repo rules after round 44: stdout guards on 13 programs, newline= on four text writes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:25:51 -05: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
2d80029297 mask_channels: write the --json report with LF line ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:46:31 +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