RageModelDecoder: allow zero bounding-sphere radius (ASSET-69) #21

Closed
github-bot wants to merge 1 commit from gh-pr/21/head into gh-pr/21/base
Owner

@⁠JavierBlanco23 on GitHub · 2026-11-22 18:52 UTC · original
asset-69-allow-zero-radius → main · +1 −1 · 1 files · 1 commits · closed without merging

Allows radius == 0 (radius is >= 0 and < 1_000_000 instead of > 0) in RageModelDecoder.LooksLikeDrawableHeader (Core/RageModelDecoder.cs:124).

ValidBounds(min, max) already permits degenerate min == max bounds, and valid drawable dictionaries in core_restofworld.rpf carry a bounding-sphere radius of 0.

Verification (ItsNotRexed/Leonida ASSET-69, counts only, no game data)

  • Built tools/rpf9dump/rpf9dump.csproj -c Release (0 warnings, 0 errors).
  • core_restofworld.rpf (1,024 scan candidates), cache cleared before each run:
    • Before (radius > 0): Recovered = 873, NotRecovered = 151, Entries = 885, ok = 885, fail = 0, ModelDecodeFailures = {}.
    • After (radius >= 0): Recovered = 884 (+11), NotRecovered = 140 (-11), Entries = 896 (+11), ok = 896, fail = 0, ModelDecodeFailures = {}.
  • Environment: Windows 11, .NET 8 SDK. AI-assisted: Yes.
**@⁠JavierBlanco23** on GitHub · 2026-11-22 18:52 UTC · [original](https://github.com/breadbbbb/rpf9-explorer/pull/21) `asset-69-allow-zero-radius` → `main` · +1 −1 · 1 files · 1 commits · closed without merging Allows `radius == 0` (`radius is >= 0 and < 1_000_000` instead of `> 0`) in `RageModelDecoder.LooksLikeDrawableHeader` (`Core/RageModelDecoder.cs:124`). `ValidBounds(min, max)` already permits degenerate `min == max` bounds, and valid drawable dictionaries in `core_restofworld.rpf` carry a bounding-sphere radius of `0`. ### Verification (`ItsNotRexed/Leonida` `ASSET-69`, counts only, no game data) - Built `tools/rpf9dump/rpf9dump.csproj -c Release` (0 warnings, 0 errors). - `core_restofworld.rpf` (1,024 scan candidates), cache cleared before each run: - Before (`radius > 0`): `Recovered = 873`, `NotRecovered = 151`, `Entries = 885`, `ok = 885`, `fail = 0`, `ModelDecodeFailures = {}`. - After (`radius >= 0`): `Recovered = 884` (+11), `NotRecovered = 140` (-11), `Entries = 896` (+11), `ok = 896`, `fail = 0`, `ModelDecodeFailures = {}`. - Environment: Windows 11, .NET 8 SDK. AI-assisted: Yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:05:38 +00:00
github-bot closed this pull request 2026-11-26 19:05:38 +00:00
Author
Owner

@⁠breadbbbb on GitHub · 2026-11-22 23:00 UTC · original · reviewed

This change is already present in current main at e293917, through #12 and release 1.2. LooksLikeDrawableHeader already accepts finite radius zero (radius is >= 0 and < 1_000_000); #12 also added the preview-bounds fallback for empty declared bounds.

There is no additional behavior here relative to the current target. Recommend closing this PR as superseded by #12 rather than merging the same fix again.

**@⁠breadbbbb** on GitHub · 2026-11-22 23:00 UTC · [original](https://github.com/breadbbbb/rpf9-explorer/pull/21#pullrequestreview-6014990130) · **reviewed** This change is already present in current main at e293917, through #12 and release 1.2. LooksLikeDrawableHeader already accepts finite radius zero (`radius is >= 0 and < 1_000_000`); #12 also added the preview-bounds fallback for empty declared bounds. There is no additional behavior here relative to the current target. Recommend closing this PR as superseded by #12 rather than merging the same fix again.
Author
Owner

@⁠JavierBlanco23 on GitHub · 2026-11-22 23:03 UTC · original

Thanks @⁠breadbbbb! Closing as superseded by #12 / e293917.

**@⁠JavierBlanco23** on GitHub · 2026-11-22 23:03 UTC · [original](https://github.com/breadbbbb/rpf9-explorer/pull/21#issuecomment-7087275718) Thanks @⁠breadbbbb! Closing as superseded by #12 / e293917.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.