Commit Graph

7 Commits

Author SHA1 Message Date
79a758ef9f navmesh_nodes: bound tally_tile grid insertion to occupied node cells 2026-11-24 14:50:34 +00:00
4e4c2b15c9 tests: two read-only-file cases skip under root (TEST-ROOT-READONLY)
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
2026-11-24 11:23:43 +00:00
028548ace5 navmesh_nodes: refuse a --out it cannot write before either archive is read (EGEN-NAVMESH-NODES-OUT) (#6608)
Squash-merged after diff review of PR #6608
2026-11-23 11:17:01 -06:00
9a125c4fb0 navmesh_nodes: a missing continuation no longer swallows the next tile (#6338)
Squash-merged after review of PR #6338 - navmesh_nodes: a missing continuation no longer swallows the next tile
2026-11-23 08:15:13 -06:00
2b71db44d6 navmesh_nodes: refuse a data start outside the archive; name the approximations
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>
2026-11-22 22:20:14 +00:00
5c1e3f7dbd navmesh_nodes: count bits 8 and 13 in combination; name only what was measured
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>
2026-11-22 21:56:12 +00:00
298240a589 navmesh_nodes: count the polygon flag bits under the lane-graph nodes
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>
2026-11-22 21:28:51 +00:00