docs(build): list the runtime files a source build needs beside larp.exe #584

Open
github-bot wants to merge 1 commit from github-bot/gh-584 into main AGit
Owner

@⁠eipastel on GitHub · 2026-12-06 03:15 UTC · original
eipastel:docs/build-from-source-runtime-files → main · +15 −1 · 2 files · 1 commits · open

Fixes #583.

"Building from Source" in README.md now says what target\release\larp.exe needs to run straight from the build:

  • the Agility SDK files in D3D12\ beside larp.exe (nuget Microsoft.Direct3D.D3D12 1.620.2), and what larp does without them;
  • LARP_SHADER_REPLACE pointing at target\shader-replace, since the exe does not look there by itself and shaders\replace holds sources that are all refused;
  • DLSS (LARP_UPSCALER=dlss, LARP_DLSS_PATH) on NVIDIA, since without an upscaler the Series S scene is black (#81);
  • SDL3.dll for DualShock 4 / DualSense.

docs/environment-variables.md: the LARP_SHADER_REPLACE row names the folder to use from a source build.

Related: #586 makes target elease\larp.exe find target\shader-replace by itself. If it merges first, the LARP_SHADER_REPLACE step here is only needed for other layouts; I'll update this PR to match.

Root cause

The section stopped at "copy larp.exe into Larp\bin\", which only works with the release package's folder around it.

How it was checked

Each statement is from a run of main 459db13 on this machine (RTX 5060, driver 621.01, Windows 11 build 26300), --console series-s:

  • no D3D12\ beside the exe: D3D12 runtime: asking Windows for SDK version 616 (no D3D12\D3D12Core.dll beside larp.exe), D3D12 device made, buffer views by byte offset ... device15=false. I only ran it for 120 s (to the menu), so the docs do not claim a crash.
  • LARP_SHADER_REPLACE unset, exe in target\release: Error: no replacement shaders: none of these folders exists: ...\target\release\shader-replace, ...\shader-replace.
  • LARP_SHADER_REPLACE=...\shaders\replace: usable=0 ... refused=157; ...\target\shader-replace: usable=85 ... refused=0.
  • No upscaler vs LARP_UPSCALER=dlss + LARP_DLSS_PATH: black window vs picture (numbers in #81).
  • SDL3.dll: the log line host pads: from XInput, which sees no DualShock 4 or DualSense: SDL3.dll not loaded from ....

Docs only: no cargo fmt / clippy / test run for this PR.

Written with AI assistance (Claude Code).

**@⁠eipastel** on GitHub · 2026-12-06 03:15 UTC · [original](https://github.com/gamingwithhomie/larp/pull/584) `eipastel:docs/build-from-source-runtime-files` → `main` · +15 −1 · 2 files · 1 commits · open Fixes #583. "Building from Source" in `README.md` now says what `target\release\larp.exe` needs to run straight from the build: - the Agility SDK files in `D3D12\` beside `larp.exe` (nuget `Microsoft.Direct3D.D3D12` 1.620.2), and what larp does without them; - `LARP_SHADER_REPLACE` pointing at `target\shader-replace`, since the exe does not look there by itself and `shaders\replace` holds sources that are all refused; - DLSS (`LARP_UPSCALER=dlss`, `LARP_DLSS_PATH`) on NVIDIA, since without an upscaler the Series S scene is black (#81); - `SDL3.dll` for DualShock 4 / DualSense. `docs/environment-variables.md`: the `LARP_SHADER_REPLACE` row names the folder to use from a source build. Related: #586 makes `target elease\larp.exe` find `target\shader-replace` by itself. If it merges first, the `LARP_SHADER_REPLACE` step here is only needed for other layouts; I'll update this PR to match. ## Root cause The section stopped at "copy `larp.exe` into `Larp\bin\`", which only works with the release package's folder around it. ## How it was checked Each statement is from a run of `main` 459db13 on this machine (RTX 5060, driver 621.01, Windows 11 build 26300), `--console series-s`: - no `D3D12\` beside the exe: `D3D12 runtime: asking Windows for SDK version 616 (no D3D12\D3D12Core.dll beside larp.exe)`, `D3D12 device made`, `buffer views by byte offset ... device15=false`. I only ran it for 120 s (to the menu), so the docs do not claim a crash. - `LARP_SHADER_REPLACE` unset, exe in `target\release`: `Error: no replacement shaders: none of these folders exists: ...\target\release\shader-replace, ...\shader-replace`. - `LARP_SHADER_REPLACE=...\shaders\replace`: `usable=0 ... refused=157`; `...\target\shader-replace`: `usable=85 ... refused=0`. - No upscaler vs `LARP_UPSCALER=dlss` + `LARP_DLSS_PATH`: black window vs picture (numbers in https://git.gtahub.st/github/gamingwithhomie--larp/issues/81). - `SDL3.dll`: the log line `host pads: from XInput, which sees no DualShock 4 or DualSense: SDL3.dll not loaded from ...`. Docs only: no `cargo fmt` / `clippy` / `test` run for this PR. Written with AI assistance (Claude Code).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 03:17:45 +00:00
Author
Owner

@⁠eipastel on GitHub · 2026-12-06 03:22 UTC · original

Note: #586 makes target\release\larp.exe find target\shader-replace by itself. If it is merged first, the LARP_SHADER_REPLACE bullet here can be shortened to "only needed for another folder; never shaders\replace"; I can update this PR either way.

Written with AI assistance (Claude Code).

**@⁠eipastel** on GitHub · 2026-12-06 03:22 UTC · [original](https://github.com/gamingwithhomie/larp/pull/584#issuecomment-7450637179) Note: #586 makes `target\release\larp.exe` find `target\shader-replace` by itself. If it is merged first, the `LARP_SHADER_REPLACE` bullet here can be shortened to "only needed for another folder; never `shaders\replace`"; I can update this PR either way. Written with AI assistance (Claude Code).
Author
Owner

@⁠wagney on GitHub · 2026-12-06 03:37 UTC · original · reviewed

Reviewed the doc updates in \README.md\ and \docs/environment-variables.md. All paths and environment variables (\D3D12\D3D12Core.dll, \ arget\shader-replace, \LARP_SHADER_REPLACE, \LARP_UPSCALER=dlss, \LARP_DLSS_PATH, \SDL3.dll) match what the runtime expects when running directly from \ arget\release\larp.exe. Very helpful addition for people building from source.

**@⁠wagney** on GitHub · 2026-12-06 03:37 UTC · [original](https://github.com/gamingwithhomie/larp/pull/584#pullrequestreview-6208118261) · **reviewed** Reviewed the doc updates in \README.md\ and \docs/environment-variables.md\. All paths and environment variables (\D3D12\\D3D12Core.dll\, \ arget\\shader-replace\, \LARP_SHADER_REPLACE\, \LARP_UPSCALER=dlss\, \LARP_DLSS_PATH\, \SDL3.dll\) match what the runtime expects when running directly from \ arget\\release\\larp.exe\. Very helpful addition for people building from source.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/584/head:github-bot/gh-584'
git switch 'github-bot/gh-584'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-584'
git switch 'github-bot/gh-584'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-584'
git switch 'github-bot/gh-584'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-584'
git switch 'main'
git merge --squash 'github-bot/gh-584'
git switch 'main'
git merge --ff-only 'github-bot/gh-584'
git switch 'main'
git merge 'github-bot/gh-584'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.