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

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/745
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: build1368-ttdb-name-streams


📝 Commits (1)

  • 5d88329 docs/textures.md: the TTPF pools hold no name streams (BUILD-1368)

📊 Changes

1 file changed (+38 additions, -0 deletions)

View changed files

📝 docs/textures.md (+38 -0)

📄 Description

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


🔄 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/745 **Author:** [@aslan2142](https://github.com/aslan2142) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `build1368-ttdb-name-streams` --- ### 📝 Commits (1) - [`5d88329`](https://github.com/ubiquitarianism/leonida/commit/5d883298edd31cf2b2cca61c0eb288d1322298c3) docs/textures.md: the TTPF pools hold no name streams (BUILD-1368) ### 📊 Changes **1 file changed** (+38 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/textures.md` (+38 -0) </details> ### 📄 Description 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:02 +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#783
No description provided.