tests/test_awc_manifest.py and tests/test_navmesh_nodes.py each make a
file read-only (0o444) and expect the write to be refused. Root ignores
the mode, so both files are red when the suite runs as root, the default
user in most containers.
Skip those two cases under POSIX root, with the check and the reason
tests/test_image_query_probe.py and tests/test_mode_round_probe.py
already use. Windows and a normal POSIX user still run both cases.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lts24qp68LkwdoVemtts4A
Review on #3834: an archive whose data offset pointed past its end was
scanned as an empty archive (exit 0). The tool now refuses a data start
outside 8..file size with exit 2. --out is compared with the inputs
through report_paths.same_report_path, as the other tools do. The
docstring and docs/navmesh.md now say that a polygon's height is the
mean of its vertex heights, and that surfaces above one another (a
bridge, stacked tiles of one sector) each add their plan area.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first version called +0x18 bit 13 road surface. The count cannot
tell it from bit 8: both lie under about nine in ten lane nodes. The
tool now also counts the four combinations of the two bits (both, only
one, neither) for nodes and area: 89.6% of the nodes stand on polygons
with both bits, which cover 2.5% of the area, and bit 13 alone covers
9.5% with 0.6% of the nodes. The doc reports that, keeps SixNG's label
as its visual reading, and leaves which bit means road surface open.
docs/related_projects.md gets a SixNG entry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/navmesh.md left the polygon flag bits open and two road/pavement
labels from another project unconfirmed. tools/navmesh_nodes.py puts
every lane-graph node of levels.rpf on the navmesh polygon under it and
counts that polygon's +0x18 and +0x28 bits next to the plan area each
bit covers.
On one 1.0.2.1 package 63,793 of 63,806 nodes have a polygon within 3 m
(median 0.03 m), which confirms vertex = tile minimum + u16 / 65535 *
extent; 90.2% of them stand on a polygon with +0x18 bit 13, which covers
12.0% of the area: road surface, as SixNG labels it from a visual check.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>