Integrate custom Mandy launcher with upstream runtime #3205

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

@⁠aldidigimap-pixel on GitHub · 2026-12-02 19:10 UTC · original
aldidigimap-pixel:main → main · +1784 −46 · 4 files · 1 commits · open

Claimed in the coordination issue as: <CLAIM-ID — replace after claiming>

What and why

Keep the custom portable Mandy launcher working with the updated upstream runtime.

  • Preserve portable runtime, F1 settings-file, worker-count, and full-precompile support.
  • Embed the launcher and its resources in the portable build.
  • Pass the selected runtime and F1 settings path through launches and F1 restarts.
  • Preserve saved F1 settings while applying upstream DLSS handling, including the Series S default-resolution path.

Tested

  • python tests/test_play_nvidia_menu_choice.py — 16 passed.
  • python tests/test_game_gate.py — 26 passed, 1 skipped.
  • Built the portable launcher and verified its embedded launch script matches the staged script.
  • PowerShell dry runs covered the saved F1 DLSS + FG settings and Series S DLSS normalization.

GPUs tested: RTX 5060 TI 16GB
AI-assisted: yes (Copilot SDK in VS Code; GPT6)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption included.
**@⁠aldidigimap-pixel** on GitHub · 2026-12-02 19:10 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205) `aldidigimap-pixel:main` → `main` · +1784 −46 · 4 files · 1 commits · open Claimed in the coordination issue as: <CLAIM-ID — replace after claiming> ### What and why Keep the custom portable Mandy launcher working with the updated upstream runtime. - Preserve portable runtime, F1 settings-file, worker-count, and full-precompile support. - Embed the launcher and its resources in the portable build. - Pass the selected runtime and F1 settings path through launches and F1 restarts. - Preserve saved F1 settings while applying upstream DLSS handling, including the Series S default-resolution path. ### Tested - `python tests/test_play_nvidia_menu_choice.py` — 16 passed. - `python tests/test_game_gate.py` — 26 passed, 1 skipped. - Built the portable launcher and verified its embedded launch script matches the staged script. - PowerShell dry runs covered the saved F1 DLSS + FG settings and Series S DLSS normalization. GPUs tested: RTX 5060 TI 16GB AI-assisted: yes (Copilot SDK in VS Code; GPT6) ### Checklist - [ ] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption included.
Keep the portable launcher features while updating the F1 and DLSS launch flow.

Co-authored-by: Copilot <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 19:27:42 +00:00
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 20:28 UTC · original · reviewed

a5751d87 conflicts with current main b41763227 in d3d12/scripts/play-nvidia.ps1; scope checked with git merge-tree. The conflict includes the precompile parameters, F1 replay arguments and construction of warm arguments. When bringing in #3172, preserve its full-warm default and explicit -PrecompileUsed mode alongside the portable -RuntimeExe, -MenuFile and -Jobs arguments. The GUI currently emits -FullWarm when checked and no selector when unchecked. Under the current default the unchecked case needs an explicit used-only selector, or the two choices would both run full warm-up. Please cover both GUI choices and the restart, and replace the claim placeholder in the PR body with the coordination claim. Source and merge review only; I did not build the portable launcher. AI-assisted.

**@⁠merzleckeier** on GitHub · 2026-12-02 20:28 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205#pullrequestreview-6158396665) · **reviewed** `a5751d87` conflicts with current `main` `b41763227` in `d3d12/scripts/play-nvidia.ps1`; scope checked with `git merge-tree`. The conflict includes the precompile parameters, F1 replay arguments and construction of `warm` arguments. When bringing in #3172, preserve its full-warm default and explicit `-PrecompileUsed` mode alongside the portable `-RuntimeExe`, `-MenuFile` and `-Jobs` arguments. The GUI currently emits `-FullWarm` when checked and no selector when unchecked. Under the current default the unchecked case needs an explicit used-only selector, or the two choices would both run full warm-up. Please cover both GUI choices and the restart, and replace the claim placeholder in the PR body with the coordination claim. Source and merge review only; I did not build the portable launcher. AI-assisted.
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-02 22:00 UTC · original

