mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #353] [MERGED] make_game: document putting the package, port and work files on separate drives (OLD-7034, OLD-1434) #405
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#405
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
c682ed6make_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.pyalready supports this:--game(the package, read in place at run time throughgame_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(throughshader_path.txt) and never<work>/assets, and the free-space preflight already counts the--workdrive, 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,pipelineswith one--work, then--stages check,assetswith another; the second run does not rewriteshader_path.txt).Two regression tests in
tests/test_make_game_destinations.py(SeparateRootsTests) pin this down with the package,--outand--workin 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--workfolder; and an assets-only rerun with a different--workleavesgame_path.txt/shader_path.txtpointing 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 --helpon origin/main:--game,--out,--workalready 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
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.