mirror of
https://github.com/gamingwithhomie/larp.git
synced 2026-12-06 07:38:36 +00:00
147 lines
7.8 KiB
Markdown
147 lines
7.8 KiB
Markdown
# Setup, Quick Start & Save Migration Guide
|
||
|
||
> **Important:** This repository contains **only** the open-source `larp.exe` compatibility layer (`GPL-3.0-or-later`). It contains **no** game files, assets, or proprietary SDK DLLs.
|
||
|
||
---
|
||
|
||
## 1. Prerequisites & Folder Layout
|
||
|
||
To run the game, you need **two things**:
|
||
1. **Your unpacked game folder** containing `game_scarlett_master.exe`, the `.rpf` archives (`appdata0.rpf`, `common.rpf`, `levels.rpf`, etc.), and `data\ttdb\graphics\ttdb_graphics.ttpf` (`34,411,776` bytes).
|
||
2. **The full Larp runtime folder** (which includes `configure.cmd`, `series-s.cmd`, `series-x.cmd`, `options.ini`, `bin\dlss\`, `bin\fsr\`, `bin\shader-replace\`, and `bin\SDL3.dll`).
|
||
|
||
> [!WARNING]
|
||
> **Do not run `larp.exe` in an empty folder!**
|
||
> Downloading *only* `larp.exe` from GitHub Releases without the base Larp folder structure will fail immediately with:
|
||
> `Error: no replacement shaders: none of these folders exists: ...\shader-replace`
|
||
> Always extract the base Larp package first, then copy the enhanced `larp.exe` into `Larp\bin\larp.exe` (overwriting the existing file).
|
||
|
||
Expected `Larp\` folder layout:
|
||
```text
|
||
Larp\
|
||
├── configure.cmd
|
||
├── series-s.cmd
|
||
├── series-x.cmd
|
||
├── options.ini
|
||
├── controls.ini (optional — see docs/controls.example.ini)
|
||
├── game-dir.txt (created by configure.cmd)
|
||
├── mods\ (optional — drop .dll / .asi trainers here)
|
||
├── mfg\ (optional — drop MFGUnlocker winmm.dll here)
|
||
└── bin\
|
||
├── larp.exe <-- replace this with the Enhanced release binary
|
||
├── launch.ps1
|
||
├── SDL3.dll
|
||
├── dlss\
|
||
├── fsr\
|
||
└── shader-replace\
|
||
```
|
||
|
||
---
|
||
|
||
## 2. Step-by-Step First Launch
|
||
|
||
### Step 1 — Point Larp to your game folder
|
||
Double-click **`configure.cmd`** inside your `Larp\` folder and select your unpacked game directory (the folder containing `game_scarlett_master.exe`). This writes `game-dir.txt`.
|
||
|
||
### Step 2 — Apply the NVIDIA Shader Heap Fix (NVIDIA GPUs only)
|
||
By default, NVIDIA's D3D12 driver limits the shader heap to **512 MiB**, which causes **`exit -2005270523` (`0x887A0005` Device Removed)** right after the loading screen.
|
||
|
||
With the Enhanced `larp.exe`, you **do not** need NVIDIA Profile Inspector. Open **Windows PowerShell as Administrator** and run **one** line (replace the path with your actual `Larp\bin\larp.exe` path):
|
||
|
||
- **For 12 GB+ VRAM cards** (RTX 3060 12GB, 3080 12GB, 3090, 4070+, 5070+, 5080, 5090):
|
||
```powershell
|
||
& "C:\path\to\Larp\bin\larp.exe" nv-profile --mb 2048
|
||
```
|
||
- **For 8–10 GB VRAM cards** (RTX 3060 Ti, 3070, 3070 Ti, 3080 10GB, 4060, 4060 Ti 8GB):
|
||
```powershell
|
||
& "C:\path\to\Larp\bin\larp.exe" nv-profile --mb 1024
|
||
```
|
||
|
||
*(You can check the current setting anytime without admin rights using `& "C:\path\to\Larp\bin\larp.exe" nv-profile`.)*
|
||
|
||
### Step 3 — Laptop / Dual-GPU Users: Force Dedicated GPU
|
||
If your PC has both an Intel/AMD integrated GPU and a dedicated NVIDIA/AMD GPU, Windows may route `larp.exe` to the integrated GPU, causing **`exit -1073740791` (`WaterTarget`)** on startup:
|
||
1. Open **Windows Settings > System > Display > Graphics**.
|
||
2. Click **Add desktop app** and select `Larp\bin\larp.exe`.
|
||
3. Set GPU preference to **High Performance** (your dedicated RTX / Radeon GPU).
|
||
|
||
### Step 4 — Choose `series-s.cmd` or `series-x.cmd` by VRAM
|
||
|
||
| GPU VRAM | Recommended Launcher | Recommended `options.ini` | Recommended `F10` Menu Settings |
|
||
|---|---|---|---|
|
||
| **16–32 GB** (RTX 4080/4090/5070 Ti/5080/5090, RX 7900/9070 XT) | `series-x.cmd` | `stream_budget = default` | DLSS/FSR Quality, Frame Gen 2x–4x, Reflex On |
|
||
| **12 GB** (RTX 3060 12GB, 4070, 5070, RX 6700 XT / 9060 XT) | `series-s.cmd` *(or `series-x.cmd` w/ budget)* | `stream_budget = 3000` (if Series X) | DLSS/FSR Quality or Balanced, Frame Gen 2x |
|
||
| **8–10 GB** (RTX 3070, 3070 Ti, 3080 10GB, 4060 Ti 8GB) | **`series-s.cmd`** | `stream_budget = 2500` | DLSS Quality or Balanced, Frame Gen 2x, Texture Detail Default/-1 |
|
||
| **6 GB** (RTX 2060, 3060 Laptop, 4050 Laptop — *tight!*) | **`series-s.cmd`** | `stream_budget = 1500` | DLSS Performance, Texture Detail -2, close browsers/overlays |
|
||
|
||
> [!NOTE]
|
||
> **Do I always launch via `series-s.cmd` or `series-x.cmd`?**
|
||
> Yes! Do **not** double-click `larp.exe` directly — `series-s.cmd` and `series-x.cmd` set `LARP_CACHE_DIR`, `LARP_DATA_DIR`, `LARP_DLSS_PATH`, and `LARP_FSR_PATH`. You can right-click `series-s.cmd` or `series-x.cmd` and click **Send to > Desktop (create shortcut)** for one-click launching.
|
||
>
|
||
> **Prefer separate one-click launchers for KB+M, Xbox, and PlayStation gamepads?** See [docs/launchers/README.md](launchers/README.md) for pure-ASCII `.bat` templates with matching on-screen prompts (`keys` / `xbox` / `playstation` + DualSense adaptive triggers).
|
||
|
||
### Step 5 — Wait for Shader Precompilation at Startup!
|
||
On first launch (or after clearing `Larp\cache`), **all keyboard, mouse, and controller input is intentionally held** until the pipeline compilation counter at the top of the window reaches 100%. Once `play.log` prints:
|
||
```text
|
||
pipelines: every queued one is made, the title gets its input
|
||
```
|
||
your controller, keyboard, and mouse will immediately work!
|
||
|
||
---
|
||
|
||
## 3. Updating GPU Drivers or `larp.exe` (Clearing Shader Cache)
|
||
|
||
Whenever you:
|
||
- Update your **NVIDIA or AMD GPU driver**, OR
|
||
- Update `larp.exe` to a version with shader translator fixes (such as the **AMD `amdxc64` crash fix**),
|
||
|
||
**delete the `Larp\cache` folder** before launching! Old cached DXIL/pipeline blobs will otherwise continue to be loaded and can cause stutters or repeat crashes. *(Deleting `Larp\cache` never touches your saves — saves live in `Larp\data`.)*
|
||
|
||
---
|
||
|
||
## 4. Migrating Game Saves (Darner / VIctory / FoxHound ↔ Larp)
|
||
|
||
Saves are **100% compatible** across Darner, VIctory, FoxHound, and Larp because they all use the same Xbox save container format — **as long as you copy BOTH `saves` and `storage` into the exact folder level**:
|
||
|
||
1. **Close the game completely.**
|
||
2. Open your source save directory:
|
||
- **Darner:** `%LOCALAPPDATA%\darner\data\7952987A\`
|
||
- **VIctory / FoxHound:** `%LOCALAPPDATA%\victory\data\7952987A\`
|
||
3. Copy **both** the **`saves`** folder and the **`storage`** folder.
|
||
4. Paste them directly into **`Larp\data\7952987A\`** so the final paths are:
|
||
- `Larp\data\7952987A\saves\`
|
||
- `Larp\data\7952987A\storage\`
|
||
|
||
> [!IMPORTANT]
|
||
> If you only copy `saves` without `storage`, or accidentally create an extra nested folder (`Larp\data\7952987A\7952987A\saves`), the game will treat the profile as empty, start from scratch, and overwrite it! Always keep a backup copy first.
|
||
|
||
---
|
||
|
||
## 5. Using `larp` Inside AmericasLauncher (Optional)
|
||
|
||
Larp does not require an external launcher, but if you want to build and launch this fork from **AmericasLauncher** (credit to `u/xI_AM_AFRICAx`):
|
||
|
||
1. Close **AmericasLauncher**.
|
||
2. Open `<AmericasLauncher>\Data\runners.json` in Notepad.
|
||
3. Add a comma `,` after the last `}` entry before the closing `]`, and add:
|
||
```json
|
||
{
|
||
"id": "larp",
|
||
"name": "Larp (Enhanced)",
|
||
"gitUrl": "https://github.com/gamingwithhomie/larp.git",
|
||
"dependencies": [
|
||
{ "name": "Git", "wingetId": "Git.Git", "check": "command:git" },
|
||
{ "name": "Visual Studio Build Tools (C++)", "wingetId": "Microsoft.VisualStudio.2022.BuildTools", "check": "vsbuildtools" },
|
||
{ "name": "Rust (rustup)", "wingetId": "Rustlang.Rustup", "check": "command:rustup" }
|
||
],
|
||
"buildCommands": [
|
||
"cargo build --release -p larp"
|
||
],
|
||
"exe": "target\\release\\larp.exe",
|
||
"launchArgs": "run \"{gameExe}\" --execute",
|
||
"notes": "Community Enhanced Larp fork.",
|
||
"recommended": {}
|
||
}
|
||
```
|
||
4. Note that when launching outside `Larp\bin\`, you must also point `LARP_SHADER_REPLACE`, `LARP_DLSS_PATH`, and `LARP_FSR_PATH` to the folders from the Larp runtime package.
|