Commit Graph

38 Commits

Author SHA1 Message Date
04f3f50941 Measure the 4 KiB boundary cases in navmesh directories
ASSET-445

AI-assisted: 6.2 Astra High
2026-11-25 11:15:54 +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
9177299c7f TEST-1576: classify coplanar winding on XY-ambiguous navmesh links (#6682)
Squash-merged after diff review of PR #6682
2026-11-23 10:58:20 -06:00
897b2cb897 docs/navmesh: restore the dashes and signs a double encoding garbled (#6713)
Squash-merged after diff review of PR #6713
2026-11-23 10:53:16 -06:00
51e7c9dc8e ASSET-565: export one static navmesh tile as ordered OBJ boundaries (#6725)
Squash-merged after diff review of PR #6725
2026-11-23 10:51:18 -06:00
103e464415 navmesh_index: count each path once for recursive globs (#6890)
Squash-merged after diff review of PR #6890 - navmesh_index: count each path once for recursive globs
2026-11-23 09:45:34 -06:00
2e52b2f1d7 Docs after round 44: one row per topic, escaped literal pipes, one copy of each repeated line and list item, one i18n row per language
Also: #2490's committed conflict markers in fssm_crosscheck.md resolved to main's text, the SHADER-605 section
moved below the troubleshooting table it split, a header rule for the export-format table, two backticked
paths that name no Leonida file, and the BOM dropped from anim_move.py and its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:24:16 -05:00
d826cd237f Merge pull request #4165 from JavierBlanco23
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/navmesh.md
2026-11-22 23:11:56 -05:00
e2ad668517 Merge pull request #4125 from Jacob
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:11:31 -05:00
438a555162 Merge pull request #3834 from kotorvr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/navmesh.md
2026-11-22 23:08:45 -05:00
c0da036a2c Merge pull request #3773 from eyyun
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:08:23 -05:00
097008a7e5 Merge pull request #3528 from Jacob
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:07:41 -05:00
e7f170c4c7 navmesh_cell_fit: reproducible ASSET-332 measurement; the static tiles are a real control
ricardotanaka asked for the wrapped scan as a tool. Writing its tests showed the
doc's "static tiles are no control" was wrong: a 128 m tile's step is 128/65535,
not 1/512, so only 18.75% of its levels land on a 1/32 m grid. All 137 sampled
static tiles fit 0.0625 (none fits 0.0325), so the 0.0325 meshes are what ties
the local-space meshes to the CVehiclePoints documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:30:36 +13:00
6fbf84757e docs/navmesh: ASSET-332 review: 5 zero/absent documents, quantisation baseline, TOC as a hypothesis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:14:02 +13:00
cfe2e3de64 docs/navmesh: prove vehicle navmeshes are stored in navmeshes.rpf dynamic partition and classify models (ASSET-332) 2026-11-23 00:45:31 +01:00
1d133f4933 docs/navmesh: the vehicle navmeshes are stored, on the CVehiclePoints cell sizes (ASSET-332)
All 161 local-space non-grid meshes put their x/y vertices on one of the three
nonzero fNavOverrideRecastCellSize values; the 9 on the odd 0.0325 share one
54 x 159-cell footprint and match 3 documents. No mesh holds a model-name hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:32:04 +13:00
547da6393d docs/navmesh: say which tile per position the neighbour figure takes (ASSET-282 review)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:24:49 +13: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
daed40cd71 Fix the docs the round-43 merges broke
- design.md: escape the literal pipes that split contract-table rows again, and merge the 76 repeated topics into
  one row each (sentence by sentence; no number dropped).
- d3d12_vulkan.md: one milestone row per ID (the most complete of each), and LEONIDA_ARENA_LOG documented with the
  arena high-water report (D3D-55).
- navmesh.md: one item 4 and 5 under Remaining unknowns (the +0xB8 footprint and octree-key wording).
- sandbox.md: name vk_sandbox's source file; i18n index: one pt-BR row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:12:19 -05:00
6ebcf0577c Merge pull request #3773 from eyyun 2026-11-22 17:03:41 -05:00
5a57053e09 Merge pull request #3622 from Ewann
# Conflicts:
#	docs/navmesh.md
2026-11-22 17:03:03 -05:00
16ec4ee103 Merge pull request #3609 from eyyun 2026-11-22 17:02:59 -05:00
b3e1faec9c docs/navmesh: grammar in unknowns item 4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:58:54 +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
19fe19344e navmesh_links: use same_report_path and verify local-tile link endpoints 2026-11-23 00:53:05 +03:00
002cd455a3 navmesh_decode: keys_octree also requires one slot per key
Two occupied slots with the same key and distinct payload indices passed
values_bijective, then folded into one dict entry in _grid_slots, so the
octree check passed and the depth and leaf counts lost an entry
(reported by Oblyterium on #3622). Require len(keys) == entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:45:35 +01:00
8178b9f4a3 tools: decode and verify navmesh +0x88 adjacent edges and +0xA8/+0xB0 special links 2026-11-23 00:32:51 +03: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
9be689c67f navmesh_decode: Band-3 grid keys are linear octree keys, inner nodes hold 0xff00 (ASSET-287)
--deep now checks that every grid key is a sentinel-bit octree key (root 1,
child = parent << 3 | octant, every parent present) and that every inner
node's u32 word is 0x0000ff00, and reports key depths, the inner-node count
and leaf words by low byte. docs/navmesh.md records the measured layout;
the x/y order of octant bits 0/1 and the leaf fields' meaning stay open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:08:13 +01:00
f0a6adb034 tools: decode navmesh +0xB8 paired obstacle footprint records (ASSET-281) 2026-11-23 00:05:42 +03:00
7a2c325986 docs/navmesh: the +0xE8 build stamp is second, minute, hour, day (ASSET-282)
All six nonzero values of u32@0xE8, read as bytes from the lowest
address, are a second, minute, hour and day of month (struct tm order);
no month or year is stored. The day-22 stamp marks the 3,003 tiles
stacked on 940 grid positions on top of the day-9 base grid (2,984 share
a position with a day-9 tile, and always come later in the archive).
Counts from tools/navmesh_decode.py's scan of the 1.0.2.1 package; no
geometry or game data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:48:11 +13:00
996191afab docs: record the measured RPF9, navmesh and PRD0 cross-checks 2026-11-22 18:13:27 +00:00
9c159e8285 docs: record the 6stars format facts that reproduce
Re-measured against the local package: the RPF9 stream boundary that ends a system prefix (and the negative on the 8 MiB rule), the PRD0 member type codes, and the navmesh polygon +4 packing. The navmesh road/pavement bit labels did not reproduce and are recorded as such. 6stars is cited as independent corroboration; no code was copied and the repository has no licence.
2026-11-22 16:48:48 +00:00
42b30b189f Docs: vehicle navmesh settings (CVehiclePoints)
Counts over the 32 CVehiclePoints documents in common.rpf: one per vehicle,
Recast-style cell/agent overrides, empty boarding points and props, and mod
part names. Cross-checks: 25 of 31 model names are .yft models, all of them
also distant-light models. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:26:31 +00:00
dd4a2f549a Guards: ignore and detect the model, audio and world files the build writes
The export stages write .obj models, .glb chunks, .ogg Opus and .wav PCM
straight from the package, but .gitignore and the No Game Data check only
named the archive, shader and texture types. A run pointed inside a checkout
could leave those untracked and get them staged; the check would also miss a
force-added one, along with .r9modeldata and .msixvc that .gitignore already
covers.

The bvh and navmesh examples also wrote their index reports into the working
directory, which puts game-derived JSON and CSV in the tree; point them at
<temp> like the movies note does.

Verified with git check-ignore on every new pattern and by matching sample
filenames against the workflow regex. Docs and ignore rules only.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-21 23:27:15 -06:00
2a41e7a44c Navmesh: decode 0DRP cover-point pages, 0x00010015 tiles and Band-3 grids (ASSET-22) 2026-11-21 22:03:23 -03:00
76b7b5b329 Index tools: refuse --limit/--start values that scan nothing, survive empty archives
bvh_index, page_index, story_index, navmesh_index and psin_index:

- --limit 0 meant "no limit" (0 is falsy) and a negative --limit scanned
  nothing and still exited 0 with an empty index. --limit must now be at
  least 1 and --start 0 or more; argparse rejects anything else (rc 2).
- An empty .rpf crashed in mmap ("cannot mmap an empty file") and a file
  shorter than the header word crashed in struct.unpack_from. bvh, page and
  story now treat both as an archive with no streams.
- bvh_index directory mode: one bad archive no longer aborts the scan and
  loses the results of the others; it is reported and skipped.
- A --start past the end of the archive is a one-line error (rc 2) instead
  of a traceback (bvh also checked nothing and reported a negative span).
- page_index checks the output extension before the scan, not after it.

Docs: the accepted ranges and the empty-archive behaviour are written next
to each tool's usage in docs/{bvh,navmesh,page_directory,psin,story}.md.

Tests: synthetic cases for each tool; they fail on main and pass here.
2026-11-21 23:21:29 +01:00
7f993ac8b4 docs: measured navmesh archive composition
Full RPF9 stream index of navmeshes.rpf (90,295 streams), the measured 0DRP directory-page layout, rejected AABB/NVMS pseudo-magics, and data/levels cross-check counts. Adds a stdlib navmesh_index.py and synthetic tests; no game data.
2026-11-21 19:06:01 +00:00