Repository navigation
Report model decode failure reasons in rpf9dump - #30
Conversation
|
@ItsNotRexed, I opened a companion PR in the decoder submodule, breadbbbb/rpf9-explorer#3. It reads parent indices and inverse bind matrices from an external drawable and resolves mesh bone palettes by hash. The tests use a generated three-joint fixture. This diagnostics PR can be reviewed independently. Once the decoder PR is merged, Leonida can pick up the skeleton API by updating its |
|
Useful diagnostic, and the generated-header tests are a good idea. One measured caveat from a run over the actual archives: this classifier only sees entries that reach Measured on the 1.0.2.1 package (same submodule revision
The Two consequences:
Suggestion: also write the scan-level For reference, truncating both spans to |
Candidates that RecoverAtOffsets rejects never reach the per-item loop,
so ModelDecodeFailures stays empty even when many candidates are missing
(data.rpf at 48557ea: 963 of 2,313). Write Scan { Candidates, Recovered,
NotRecovered } into the manifest and print the shortfall.
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 a cache was written by
another tool.
Suggested by Kam471 in the review of ItsNotRexed#30.
|
Thanks for the measurements. I added your suggestion in 4f8aaa2. The manifest now has a I checked this on You're right that Tested on Linux x64 with .NET SDK 8.0.428 (CPU only; no GPU involved). AI-assisted. |
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>
Summary
Validation
dotnet build tools/rpf9dump/rpf9dump.csproj -c Releasedotnet run --project tests/Rpf9DumpDiagnostics/Rpf9DumpDiagnostics.csproj -c ReleaseBoth passed on Windows with .NET SDK 8.0.428 and the pinned
rpf9-explorerrevision. This is CPU-only validation. AI-assisted.