[PR #1921] [MERGED] docs: document tools/gbuffer_census.py in gbuffer.md and tools/classify_carve.py in rpf.md (DOC-GBUFFER-AND-RPF-TOOLS) #1929

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1921
Author: @ShotTechOp
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta

Base: main ← Head: docs/gbuffer-and-rpf-tools


📝 Commits (1)

  • 9f0c75b docs: document tools/gbuffer_census.py in gbuffer.md and tools/classify_carve.py in rpf.md (DOC-GBUFFER-AND-RPF-TOOLS)

📊 Changes

2 files changed (+24 additions, -0 deletions)

View changed files

📝 docs/gbuffer.md (+13 -0)
📝 docs/rpf.md (+11 -0)

📄 Description

Claimed in #1608 as DOC-GBUFFER-AND-RPF-TOOLS.

What and why

Two standalone standard-library CLI tools in tools/ were completely undocumented across docs/:

  1. docs/gbuffer.md — adds section 4 documenting tools/gbuffer_census.py <work>\shaders\dxbc [--disasm <dir>] [--payload-coverage] (matching --help and its four measured cohorts, OSG1 signatures, exp mrtN modes, and --payload-coverage distinct-FSSM histogram).
  2. docs/rpf.md — documents tools/classify_carve.py <work>\carve under ## Carving (signature classes bink2, rbf0, respage, gpu-zerohdr, other:<hex> and <work>\carve\types.json output).

Verification (Windows 11 x64, Python 3.12.10, no GPU / no game data)

  • Verified CLI flags and output against python -I tools/gbuffer_census.py --help, python -I tools/classify_carve.py --help, python -I tests/test_gbuffer_census.py (2/2 OK), and python -I tests/test_classify_carve.py (33/33 OK, 1 skipped).
  • All 12 tests/test_docs_*.py suites passed (test_docs_cli_flags 4/4, test_docs_design_rows 5/5, test_docs_encoding 1/1, test_docs_env_vars 4/4, test_docs_links 16/16, test_docs_list_items 3/3, test_docs_pr_template 2/2, test_docs_python_deps 3/3, test_docs_repeated_lines 2/2, test_docs_repo_paths 3/3, test_docs_table_ids 2/2, test_docs_table_rows 2/2).
  • python -I scripts/check_no_game_data.py docs/gbuffer.md docs/rpf.md — clean.
  • git diff --check — clean.

AI-assisted: yes. Docs-only; no game data, no GPU required.


🔄 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/1921 **Author:** [@ShotTechOp](https://github.com/ShotTechOp) **Created:** 11/25/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@Andretuta](https://github.com/Andretuta) **Base:** `main` ← **Head:** `docs/gbuffer-and-rpf-tools` --- ### 📝 Commits (1) - [`9f0c75b`](https://github.com/ubiquitarianism/leonida/commit/9f0c75b909749506704709c6120dde3f9fb83f91) docs: document tools/gbuffer_census.py in gbuffer.md and tools/classify_carve.py in rpf.md (DOC-GBUFFER-AND-RPF-TOOLS) ### 📊 Changes **2 files changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/gbuffer.md` (+13 -0) 📝 `docs/rpf.md` (+11 -0) </details> ### 📄 Description Claimed in #1608 as `DOC-GBUFFER-AND-RPF-TOOLS`. ### What and why Two standalone standard-library CLI tools in `tools/` were completely undocumented across `docs/`: 1. **`docs/gbuffer.md`** — adds section 4 documenting `tools/gbuffer_census.py <work>\shaders\dxbc [--disasm <dir>] [--payload-coverage]` (matching `--help` and its four measured cohorts, `OSG1` signatures, `exp mrtN` modes, and `--payload-coverage` distinct-FSSM histogram). 2. **`docs/rpf.md`** — documents `tools/classify_carve.py <work>\carve` under `## Carving` (signature classes `bink2`, `rbf0`, `respage`, `gpu-zerohdr`, `other:<hex>` and `<work>\carve\types.json` output). ### Verification (Windows 11 x64, Python 3.12.10, no GPU / no game data) - Verified CLI flags and output against `python -I tools/gbuffer_census.py --help`, `python -I tools/classify_carve.py --help`, `python -I tests/test_gbuffer_census.py` (2/2 OK), and `python -I tests/test_classify_carve.py` (33/33 OK, 1 skipped). - All 12 `tests/test_docs_*.py` suites passed (`test_docs_cli_flags` 4/4, `test_docs_design_rows` 5/5, `test_docs_encoding` 1/1, `test_docs_env_vars` 4/4, `test_docs_links` 16/16, `test_docs_list_items` 3/3, `test_docs_pr_template` 2/2, `test_docs_python_deps` 3/3, `test_docs_repeated_lines` 2/2, `test_docs_repo_paths` 3/3, `test_docs_table_ids` 2/2, `test_docs_table_rows` 2/2). - `python -I scripts/check_no_game_data.py docs/gbuffer.md docs/rpf.md` — clean. - `git diff --check` — clean. AI-assisted: yes. Docs-only; no game data, no GPU required. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:19:26 +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#1929
No description provided.