[PR #214] [CLOSED] ASSET-430: Integrate merged rpf9-explorer fragment recovery fix #265

Closed
opened 2026-11-26 20:17:19 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/214
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/9949


📝 Commits (3)

  • 5c8eab9 ASSET-430: integrate upstream fragment recovery
  • 63a81cc ASSET-430: remove untraceable model category counts
  • 3fbb631 Merge upstream main into ASSET-430, preserving verified model pin

📊 Changes

9 files changed (+78 additions, -56 deletions)

View changed files

📝 README.md (+2 -2)
📝 docs/README.md (+1 -2)
📝 docs/character_models.md (+1 -1)
📝 docs/design.md (+2 -2)
📝 docs/models.md (+57 -33)
📝 docs/textures.md (+9 -10)
📝 docs/textures_arrays.md (+1 -1)
📝 docs/world.md (+4 -4)
📝 third_party/rpf9-explorer (+1 -1)

📄 Description

Carried over from old PR 9949 by guimsolutions in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9949, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
This branch conflicts with the current main and needs a rebase.
guimsolutions: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Summary

ASSET-430 (coordination #5581,
original claim).

Depends on: breadbbbb/rpf9-explorer#26 (merged).

  • Move the third_party/rpf9-explorer gitlink from e293917 to the upstream
    #26 merge commit 16134b0bdf3391bfe0424178da45d35afcef2bb5, reachable from
    explorer main. No decoder code is copied into Leonida.
  • Update docs/models.md and the related README, design, world, and texture
    pin references. Keep #3945's historical e293917 export measurements
    separate from the new readback-only re-count.
  • Earlier upstream large-mesh index handling recovered 64 of the 71
    historical levels.rpf rejects. #26 adds one valid fragment: its
    checksum-verified page map agrees with the system/graphics split, and the
    incomplete secondary palette stays unavailable. The other six lack
    validated drawable geometry; the separate texture-dictionary reject is
    unchanged.

Validation

Ten-archive model recovery Candidates Models Rejects
Leonida main pin e293917 270,819 382,781 72
Explorer immediately before #26 (4566315) 271,970 383,996 8
Merged pin 16134b0 271,970 383,997 7
  • The recovery comparison reads and decodes resources from their stored
    segments, without using the index cache or exporting OBJs. No readback or
    decode failures, and no changes to previously recovered entries, their
    segment boundaries, or their geometry counts. levels.rpf goes from
    343,327 to 343,642 models; only one is attributable to #26.
  • Both readers agreed on the added fragment, all four LODs decoded, and an
    independent framing and geometry check confirmed 17 primary-LOD meshes,
    5,091 vertices, and 7,156 triangles.
  • rpf9dump Release build with locked restore and all C# diagnostic groups
    passed. Ran the 22 synthetic cases and legacy-cache migration from the
    upstream PR head against the merged Core, plus the mixed raw/zlib tail
    smoke test. The upstream maintainer kept the decoder and did not land the
    synthetic harness in the merge; it was run from a scratch project.
  • Targeted Python asset, decoder-adjacent and docs tests: 394 passed,
    6 skipped; the final documentation checks and git diff --check passed.

Overlapping pins

  • #4687's 7ef5c51 pin is an ancestor of this one. Its decoder changes
    are included, so the older gitlink should not replace this pin if both PRs
    land. Preserve any independently measured documentation on rebase.
  • #4638's pin was merged and then reverted by bb75702bc; e293917
    remains on Leonida main. The proposed pin includes the upstream RbPlus
    fix. This PR leaves the pin change for maintainer review in light of that
    revert.
  • #4050's upstream C# history API and #4548's upstream LOD API are included.
    Their Leonida CLI wiring and tests are separate and should be kept, with
    older gitlinks dropped if this lands first. No other PR was edited or closed.

AI-assisted. No GPU required. No game data was included; the corpus checks
were local and read-only.

Previous contribution: #5674


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/214 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/9949` --- ### 📝 Commits (3) - [`5c8eab9`](https://github.com/ubiquitarianism/leonida/commit/5c8eab9c27b2675bcb9f1830f44cff2e68635386) ASSET-430: integrate upstream fragment recovery - [`63a81cc`](https://github.com/ubiquitarianism/leonida/commit/63a81ccc3291bdd50641297b11e11bc5b05bac71) ASSET-430: remove untraceable model category counts - [`3fbb631`](https://github.com/ubiquitarianism/leonida/commit/3fbb6314df099b2a86922ada5cd83dec7e818607) Merge upstream main into ASSET-430, preserving verified model pin ### 📊 Changes **9 files changed** (+78 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -2) 📝 `docs/README.md` (+1 -2) 📝 `docs/character_models.md` (+1 -1) 📝 `docs/design.md` (+2 -2) 📝 `docs/models.md` (+57 -33) 📝 `docs/textures.md` (+9 -10) 📝 `docs/textures_arrays.md` (+1 -1) 📝 `docs/world.md` (+4 -4) 📝 `third_party/rpf9-explorer` (+1 -1) </details> ### 📄 Description > Carried over from **old PR 9949** by `guimsolutions` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9949`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > This branch conflicts with the current `main` and needs a rebase. > `guimsolutions`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): ## Summary ASSET-430 ([coordination `#5581`](https://github.com/ItsNotRexed/Leonida/issues/5581), [original claim](https://github.com/ItsNotRexed/Leonida/issues/5156#issuecomment-7096354501)). Depends on: [`breadbbbb/rpf9-explorer#26`](https://github.com/breadbbbb/rpf9-explorer/pull/26) (**merged**). - Move the `third_party/rpf9-explorer` gitlink from `e293917` to the upstream `#26` merge commit `16134b0bdf3391bfe0424178da45d35afcef2bb5`, reachable from explorer `main`. No decoder code is copied into Leonida. - Update `docs/models.md` and the related README, design, world, and texture pin references. Keep `#3945`'s historical `e293917` export measurements separate from the new readback-only re-count. - Earlier upstream large-mesh index handling recovered 64 of the 71 historical `levels.rpf` rejects. `#26` adds **one** valid fragment: its checksum-verified page map agrees with the system/graphics split, and the incomplete secondary palette stays unavailable. The other six lack validated drawable geometry; the separate texture-dictionary reject is unchanged. ## Validation | Ten-archive model recovery | Candidates | Models | Rejects | | --- | ---: | ---: | ---: | | Leonida `main` pin `e293917` | 270,819 | 382,781 | 72 | | Explorer immediately before `#26` (`4566315`) | 271,970 | 383,996 | 8 | | Merged pin `16134b0` | 271,970 | 383,997 | 7 | - The recovery comparison reads and decodes resources from their stored segments, without using the index cache or exporting OBJs. No readback or decode failures, and no changes to previously recovered entries, their segment boundaries, or their geometry counts. `levels.rpf` goes from 343,327 to 343,642 models; only one is attributable to `#26`. - Both readers agreed on the added fragment, all four LODs decoded, and an independent framing and geometry check confirmed 17 primary-LOD meshes, 5,091 vertices, and 7,156 triangles. - `rpf9dump` Release build with locked restore and all C# diagnostic groups passed. Ran the 22 synthetic cases and legacy-cache migration from the upstream PR head against the **merged** Core, plus the mixed raw/zlib tail smoke test. The upstream maintainer kept the decoder and did not land the synthetic harness in the merge; it was run from a scratch project. - Targeted Python asset, decoder-adjacent and docs tests: 394 passed, 6 skipped; the final documentation checks and `git diff --check` passed. ## Overlapping pins - `#4687`'s `7ef5c51` pin is an ancestor of this one. Its decoder changes are included, so the older gitlink should not replace this pin if both PRs land. Preserve any independently measured documentation on rebase. - `#4638`'s pin was merged and then reverted by `bb75702bc`; `e293917` remains on Leonida `main`. The proposed pin includes the upstream RbPlus fix. This PR leaves the pin change for maintainer review in light of that revert. - `#4050`'s upstream C# history API and `#4548`'s upstream LOD API are included. Their Leonida CLI wiring and tests are separate and should be kept, with older gitlinks dropped if this lands first. No other PR was edited or closed. AI-assisted. No GPU required. No game data was included; the corpus checks were local and read-only. Previous contribution: `#5674` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:19 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#265
No description provided.