make_game: document putting the package, port and work files on separate drives (OLD-7034, OLD-1434) #353

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

@⁠ItsMrDubey on GitHub · 2026-11-24 03:50 UTC · original
ItsMrDubey:make-game-split-dirs → main · +94 −0 · 2 files · 1 commits · merged 2026-11-24 17:38 UTC

Claimed in the coordination issue as: OLD-7034, OLD-1434 (#14)

What and why

Old #7034 asked to keep the large install files on a hard drive and what the game runs from on the SSD; old #1434 asked to choose the install location. make_game.py already supports this: --game (the package, read in place at run time through game_path.txt), --work (carved shaders and asset exports, hundreds of GB) and --out (the port: gta6rt.exe, path files, pipeline cache, overlay) each take any folder on any drive. The runtime reads only <work>/shaders/spirv (through shader_path.txt) and never <work>/assets, and the free-space preflight already counts the --work drive, the only place the large files go. No code change was needed.

What was missing is the documentation, so this adds a README "Disk space and drives" section: a table of the three folders with their flags, contents, the sizes the repo already measures (about 30 GB for shaders, about 370 GB for assets, MIN_FREE_GB) and what is read when playing, plus a two-run recipe that keeps the package, port and translated shaders on an SSD and puts the asset exports on a hard drive (--stages check,shaders,runtime,pipelines with one --work, then --stages check,assets with another; the second run does not rewrite shader_path.txt).

Two regression tests in tests/test_make_game_destinations.py (SeparateRootsTests) pin this down with the package, --out and --work in separate temporary roots (the work root on another drive when the repository's drive differs from the temp drive, as on the PC this was tested on, C: and D:): every stage gets the folder it was given and preflight counts the --work folder; and an assets-only rerun with a different --work leaves game_path.txt/shader_path.txt pointing at the first run's folders.

Tested

Windows 11, Python 3.12 (make_game.py needs 3.12+), no GPU needed.

  • python -I make_game.py --help on origin/main: --game, --out, --work already present.
  • python -I tests/test_make_game_destinations.py: 8 tests OK (6 before, 2 new; the new ones ran with work on D: and the rest on C:).
  • python -m pytest -q tests/test_make_game_destinations.py tests/test_make_game_platform.py tests/test_make_game_preflight.py tests/test_make_game_argparse.py tests/test_make_game_paths.py: 192 passed, 3 skipped.
  • tests/test_docs_encoding.py, test_docs_env_vars.py, test_docs_links.py, test_docs_table_rows.py, test_i18n_index.py: OK.
  • python -I scripts/check_no_game_data.py README.md tests/test_make_game_destinations.py: clean.

AI-assisted: yes

Checklist

  • 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: no translator rule
**@⁠ItsMrDubey** on GitHub · 2026-11-24 03:50 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/353) `ItsMrDubey:make-game-split-dirs` → `main` · +94 −0 · 2 files · 1 commits · merged 2026-11-24 17:38 UTC Claimed in the coordination issue as: OLD-7034, OLD-1434 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Old #7034 asked to keep the large install files on a hard drive and what the game runs from on the SSD; old #1434 asked to choose the install location. `make_game.py` already supports this: `--game` (the package, read in place at run time through `game_path.txt`), `--work` (carved shaders and asset exports, hundreds of GB) and `--out` (the port: `gta6rt.exe`, path files, pipeline cache, `overlay`) each take any folder on any drive. The runtime reads only `<work>/shaders/spirv` (through `shader_path.txt`) and never `<work>/assets`, and the free-space preflight already counts the `--work` drive, the only place the large files go. No code change was needed. What was missing is the documentation, so this adds a README "Disk space and drives" section: a table of the three folders with their flags, contents, the sizes the repo already measures (about 30 GB for shaders, about 370 GB for assets, `MIN_FREE_GB`) and what is read when playing, plus a two-run recipe that keeps the package, port and translated shaders on an SSD and puts the asset exports on a hard drive (`--stages check,shaders,runtime,pipelines` with one `--work`, then `--stages check,assets` with another; the second run does not rewrite `shader_path.txt`). Two regression tests in `tests/test_make_game_destinations.py` (`SeparateRootsTests`) pin this down with the package, `--out` and `--work` in separate temporary roots (the work root on another drive when the repository's drive differs from the temp drive, as on the PC this was tested on, C: and D:): every stage gets the folder it was given and preflight counts the `--work` folder; and an assets-only rerun with a different `--work` leaves `game_path.txt`/`shader_path.txt` pointing at the first run's folders. ### Tested Windows 11, Python 3.12 (make_game.py needs 3.12+), no GPU needed. - `python -I make_game.py --help` on origin/main: `--game`, `--out`, `--work` already present. - `python -I tests/test_make_game_destinations.py`: 8 tests OK (6 before, 2 new; the new ones ran with work on D: and the rest on C:). - `python -m pytest -q tests/test_make_game_destinations.py tests/test_make_game_platform.py tests/test_make_game_preflight.py tests/test_make_game_argparse.py tests/test_make_game_paths.py`: 192 passed, 3 skipped. - `tests/test_docs_encoding.py`, `test_docs_env_vars.py`, `test_docs_links.py`, `test_docs_table_rows.py`, `test_i18n_index.py`: OK. - `python -I scripts/check_no_game_data.py README.md tests/test_make_game_destinations.py`: clean. AI-assisted: yes ### Checklist - [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: no translator rule
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:54:57 +00:00
github manually merged commit c682ed642d into gh-pr/353/base 2026-11-26 08:55:00 +00:00
Author
Owner

@⁠Oliwettoo on GitHub · 2026-11-24 10:30 UTC · original

Checked the new README section against make_game.py: the defaults (--out Documents/Leonida, --work <out>/work), the stage names, MIN_FREE_GB (30 / 370) and the free-space check on the --work drive all match, and shader_path.txt is only written by the runtime stage, so the two-run SSD/HDD recipe holds. tests/test_make_game_destinations.py passes on current main. Nit: the existing "Low disk space" paragraph a few lines up says part of this again; one could point to the other. Ship. AI-assisted review.

**@⁠Oliwettoo** on GitHub · 2026-11-24 10:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/353#issuecomment-7128875839) Checked the new README section against `make_game.py`: the defaults (`--out` Documents/Leonida, `--work` `<out>/work`), the stage names, `MIN_FREE_GB` (30 / 370) and the free-space check on the `--work` drive all match, and `shader_path.txt` is only written by the runtime stage, so the two-run SSD/HDD recipe holds. `tests/test_make_game_destinations.py` passes on current `main`. Nit: the existing "Low disk space" paragraph a few lines up says part of this again; one could point to the other. Ship. AI-assisted review.
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 17:38 UTC · original

Merging.

Why merged: OLD-7034 / OLD-1434: a README section on putting the package, port and work folders on separate drives, plus 2 tests. Oliwettoo checked it against make_game.py (MIN_FREE_GB 30/370, the free-space check on the --work drive, shader_path written only by the runtime stage): "Ship".

Why it's good: test_make_game_destinations: 8 passed, and the consistency set with its 2 new tests: 568 passed. His optional nit (some overlap with the "Low disk space" paragraph) can be a follow-up.

Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 82a2aabcc. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 32950551e: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or build/CI changes.

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

**@⁠QemmHD** on GitHub · 2026-11-24 17:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/353#issuecomment-7139499522) Merging. **Why merged:** OLD-7034 / OLD-1434: a README section on putting the package, port and work folders on separate drives, plus 2 tests. Oliwettoo checked it against make_game.py (MIN_FREE_GB 30/370, the free-space check on the --work drive, shader_path written only by the runtime stage): "Ship". **Why it's good:** test_make_game_destinations: 8 passed, and the consistency set with its 2 new tests: 568 passed. His optional nit (some overlap with the "Low disk space" paragraph) can be a follow-up. Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 82a2aabcc. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 32950551e: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or build/CI changes. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.