diff options
| author | Oreo <tony37160@hotmail.fr> | 2026-12-03 04:13:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-12-03 04:13:32 +0000 |
| commit | d9b618f10150f275c30088e4769c1acbf1d8d689 (patch) | |
| tree | 4adca9210af8f0a7d36d3e0f51b42d80caab33aa /docs/launcher.md | |
| parent | 516c9eaabfd9134ef971a9446d6b9fae715e1231 (diff) | |
| parent | aec7489e33fec2d8d5f73be1b294396a2019ee19 (diff) | |
launcher: follow-ups after #3182 (FG+RT greying, zip to clone, game folder, AMD, clearer choices, clear cache, Controls, FSR 3 files)
Diffstat (limited to 'docs/launcher.md')
| -rw-r--r-- | docs/launcher.md | 70 |
1 files changed, 59 insertions, 11 deletions
diff --git a/docs/launcher.md b/docs/launcher.md index 4c6e2bb12..c4803f8e8 100644 --- a/docs/launcher.md +++ b/docs/launcher.md | |||
| @@ -37,8 +37,9 @@ needs its line in every file, which `tests/test_leonida_launcher.py` checks (sam | |||
| 37 | - **Play**: three cards. | 37 | - **Play**: three cards. |
| 38 | - *Play*: the PLAY pill runs `powershell -NoProfile -ExecutionPolicy Bypass -File scripts\play-d3d12.ps1 -Game | 38 | - *Play*: the PLAY pill runs `powershell -NoProfile -ExecutionPolicy Bypass -File scripts\play-d3d12.ps1 -Game |
| 39 | <folder> -Data <folder>` plus the switches chosen in Settings (on Linux `scripts/play-linux.sh | 39 | <folder> -Data <folder>` plus the switches chosen in Settings (on Linux `scripts/play-linux.sh |
| 40 | <folder>/game_scarlett_master.exe`, with `--series-x` if chosen). Under it: the state, the game folder (or where | 40 | <folder>/game_scarlett_master.exe`, with `--series-x` if chosen). Under it: the state, the game folder (while none |
| 41 | to choose it), a one-line warning while the profile the next PLAY runs is Series X and the commit limit is under | 41 | holding the game is set, a box with **Choose game folder**, the same picker as Settings', saved at once; PLAY |
| 42 | without one opens that picker and starts once a folder with the game is chosen), a one-line warning while the profile the next PLAY runs is Series X and the commit limit is under | ||
| 42 | 64 GiB (as in Settings, below; that profile is the launcher's when it was changed since the last PLAY, otherwise | 43 | 64 GiB (as in Settings, below; that profile is the launcher's when it was changed since the last PLAY, otherwise |
| 43 | the F1 menu's `LEONIDA_MENU_CONSOLE` when the menu saved one, as the scripts decide it, below), the options PLAY | 44 | the F1 menu's `LEONIDA_MENU_CONSOLE` when the menu saved one, as the scripts decide it, below), the options PLAY |
| 44 | passes and what the in-game F1 menu saved (below). The state reads a | 45 | passes and what the in-game F1 menu saved (below). The state reads a |
| @@ -74,9 +75,9 @@ needs its line in every file, which `tests/test_leonida_launcher.py` checks (sam | |||
| 74 | this PC. It follows the profile control before Save, blocks nothing and changes no switch; when the F1 menu saved | 75 | this PC. It follows the profile control before Save, blocks nothing and changes no switch; when the F1 menu saved |
| 75 | another console, the profile's "F1 menu: Series X" line (below) says so. The page-file steps | 76 | another console, the profile's "F1 menu: Series X" line (below) says so. The page-file steps |
| 76 | and the measurements are in [d3d12/docs/windows-memory.md](../d3d12/docs/windows-memory.md). | 77 | and the measurements are in [d3d12/docs/windows-memory.md](../d3d12/docs/windows-memory.md). |
| 77 | - *Frame generation*: the mode, DLSS, FSR (`-FsrFrameGen`) or Off (`-NoFrameGen`); the multiplier of DLSS's, | 78 | - *Frame generation*: the mode, DLSS, FSR 3 (`-FsrFrameGen`, AMD's FSR 3 frame generation) or Off (`-NoFrameGen`); the multiplier of DLSS's, |
| 78 | Auto (nothing passed: the script's own choice, 2x on RTX 40 and 50 with NVIDIA's files) or 2x to 6x | 79 | Auto (nothing passed: the script's own choice, 2x on RTX 40 and 50 with NVIDIA's files) or 2x to 6x |
| 79 | (`-FrameGen n`, the range `play-nvidia.ps1` takes), passed with the DLSS mode only (Off wins over FSR, FSR over | 80 | (`-FrameGen n`, the range `play-nvidia.ps1` takes), passed with the DLSS mode only (Off wins over FSR 3, FSR 3 over |
| 80 | the multiplier). 3x and up are marked RTX 50: the scripts pass any of them whatever the card, and the runtime | 81 | the multiplier). 3x and up are marked RTX 50: the scripts pass any of them whatever the card, and the runtime |
| 81 | makes no more than the card does (`fg.rs` asks Streamline for its most), so an RTX 40 makes 2x and logs that it | 82 | makes no more than the card does (`fg.rs` asks Streamline for its most), so an RTX 40 makes 2x and logs that it |
| 82 | was asked for more; a card without DLSS frame generation starts none. On Series X a multiplier also brings DLSS | 83 | was asked for more; a card without DLSS frame generation starts none. On Series X a multiplier also brings DLSS |
| @@ -137,13 +138,20 @@ needs its line in every file, which `tests/test_leonida_launcher.py` checks (sam | |||
| 137 | A control another choice makes pointless is greyed (its value is kept, and comes back when that choice is undone): | 138 | A control another choice makes pointless is greyed (its value is kept, and comes back when that choice is undone): |
| 138 | frame generation's mode, multiplier and limit with hardware ray tracing on the Series X profile under 20 GB of | 139 | frame generation's mode, multiplier and limit with hardware ray tracing on the Series X profile under 20 GB of |
| 139 | video memory unless `LEONIDA_FG_WITH_RT=1`, and with `LEONIDA_FG_WITH_RT=0` (see *Frame generation* above; a note | 140 | video memory unless `LEONIDA_FG_WITH_RT=1`, and with `LEONIDA_FG_WITH_RT=0` (see *Frame generation* above; a note |
| 140 | gives the reason), the frame generation multiplier with FSR or Off, the DLSS mode with DLSS off, the resolution | 141 | gives the reason), the frame generation multiplier with FSR 3 or Off, the DLSS mode with DLSS off, the resolution |
| 141 | with a DLSS mode, the frame limit with frame generation off, how the picture fills the window while the shape is | 142 | with a DLSS mode, the frame limit with frame generation off, how the picture fills the window while the shape is |
| 142 | Default, and shader preparation, kept on, while every pipeline is precompiled. Without an NVIDIA card (none whose | 143 | Default, and shader preparation, kept on, while every pipeline is precompiled. Without an NVIDIA card (none whose |
| 143 | `DriverDesc` has "NVIDIA" among this PC's, or the card chosen in *Graphics card* is not one) DLSS, the DLSS mode, | 144 | `DriverDesc` has "NVIDIA" among this PC's, or the card chosen in *Graphics card* is not one) DLSS, the DLSS mode, |
| 144 | the DLSS button of frame generation's mode, the multiplier and Smooth Motion are greyed, with the muted note "DLSS | 145 | the DLSS button of frame generation's mode, the multiplier and Smooth Motion are greyed, with the muted note "DLSS |
| 145 | and Smooth Motion need an NVIDIA RTX card"; FSR stays, and a saved DLSS choice is kept (shown greyed) until another | 146 | and Smooth Motion need an NVIDIA RTX card"; FSR 3 stays. PLAY then passes them off (`for_card`: `-NoDlss`, no DLSS |
| 146 | is clicked. Off Windows, or when no card is read, nothing is greyed for the card. | 147 | mode, no `-FrameGen` multiplier, no `-SmoothMotion`; the options line on Play says so), the two switches are drawn |
| 148 | off, and the Resolution stays live (one above the Series S's 1080 lines that a DLSS mode had left out stays out); | ||
| 149 | `-CardMask NoDlss,NoFrameGen,SmoothMotion` goes with it (`card_mask`): play-nvidia.ps1 leaves the F1 menu's saved | ||
| 150 | DLSS, DLSS frame generation and Smooth Motion out of that start only, and its file keeps them for a later start on | ||
| 151 | an NVIDIA card (`-Chosen` would remove them from it); the menu's FSR 3 frame generation stays. With -Adapter naming a | ||
| 152 | card on a PC with several, play-nvidia.ps1's automatic DLSS frame generation judges that card. The saved | ||
| 153 | choices are kept and come back when an NVIDIA card is chosen. Off | ||
| 154 | Windows, or when no card is read, nothing is greyed for the card. | ||
| 147 | On Linux only the game folder and Series X are used. | 155 | On Linux only the game folder and Series X are used. |
| 148 | Under frame generation, DLSS, ray tracing, the profile and Smooth Motion a muted line "F1 menu: <value>" says that | 156 | Under frame generation, DLSS, ray tracing, the profile and Smooth Motion a muted line "F1 menu: <value>" says that |
| 149 | the F1 menu's file holds a value for the same setting. | 157 | the F1 menu's file holds a value for the same setting. |
| @@ -153,6 +161,18 @@ needs its line in every file, which `tests/test_leonida_launcher.py` checks (sam | |||
| 153 | Leonida commit and its date, each graphics card with its driver (NVIDIA's own number, 621.47, from the Windows one, | 161 | Leonida commit and its date, each graphics card with its driver (NVIDIA's own number, 621.47, from the Windows one, |
| 154 | 32.0.16.2147), Python, Tk and Windows versions, the RAM and Windows' commit limit, the switches and variables PLAY | 162 | 32.0.16.2147), Python, Tk and Windows versions, the RAM and Windows' commit limit, the switches and variables PLAY |
| 155 | passes, and whether the game folder holds the game. No folder names: they can carry the user's name. | 163 | passes, and whether the game folder holds the game. No folder names: they can carry the user's name. |
| 164 | - **Controls**: the keyboard and mouse binds of the D3D12 runtime's stand-in pad, `LEONIDA_KBM_BINDS` | ||
| 165 | ([gameinput.md](gameinput.md), "Your own binds"; the runtime reads it once #3276 is in). The | ||
| 166 | main default keys in short, then the player's binds as rows: where (Both, On foot, In a vehicle), the key | ||
| 167 | (its button reads "Press a key…" and takes the next key or the left or right mouse button; Esc cancels; F1, | ||
| 168 | F3, F4, F8, F9, Alt, Caps Lock and keys the runtime cannot read are refused with a red line) and the pad input | ||
| 169 | (Cross, Circle, Square, Triangle, the shoulders, triggers, stick clicks and pushes, the d-pad, View, Menu, or | ||
| 170 | Nothing, which frees the key). **Add bind**, a cross to remove a row, **Reset to defaults** after a | ||
| 171 | confirmation. Every change is saved at once as `kbm_binds`, in kbm.rs's syntax (`scope:key=action;...`), and | ||
| 172 | PLAY passes it to `-More` (`extra_variables`); a `LEONIDA_KBM_BINDS` in Settings' advanced options wins, and | ||
| 173 | the page says so. Entries of a saved value the page cannot read are kept as they are, shown, and written back after the | ||
| 174 | rows when it saves (adding a row keeps them). Copy my info lists it | ||
| 175 | with the other variables. | ||
| 156 | - **Mods**: the `mods\*\mod.json` of the mods folder (this repository's `mods` unless changed), with the enabled flag | 176 | - **Mods**: the `mods\*\mod.json` of the mods folder (this repository's `mods` unless changed), with the enabled flag |
| 157 | written back as the mod manager does it (`tools/leonida_mods.py`); a button opens that manager. | 177 | written back as the mod manager does it (`tools/leonida_mods.py`); a button opens that manager. |
| 158 | - **Saves**: the D3D12 runtime's saves under the data folder, `<data>\data\7952987A\saves\<user id>\<configuration>\<Name>~<FNV-1a 64 | 178 | - **Saves**: the D3D12 runtime's saves under the data folder, `<data>\data\7952987A\saves\<user id>\<configuration>\<Name>~<FNV-1a 64 |
| @@ -182,12 +202,40 @@ needs its line in every file, which `tests/test_leonida_launcher.py` checks (sam | |||
| 182 | Updates card (`git log --first-parent HEAD..@{u}`) with an **Update Mandy** button. Update runs `git pull --ff-only` | 202 | Updates card (`git log --first-parent HEAD..@{u}`) with an **Update Mandy** button. Update runs `git pull --ff-only` |
| 183 | (it stops, changing nothing, if local changes or another branch are in the way), then, on Windows, rebuilds the | 203 | (it stops, changing nothing, if local changes or another branch are in the way), then, on Windows, rebuilds the |
| 184 | runtime when `d3d12/` changed; on Linux it only says that `d3d12/` changed, and the rebuild is yours to run | 204 | runtime when `d3d12/` changed; on Linux it only says that `d3d12/` changed, and the rebuild is yours to run |
| 185 | ([linux.md](linux.md#the-runtime-under-wine-or-proton)). A copy downloaded as a zip has no `.git`, and updating | 205 | ([linux.md](linux.md#the-runtime-under-wine-or-proton)). A missing git, a failed check (with git's reason) or a |
| 186 | means a `git clone` of the repository instead. A zip copy, a missing git, a failed check (with git's reason) or a | ||
| 187 | branch that follows no upstream is shown in the Updates card and the rail instead of an update. | 206 | branch that follows no upstream is shown in the Updates card and the rail instead of an update. |
| 207 | - **A copy downloaded as a zip** has no `.git`. Its Updates card says so, with **Update Mandy**, which makes the | ||
| 208 | folder a clone in place (`zip_to_clone`): `git init`, `origin` set to `https://github.com/ProjectLeonida/mandy.git`, | ||
| 209 | a fetch of `main`, a local `main` following it, and the index set to it with the files left as they are. Every | ||
| 210 | tracked file that differs (the zip's older version or your own edit: they cannot be told apart) is then copied to | ||
| 211 | `%LOCALAPPDATA%\Leonida\zip-copy-backup-<date>-<time>`, and `main`'s version is checked out over the tracked files. | ||
| 212 | Files git does not track (builds under `d3d12\target`, caches, `game_path.txt`, anything you added) are left | ||
| 213 | alone. Then the runtime is rebuilt when `d3d12/` changed, as above. If a step fails, the new `.git` is removed, so | ||
| 214 | the next start finds a zip copy again, never half a clone. From then on Update is the `git pull` above. | ||
| 215 | Without Git, the question before the update says that Git is installed first: on Windows with | ||
| 216 | `winget install --id Git.Git -e --source winget --silent` (Windows may ask for permission). The launcher then finds | ||
| 217 | `git.exe` where Git for Windows puts it, since its own PATH is older than the install. Without winget, and on Linux | ||
| 218 | or macOS, it says how to install Git and changes nothing. From a console, | ||
| 219 | `python -I tools\leonida_launcher.py --update <folder>` asks before installing; `--install-git` answers yes. | ||
| 188 | - **Tools**: update Leonida (as above), fetch NVIDIA's DLSS files (`d3d12\Get-NVIDIA-DLSS.cmd`, after a confirmation: about 70 MB from NVIDIA's | 220 | - **Tools**: update Leonida (as above), fetch NVIDIA's DLSS files (`d3d12\Get-NVIDIA-DLSS.cmd`, after a confirmation: about 70 MB from NVIDIA's |
| 189 | GitHub), rebuild the runtime (`d3d12\scripts\build-nvidia.ps1`), open the logs folder | 221 | GitHub), rebuild the runtime (`d3d12\scripts\build-nvidia.ps1`), clear the shader cache (the data folder's `cache-2`, |
| 190 | (`%LOCALAPPDATA%\Leonida\logs`) and the screenshots folder. The two scripts are Windows only. | 222 | `LEONIDA_CACHE_DIR` of `scripts\play-d3d12.ps1`: translated shaders, pipelines and the title's prepared images; after a |
| 223 | confirmation that gives its size, refused while the game runs; the saves in `data\` are not touched and the next start | ||
| 224 | makes it again), fetch AMD's FidelityFX files (`d3d12\scripts\get-amd-fidelityfx.ps1`, also | ||
| 225 | `d3d12\Get-AMD-FidelityFX.cmd`, after a confirmation: about 29 MB, the two signed DLLs FSR 3 frame generation needs, | ||
| 226 | `amd_fidelityfx_loader_dx12.dll` and `amd_fidelityfx_framegeneration_dx12.dll`, from FidelityFX SDK v2.4.0's | ||
| 227 | `Kits/FidelityFX/signedbin` on AMD's GitHub into `d3d12\amd-sdk\FidelityFX\bin`, the folder `play-nvidia.ps1` reads; each | ||
| 228 | kept only with its pinned size and git blob hash and a valid signature of Advanced Micro Devices, otherwise nothing is | ||
| 229 | kept), open the logs folder (`%LOCALAPPDATA%\Leonida\logs`) and the screenshots folder. The scripts are Windows only. | ||
| 230 | - **The files the card needs, by itself** (Settings > Picture > *Download the files my card needs*, on by default): at | ||
| 231 | PLAY, before the game, `needed_files` names the fetches the card the game runs on lacks (`card_facts`, the chosen | ||
| 232 | *Graphics card* or every card): NVIDIA's DLSS and Streamline files on an NVIDIA RTX card, and AMD's FidelityFX DLLs on | ||
| 233 | a card DLSS frame generation does not run on (not an RTX 40 or 50 by `play-nvidia.ps1`'s own test of the card's name). | ||
| 234 | They run one after another in the Output panel ("Fetching the files your card needs"), then the game starts, also | ||
| 235 | when one failed (the script starts without DLSS or FSR 3 then, and says so). Once the files are there nothing runs | ||
| 236 | again; with the setting off, or no card read, or off Windows, nothing at all. Stop during a fetch ends the game's | ||
| 237 | start too. Under Frame generation, FSR 3 chosen without AMD's files gives a note: PLAY downloads them first, or, with | ||
| 238 | the setting off, where Tools fetches them. | ||
| 191 | - **About**: what the port is, that it runs your own copy, the credits (see `d3d12/README.md`) and the licence. | 239 | - **About**: what the port is, that it runs your own copy, the credits (see `d3d12/README.md`) and the licence. |
| 192 | 240 | ||
| 193 | ## The launcher and the F1 menu: which one wins | 241 | ## The launcher and the F1 menu: which one wins |