This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

**@⁠MoonEyes** on GitHub · 2026-12-02 22:00 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205#issuecomment-7360093006) This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
Author
Owner

@⁠fiestorra on GitHub · 2026-12-02 22:02 UTC · original

VERIFY-3205 — Windows nativo: no fusiona, y el lanzador C# compila

Head (this PR)
Merge base older than main b41763227
git merge --no-ff onto main CONFLICT (content) in d3d12/scripts/play-nvidia.ps1 — main has moved (#3210, #3220, #3230, #3233, #3235 all touch it)

That is the first thing to know: it needs a rebase before anything else. For the compile below I took the PR's own files (d3d12/launcher/*, build-mandy-launcher.ps1) into a worktree and left the script conflict out of it.

Build

pwsh -File d3d12/scripts/build-mandy-launcher.ps1
Built: …\d3d12\target\launcher\MandyLauncher.exe        exit 0, 270 KB

It compiles clean on this machine with the repository's own script and the .NET Framework csc.exe (/target:winexe /platform:x64, WinForms references, play-nvidia.ps1 and the profile image embedded as resources). That is all the positive evidence available: 1,672 lines of new C# with no tests at all (zero [Test], zero Python cases), and this machine has no interactive desktop, so a WinForms window cannot be opened, walked, or seen here.

So: red not constructible for its own behaviour, and the compile is the only thing I can vouch for. For a new user-facing launcher that is the gap that matters — the same conclusion as #3182's Tk rewrite.

One factual nit I found reading it: the only URL in the C# is https://github.com/aldidigimap-pixel/mandy-nvidia (L370) — a personal repository, not ProjectLeonida/mandy. Tonight's #3228 exists precisely to point the documentation at the project's current name; a launcher others will run should link the same place.

What I could not test

  • The window: layout, the buttons, the profile image, the update path.
  • The embedded script run: the launcher extracts MandyUpdateLauncher.play-nvidia.ps1 from its resources and starts it (ProcessStartInfo, L1224/L1359); that path needs the title.
  • The portable pair (-PortableOutput, which copies leonida.exe beside the launcher): needs d3d12/target/diag/leonida.exe, which this worktree does not have.

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-12-02 22:02 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205#issuecomment-7360130666) ## VERIFY-3205 — Windows nativo: **no fusiona**, y el lanzador C# compila | | | |---|---| | Head | `(this PR)` | | Merge base | older than `main` `b41763227` | | `git merge --no-ff` onto `main` | **CONFLICT (content) in `d3d12/scripts/play-nvidia.ps1`** — main has moved (#3210, #3220, #3230, #3233, #3235 all touch it) | **That is the first thing to know: it needs a rebase before anything else.** For the compile below I took the PR's own files (`d3d12/launcher/*`, `build-mandy-launcher.ps1`) into a worktree and left the script conflict out of it. **Build** ``` pwsh -File d3d12/scripts/build-mandy-launcher.ps1 Built: …\d3d12\target\launcher\MandyLauncher.exe exit 0, 270 KB ``` **It compiles clean on this machine** with the repository's own script and the .NET Framework `csc.exe` (`/target:winexe /platform:x64`, WinForms references, `play-nvidia.ps1` and the profile image embedded as resources). **That is all the positive evidence available**: 1,672 lines of new C# with **no tests at all** (zero `[Test]`, zero Python cases), and this machine has no interactive desktop, so **a WinForms window cannot be opened, walked, or seen here**. **So: `red not constructible` for its own behaviour, and the compile is the only thing I can vouch for.** For a new user-facing launcher that is the gap that matters — the same conclusion as #3182's Tk rewrite. **One factual nit I found reading it**: the only URL in the C# is `https://github.com/aldidigimap-pixel/mandy-nvidia` (L370) — **a personal repository, not `ProjectLeonida/mandy`**. Tonight's #3228 exists precisely to point the documentation at the project's current name; a launcher others will run should link the same place. ## What I could not test - **The window**: layout, the buttons, the profile image, the update path. - **The embedded script run**: the launcher extracts `MandyUpdateLauncher.play-nvidia.ps1` from its resources and starts it (`ProcessStartInfo`, L1224/L1359); that path needs the title. - **The portable pair** (`-PortableOutput`, which copies `leonida.exe` beside the launcher): needs `d3d12/target/diag/leonida.exe`, which this worktree does not have. Written with an AI assistant.
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 02:53 UTC · original

VERIFY-3205 — compila aquí, y una dependencia que sólo existe por el csc.rsp por defecto

El launcher C# (MandyLauncher.cs, 1 672 líneas) compila en esta máquina con el compilador que el script nombra, C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe:

csc /nologo /target:winexe /platform:x64 /out:… \
    /reference:System.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll \
    /resource:play-nvidia.ps1,MandyUpdateLauncher.play-nvidia.ps1 \
    /resource:mandy-profile.png,MandyUpdateLauncher.profile.png \
    MandyLauncher.cs
→ exit 0, 270.5 KB

Los dos recursos incrustados entran, y el /define:MANDY_RUNTIME_DLSS que el script añade condicionalmente no es necesario para compilar.

Y un hallazgo, del control que hice mal primero y bien después: MandyLauncher.cs usa HashSet (L1063), que vive en System.Core.dll — y el script no lo referencia.

sin /noconfig, sin System.Core   → exit 0   (csc.rsp lo aporta)
con /noconfig, sin System.Core   → error CS0246: The type or namespace name 'HashSet' could not be found
con /noconfig, sin WinForms      → 24 errores CS0246 (Form, TextBox, …)

csc.exe del Framework aplica csc.rsp por defecto, y ese fichero referencia System.Core — así que hoy funciona. Pero el script escribe sus referencias una a una para no depender del entorno, y le falta la única que el código necesita y no declara. En una máquina con un csc.rsp recortado (o si alguien añade /noconfig para hacer el build reproducible) falla con CS0246: HashSet en la línea 1063.

El arreglo es una línea: System.Core.dll en el array $references de build-mandy-launcher.ps1, junto a las otras tres.

Mi primer control dijo «compila sin WinForms» y era falso: sin /noconfig, csc.rsp había aportado también WinForms, y el using no fallaba. Lo que lo delató fue que el fichero tiene using System.Windows.Forms; y 24 errores CS0246 aparecieron en cuanto quité el response file. Es el tercer control esta noche que miente por el entorno en vez de por el código — y el primero que es de C#.

Lo que no probé

  • Ejecutar el .exe: es winexe y esta sesión no tiene escritorio, así que abrirlo no dice nada (es el mismo motivo del rojo de leonida-hle).
  • El instalador de Git / las descargas que el launcher hace: nada de la parte que toca la red o el disco del usuario.
  • El play-nvidia.ps1 modificado por esta PR: tiene su propio conflicto contra main y no lo resolví (está en mi clasificación: #3205 necesita a su autor).

Written with an AI assistant.

**@⁠fiestorra** on GitHub · 2026-12-03 02:53 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205#issuecomment-7365977701) ## VERIFY-3205 — compila aquí, y una dependencia que sólo existe por el `csc.rsp` por defecto **El launcher C# (`MandyLauncher.cs`, 1 672 líneas) compila en esta máquina con el compilador que el script nombra**, `C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe`: ``` csc /nologo /target:winexe /platform:x64 /out:… \ /reference:System.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll \ /resource:play-nvidia.ps1,MandyUpdateLauncher.play-nvidia.ps1 \ /resource:mandy-profile.png,MandyUpdateLauncher.profile.png \ MandyLauncher.cs → exit 0, 270.5 KB ``` **Los dos recursos incrustados entran**, **y el `/define:MANDY_RUNTIME_DLSS` que el script añade condicionalmente no es necesario para compilar.** **Y un hallazgo, del control que hice mal primero y bien después**: **`MandyLauncher.cs` usa `HashSet` (L1063), que vive en `System.Core.dll` — y el script no lo referencia.** ``` sin /noconfig, sin System.Core → exit 0 (csc.rsp lo aporta) con /noconfig, sin System.Core → error CS0246: The type or namespace name 'HashSet' could not be found con /noconfig, sin WinForms → 24 errores CS0246 (Form, TextBox, …) ``` **`csc.exe` del Framework aplica `csc.rsp` por defecto, y ese fichero referencia `System.Core`** — **así que hoy funciona.** **Pero el script escribe sus referencias una a una para no depender del entorno**, **y le falta la única que el código necesita y no declara**. **En una máquina con un `csc.rsp` recortado (o si alguien añade `/noconfig` para hacer el build reproducible) falla con `CS0246: HashSet` en la línea 1063.** **El arreglo es una línea**: **`System.Core.dll` en el array `$references` de `build-mandy-launcher.ps1`**, **junto a las otras tres.** **Mi primer control dijo «compila sin WinForms» y era falso**: **sin `/noconfig`, `csc.rsp` había aportado también WinForms**, **y el `using` no fallaba.** **Lo que lo delató fue que el fichero tiene `using System.Windows.Forms;` y 24 errores `CS0246` aparecieron en cuanto quité el response file.** **Es el tercer control esta noche que miente por el entorno en vez de por el código — y el primero que es de C#.** ## Lo que no probé - **Ejecutar el `.exe`**: **es `winexe` y esta sesión no tiene escritorio**, **así que abrirlo no dice nada** (es el mismo motivo del rojo de `leonida-hle`). - **El instalador de Git / las descargas que el launcher hace**: **nada de la parte que toca la red o el disco del usuario.** - **El `play-nvidia.ps1` modificado por esta PR**: **tiene su propio conflicto contra `main` y no lo resolví** (está en mi clasificación: `#3205` necesita a su autor). Written with an AI assistant.
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-03 07:01 UTC · original

This pull request has a merge conflict with current main (d9b618f10), so it can't be run in game or merged as it is. Could you merge the latest main into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.

AI-assisted (Claude Code).

**@⁠MoonEyes** on GitHub · 2026-12-03 07:01 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205#issuecomment-7370506816) This pull request has a merge conflict with current `main` (`d9b618f10`), so it can't be run in game or merged as it is. Could you merge the latest `main` into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head. AI-assisted (Claude Code).
Author
Owner

@⁠fiestorra on GitHub · 2026-12-03 09:33 UTC · original

Antes de fusionar: esta PR añadiría dos violaciones nuevas a la política del repositorio, y una de ellas no se puede arreglar con una línea

Corrí el binario de la política sobre la cabeza de la PR (cargo run -p xtask -- policy, exit 1):

POLICY: launcher/MandyLauncher.cs: file type not on the allowlist
POLICY: launcher/mandy-profile.png: file type not on the allowlist
POLICY: launcher/mandy-profile.png: binary content (NUL bytes)
Error: 6 asset-policy violation(s).

Las tres primeras de las seis son las que main ya tiene (dos ficheros .rs de más de 640 KiB y uno con 6 528 dígitos hex, que arregla #2815). Las otras tres son de esta PR, y son de dos clases:

  1. MandyLauncher.cs: «file type not on the allowlist» — .cs no está en ALLOWED_EXTENSIONS. Es texto escrito por vosotros, así que encaja en lo que la política quiere permitir; lo que falta es añadir "cs" a la lista. Es una línea en xtask/src/policy.rs, y es una decisión de política, no un arreglo técnico — por eso lo dejo escrito en vez de proponerlo como hecho.

  2. mandy-profile.png: «binary content (NUL bytes)» — y esto no se arregla con una lista de extensiones. La política dice Nothing from the game may be committed y comprueba precisamente eso: un fichero binario. Un PNG de 147 KB generado por nosotros no es del juego, pero el instrumento no distingue — y quitar la comprobación de NUL abriría el hueco que #2815 y la regla de los decimales están cerrando esta misma noche.

Las tres salidas honestas, y ninguna es mía para decidir:

  • que el PNG no esté en el repositorio (un icono de perfil se puede generar en el build-mandy-launcher.ps1, que es justo lo que ese script podría hacer);
  • que se acepte como excepción declarada (hay una lista EXCEPTIONS en la política, y sería el sitio);
  • que la política aprenda a distinguir un binario permitido de un dato del juego (más trabajo, y no lo pido desde aquí).

Y el contexto que hace esto urgente y no pedante: cargo test -p xtask corre repository_passes_policy en CI, así que fusionar esta PR tal cual deja main con cinco violaciones en vez de tres — y cualquiera que abra una PR de xtask después hereda un rojo que no es suyo. Es exactamente lo que está pasando hoy con las tres.

Lo que no he comprobado: si el launcher C# funciona — necesita Windows con el runtime y el juego, y no lo he ejecutado. Esto es sólo la puerta de la política, que es la que se abre sola en CI.

**@⁠fiestorra** on GitHub · 2026-12-03 09:33 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3205#issuecomment-7373863571) ## Antes de fusionar: **esta PR añadiría dos violaciones nuevas a la política del repositorio**, y una de ellas no se puede arreglar con una línea **Corrí el binario de la política sobre la cabeza de la PR** (`cargo run -p xtask -- policy`, exit 1): ``` POLICY: launcher/MandyLauncher.cs: file type not on the allowlist POLICY: launcher/mandy-profile.png: file type not on the allowlist POLICY: launcher/mandy-profile.png: binary content (NUL bytes) Error: 6 asset-policy violation(s). ``` **Las tres primeras de las seis son las que `main` ya tiene** (**dos ficheros `.rs` de más de 640 KiB y uno con 6 528 dígitos hex**, que arregla `#2815`). **Las otras tres son de esta PR**, y son de dos clases: 1. **`MandyLauncher.cs`: «file type not on the allowlist»** — **`.cs` no está en `ALLOWED_EXTENSIONS`.** **Es texto escrito por vosotros, así que encaja en lo que la política quiere permitir**; **lo que falta es añadir `"cs"` a la lista.** **Es una línea en `xtask/src/policy.rs`, y es una decisión de política, no un arreglo técnico** — **por eso lo dejo escrito en vez de proponerlo como hecho.** 2. **`mandy-profile.png`: «binary content (NUL bytes)»** — **y esto no se arregla con una lista de extensiones.** **La política dice `Nothing from the game may be committed` y comprueba precisamente eso: un fichero binario.** **Un PNG de 147 KB generado por nosotros no es del juego, pero el instrumento no distingue** — **y quitar la comprobación de NUL abriría el hueco que `#2815` y la regla de los decimales están cerrando esta misma noche.** **Las tres salidas honestas, y ninguna es mía para decidir**: - **que el PNG no esté en el repositorio** (**un icono de perfil se puede generar en el `build-mandy-launcher.ps1`, que es justo lo que ese script podría hacer**); - **que se acepte como excepción declarada** (**hay una lista `EXCEPTIONS` en la política, y sería el sitio**); - **que la política aprenda a distinguir un binario permitido de un dato del juego** (**más trabajo, y no lo pido desde aquí**). **Y el contexto que hace esto urgente y no pedante**: **`cargo test -p xtask` corre `repository_passes_policy` en CI**, **así que fusionar esta PR tal cual deja `main` con cinco violaciones en vez de tres** — **y cualquiera que abra una PR de `xtask` después hereda un rojo que no es suyo.** **Es exactamente lo que está pasando hoy con las tres.** **Lo que no he comprobado**: **si el launcher C# funciona** — **necesita Windows con el runtime y el juego, y no lo he ejecutado.** **Esto es sólo la puerta de la política, que es la que se abre sola en CI.**
This pull request has changes conflicting with the target branch.
  • d3d12/scripts/play-nvidia.ps1
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3205'
git switch 'github-bot/gh-3205'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3205'
git switch 'github-bot/gh-3205'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3205'
git switch 'main'
git merge --squash 'github-bot/gh-3205'
git switch 'main'
git merge --ff-only 'github-bot/gh-3205'
git switch 'main'
git merge 'github-bot/gh-3205'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
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
github/ubiquitarianism--leonida!3205
No description provided.