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

Manually merged
github merged 1 commit from gh-pr/745/head into gh-pr/745/base 2026-11-26 09:19:08 +00:00
Owner

@⁠aslan2142 on GitHub · 2026-11-24 13:20 UTC · original
aslan2142:build1368-ttdb-name-streams → main · +38 −0 · 1 files · 1 commits · merged 2026-11-24 16:38 UTC

Claimed in the coordination issue as: OLD-7410 #14

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).

**@⁠aslan2142** on GitHub · 2026-11-24 13:20 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/745) `aslan2142:build1368-ttdb-name-streams` → `main` · +38 −0 · 1 files · 1 commits · merged 2026-11-24 16:38 UTC Claimed in the coordination issue as: OLD-7410 https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 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).
BUILD-1368 asked to index two name streams, a `nameTable` of 64-byte
records and a `nameData` of ASCII strings. Measured over all 57 pools,
neither exists: every byte of a pool is header, chunk table, ETPF
descriptors, u64 asset keys, trailing metadata that reads as uniform
random bytes, zero padding or texture data, and the virtual space has
no range left for another stream. The names do not occur in the pools
or in the inflated streams of common.rpf, script.rpf and data.rpf
either. Counts only; the trailing bytes stay unread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:19:07 +00:00
github manually merged commit 5d883298ed into gh-pr/745/base 2026-11-26 09:19:08 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:26 UTC · original · approved these changes

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** on GitHub · 2026-11-24 13:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/745#pullrequestreview-6040004179) · **approved these changes** 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.
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 13:30 UTC · original · approved these changes

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.
**@⁠abnalstlll-byte** on GitHub · 2026-11-24 13:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/745#pullrequestreview-6040065990) · **approved these changes** 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.