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

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

📋 Pull Request Information

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

Base: main ← Head: make-game-split-dirs


📝 Commits (1)

  • c682ed6 make_game: README says which folder goes on which drive, and tests keep --game, --out and --work apart

📊 Changes

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

View changed files

📝 README.md (+23 -0)
📝 tests/test_make_game_destinations.py (+71 -0)

📄 Description

Claimed in the coordination issue as: OLD-7034, OLD-1434 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121328982)

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

🔄 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/353 **Author:** [@ItsMrDubey](https://github.com/ItsMrDubey) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `make-game-split-dirs` --- ### 📝 Commits (1) - [`c682ed6`](https://github.com/ubiquitarianism/leonida/commit/c682ed642d3c3df81bfb6378e83299dcf5e6b692) make_game: README says which folder goes on which drive, and tests keep --game, --out and --work apart ### 📊 Changes **2 files changed** (+94 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+23 -0) 📝 `tests/test_make_game_destinations.py` (+71 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-7034, OLD-1434 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121328982) ### 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:47 +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#405
No description provided.