Commit Graph

3 Commits

Author SHA1 Message Date
78f92bcf2e rpf9dump: rescan instead of exporting from a partial index cache
rpf9dump shares %LOCALAPPDATA%\RpfPreview\Indexes with the rpf9-explorer GUI, which saves its model index
while it is still indexing and when a scan is cancelled, with IsComplete=false. rpf9dump trusted any cache that
loaded, so after a stopped GUI scan it exported only what had been indexed so far, published the manifest and
exited 0, and make_game.py never redid the step. A cached index now stands in for a full scan only when it is
marked complete or carries rpf9dump's own coverage text; otherwise rpf9dump scans again. Its own full scans are
saved with the complete mark, which the cache file already had a field for.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ABh36DZ2sZNq3ChN6EZJs
2026-11-22 23:02:25 +03:00
eea367772d rpf9dump: read back cache counts written under any culture
The old coverage text used N0, whose group separator is not always one of
. , ' or a space: de-CH writes U+2019, ar-* U+066C, nqo U+060C, ff-Adlm
U+2E41. Accept any punctuation or space between the digits. With ICU, the
old pattern failed for 77 of 852 cultures and the new one for none; the
diagnostics test now checks every culture.

Reported by kotorvr in the review of #853.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:21:29 +00:00
9e0d871d76 rpf9dump: record scan-level candidate and recovery counts
Candidates that RecoverAtOffsets rejects never reach the per-item loop,
so ModelDecodeFailures stays empty even when candidates are missing.
Write Scan { Candidates, Recovered, NotRecovered, Entries } into the
manifest and print the shortfall. Recovered counts resources (distinct
candidate offsets): since the 917e9b9 pin a drawable dictionary yields
one entry per child, so Entries can exceed Candidates.

On a cached run the candidate count comes from the index cache's coverage
text, which rpf9dump now writes with invariant digits; older caches with
grouped digits still parse. The count is null when another tool wrote the
cache.

Suggested by Kam471 in the review of #30; that follow-up commit was pushed
after #30 had been merged, so it is resubmitted here on current main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:38:39 +00:00