OLD-7410: restore old upstream PR 7410 - docs/textures.md: the TTPF pools hold no name streams (BUILD-1368) #745

Merged
aslan2142 merged 1 commit from upstream-pr/745 into main 2026-11-24 16:38:44 +00:00
aslan2142 commented 2026-11-24 13:20:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-24T13:20:46Z.


Claimed in the coordination issue as: OLD-7410 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132649029

Restoration of my original pull request, old upstream PR 7410 in ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at 2d73c242fd; the commit applied cleanly and its text is unchanged, since the container table it follows in docs/textures.md is the same on main.

What and why

BUILD-1368 asked to index two name streams in the TTPF pools, a nameTable of 64-byte records and a nameData of ASCII strings. Neither exists. This adds a "No name streams in the pools" section to docs/textures.md that records the measurement, so nobody else goes looking for them:

  • Every byte of a pool is accounted for (all 57 pools): RDS5 header and chunk table, ETPF header, descriptors, u64 asset keys, trailing metadata, zero padding and texture data. There is no region left for a name stream.
  • Asset keys: 357,115, unique within each pool (57 / 57).
  • Zero padding: 0 non-zero bytes in 57 / 57 pools.
  • Virtual space: chunk 0's virtual offset equals the lowest texture base in 57 / 57 pools. Texture bases rise strictly in record order (0 duplicates, 0 unmapped), so no range is left for another stream.
  • Trailing metadata: 13,973,528 bytes in all, and it reads as uniform random bytes.
    • It has 7.87–8.00 bits/byte in each of the 52 pools with at least 1 KiB of it.
    • Zero-byte and printable-run counts match what uniform random bytes give.
    • It has 0 repeated aligned 16-byte blocks, and zlib and raw deflate do not inflate it.
    • What it holds is still a hypothesis (per-texture digests or encrypted data). It is left unread.
  • The stream names occur nowhere: 0 hits in the 57 pool files (57.94 GiB) or in the inflated streams of common.rpf (954), script.rpf (1,057) and data.rpf (28,509).
  • How textures are linked: by their u64 asset key, which is how models and materials reference them and how exported textures are named.

Counts and format facts only. No names, strings or bytes from the game's files.

Tested

  • python -I tests/test_docs_<name>.py for all 12 tests/test_docs_*.py files: 47 tests, all OK.
  • git diff --check: clean.
  • python -I scripts/check_no_game_data.py docs/textures.md: exit 0.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: docs only)

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5472936698 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/745). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-24T13:20:46Z. --- Claimed in the coordination issue as: OLD-7410 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132649029 Restoration of my original pull request, old upstream PR 7410 in `ItsNotRexed/Leonida`, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at 2d73c242fddfe26d57b52ee150704e6c3b23cff4; the commit applied cleanly and its text is unchanged, since the container table it follows in `docs/textures.md` is the same on main. ### What and why BUILD-1368 asked to index two name streams in the TTPF pools, a `nameTable` of 64-byte records and a `nameData` of ASCII strings. Neither exists. This adds a "No name streams in the pools" section to `docs/textures.md` that records the measurement, so nobody else goes looking for them: - **Every byte of a pool is accounted for** (all 57 pools): RDS5 header and chunk table, ETPF header, descriptors, u64 asset keys, trailing metadata, zero padding and texture data. There is no region left for a name stream. - **Asset keys:** 357,115, unique within each pool (57 / 57). - **Zero padding:** 0 non-zero bytes in 57 / 57 pools. - **Virtual space:** chunk 0's virtual offset equals the lowest texture base in 57 / 57 pools. Texture bases rise strictly in record order (0 duplicates, 0 unmapped), so no range is left for another stream. - **Trailing metadata:** 13,973,528 bytes in all, and it reads as uniform random bytes. - It has 7.87–8.00 bits/byte in each of the 52 pools with at least 1 KiB of it. - Zero-byte and printable-run counts match what uniform random bytes give. - It has 0 repeated aligned 16-byte blocks, and zlib and raw deflate do not inflate it. - What it holds is still a hypothesis (per-texture digests or encrypted data). It is left unread. - **The stream names occur nowhere:** 0 hits in the 57 pool files (57.94 GiB) or in the inflated streams of `common.rpf` (954), `script.rpf` (1,057) and `data.rpf` (28,509). - **How textures are linked:** by their u64 asset key, which is how models and materials reference them and how exported textures are named. Counts and format facts only. No names, strings or bytes from the game's files. ### Tested - `python -I tests/test_docs_<name>.py` for all 12 `tests/test_docs_*.py` files: 47 tests, all OK. - `git diff --check`: clean. - `python -I scripts/check_no_game_data.py docs/textures.md`: exit 0. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: docs only) AI-assisted (Claude Code, Claude Opus 5.5).
abnalstlll-byte commented 2026-11-24 13:26:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:26:57Z.

Review: APPROVED


LGTM. Thoroughly measured documentation in docs/textures.md: clarifies that TTPF pools contain no name streams across all 57 pools and details the layout of descriptors, 64-bit asset keys, and trailing metadata.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6040004179 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/745#pullrequestreview-6040004179). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:26:57Z. **Review:** APPROVED --- LGTM. Thoroughly measured documentation in docs/textures.md: clarifies that TTPF pools contain no name streams across all 57 pools and details the layout of descriptors, 64-bit asset keys, and trailing metadata.
abnalstlll-byte commented 2026-11-24 13:30:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:30:46Z.

Review: APPROVED


Audited and verified. Clean-room compliant.

  • Exhaustive documentation in docs/textures.md demonstrating that TTPF pools contain no nameTable or nameData streams across all 57 pools.
  • Verifies virtual address layout continuity and key-based linkage.
<!-- greyfinch-sync:ubiquitarianism/leonida:review:6040065990 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/745#pullrequestreview-6040065990). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:30:46Z. **Review:** APPROVED --- Audited and verified. Clean-room compliant. - Exhaustive documentation in docs/textures.md demonstrating that TTPF pools contain no nameTable or nameData streams across all 57 pools. - Verifies virtual address layout continuity and key-based linkage.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!745
No description provided.