Skip to content

Luigi's Mansion 3: declare depth_mode zero - #165

Merged
3 commits merged into
LNPANDY:mainfrom
pyxl-dev:fix/lm3-depth-mode
Oct 29, 2026
Merged

3 commits merged into
LNPANDY:mainfrom
pyxl-dev:fix/lm3-depth-mode

Conversation

@pyxl-dev

@pyxl-dev pyxl-dev commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Luigi's Mansion 3 (0100DCA0064A6000) sets nvnDeviceSetDepthMode near = 0, but its profile did not declare depth_mode. The NSP script's Mac prebuild therefore made near = -w pipeline bases, and at every start the host refused the bundled archive (pipeline archive bundled with the app: made for … depth near=-w …, this run needs … depth near=0) and rebuilt 3,852 pipeline pairs before the first frame (16 s).

The change, carried as patches/0025-lm3-depth-mode.patch (Upstream-Status: forwarded seedds/nxnative#580):

  • dm/games/0100DCA0064A6000/game.tsv: depth_mode zero, with the reason.
  • The game's note records the finding; dm/games/README.md lists the game among those that set zero.

Part of #123.

Checked

  • Tests: python3 scripts/patches.py check passes (20 patches on upstream 062cd06).
  • Run on a Mac: Luigi's Mansion 3 v0 + update 1.4.0 (v327680) + Multiplayer Packs 1 and 2, rebuilt with the NSP script (--platform mac-app). After the change, the log shows the bundled archive accepted ("holds the bases of every shader pair", 16 of 16 probed), no pipeline prebuild line, >>> nnMain, frames presented, no [RED] or Break#. Apple M5, macOS 27.0.1.
  • Not checked: gameplay beyond the first frames, iPhone build.

Scope

  • No vendored file (dm/, scripts/, docs/, ref/, AGENTS.md) is edited directly: a change there is a patch in patches/ (scripts/patches.py export; patches.py check passes), with its Upstream-Status
  • No keys, game files or data extracted from a game in the change or the attachments

🤖 Generated with Claude Code

pyxl-dev and others added 2 commits October 28, 2026 20:33
The game sets nvnDeviceSetDepthMode near = 0. Without the key the
offline pipeline archive was made for near = -w, the host refused it at
every start and rebuilt 3,852 pipeline pairs before the first frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@v0lumehi

Copy link
Copy Markdown
Collaborator

Thanks, nice find, and the measurements make it easy to follow. Since this is a game profile fix, it belongs in seedds/nxnative first: profiles are maintained there, it helps every nxnative user, and it reaches NX2Apple with the next sync on its own. Could you open the same change as a PR there (the game.tsv line, the note and the dm/games/README.md entry, without the patch file)? Once it's open, set this patch's header to Upstream-Status: forwarded seedds/nxnative#<n> and we can merge it here to carry it until upstream has it. The next bump drops it automatically. If you'd rather not open it upstream yourself, say so and we'll forward it.

@pyxl-dev

Copy link
Copy Markdown
Contributor Author

Done: the same change is open upstream as seedds/nxnative#580 (the game.tsv line, the game note and the dm/games/README.md entry, without the patch file), and the patch header now reads Upstream-Status: forwarded seedds/nxnative#580 (452d17d). patches.py check passes.

@LNPANDY

LNPANDY commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Approved — merge when green. The change is exactly what the profile system wants: declare depth_mode zero, record the finding in the game's note, list the game in dm/games/README.md. Verified on a real Mac with the bundled pipeline archive accepted (16/16 probed, no prebuild). Patch form correct (forwarded seedds/nxnative#580, Reason/Issue present), patches.py check passes.

One heads-up: your patch is numbered 0025 and #185's (cloud saves) is also 0025 — whoever merges second needs a quick rebase so the series stays ordered; I will handle that at merge time. The Claude Code attribution in your commit message is fine to keep.

@LNPANDY LNPANDY closed this in #193 Oct 29, 2026
@LNPANDY LNPANDY closed this pull request by merging all changes into LNPANDY:main in eca34f1 Oct 29, 2026
@LNPANDY

LNPANDY commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Merged via #193 — the merge with #185's cloud-saves (which numbered its patch 0025 as well) required renumbering LM3 to 0026 and regenerating the tree (patches.py check: 20 patches on 5d2bf73, 2252 files). Same content, attribution preserved. GitHub marked this PR merged automatically when the content landed through the other PR — the commit history carries both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants