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

Manually merged
github merged 1 commit from gh-pr/1921/head into gh-pr/1921/base 2026-11-26 10:11:14 +00:00
Owner

@⁠ShotTechOp on GitHub · 2026-11-25 15:52 UTC · original
ShotTechOp:docs/gbuffer-and-rpf-tools → main · +24 −0 · 2 files · 1 commits · merged 2026-11-25 21:27 UTC

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.

**@⁠ShotTechOp** on GitHub · 2026-11-25 15:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1921) `ShotTechOp:docs/gbuffer-and-rpf-tools` → `main` · +24 −0 · 2 files · 1 commits · merged 2026-11-25 21:27 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:11:13 +00:00
github manually merged commit 9f0c75b909 into gh-pr/1921/base 2026-11-26 10:11:14 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-25 17:08 UTC · original · approved these changes

Verified both documented tools exist and their CLIs match the added docs: python3 -I tools/gbuffer_census.py --help shows the dxbc positional argument plus --disasm/--payload-coverage; tools/classify_carve.py --help shows the usage. Both are stdlib-only and the text describes counts/layouts only, no game data. Docs-only, matches the repo's documentation conventions.

**@⁠MSedgeMC** on GitHub · 2026-11-25 17:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1921#pullrequestreview-6061780794) · **approved these changes** Verified both documented tools exist and their CLIs match the added docs: python3 -I tools/gbuffer_census.py --help shows the dxbc positional argument plus --disasm/--payload-coverage; tools/classify_carve.py --help shows the <carve-dir> usage. Both are stdlib-only and the text describes counts/layouts only, no game data. Docs-only, matches the repo's documentation conventions.
This discussion has been locked. Commenting is limited to contributors.
No description provided.