Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ The IPA appears in the game's folder. The first build takes 30–60 minutes and

To play on the Mac instead, add `--platform mac-app`: you get a Mac app of the game to open from Finder. All options: [The packing script in detail](docs/development.md#the-packing-script-in-detail).

### LAN play on Mac

Experimental native LAN play is available for games with a LAN mode. Mario Kart World has been played between M1 Pro and M4 Pro Macs over a routed site-to-site VPN. Build the same game version from this checkout on both Macs, then run:

```sh
python3 scripts/run_mac_lan.py /path/to/0400C3F00006E000_build --peer OTHER_MAC_IP
```

Use the other Mac's reachable IPv4 address. Add `--username "Racer One"` to choose the in-game account nickname. The launcher keeps the regular app's save and graphics choices and shows live output. For a dialog-based start, double-click `scripts/start_mac_lan.command`. Both players select their own build, enter each other's IP and choose their own username, remembered locally. See [LAN setup, portable kits and troubleshooting](docs/development.md#lan-play-on-mac). Wireless Play (LDN) and Nintendo online services are not implemented.

### Install

Install the IPA on your iPhone or iPad with a sideloading tool such as AltStore, Sideloadly or LiveContainer. If your tool offers **Increased Memory Limit**, turn it on: the bigger games need it.
Expand Down
17 changes: 17 additions & 0 deletions dm/games/0400C3F00006E000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,25 @@ Update 1.8.0 (v917504, SDK 21.4.0) is not on this Mac. Pull request #1116 ported
- `649e36162cad9e79`, a foliage shader with an 8x8 local size, keeps a first-invocation race: its setup loops over a uniform's count, so [the host cannot make it as stores](../../../docs/reference/shaders.md#a-store-only-a-dispatchs-first-invocation-makes). Its list's count read 0 in every one of 7,350 traced title frames, so the race had nothing to act on there; whether that list should be empty is not known.
- The engine class screen offers 50, 100 and 150cc in this build.

## Experimental LAN play

Current local validation (2026-11-04): an additional v917504 dump, main build ID prefix `D00E4F399E411D06`, SDK 21.4.0, runs on an Apple M4 Pro with macOS 27.2. With opt-in native sockets it opens the LAN room browser, creates a room, and reaches Crown City's free roam with "Waiting for players to join...". A separate copied save was used. This updates the LAN validation for that dump; the historical base-game performance measurements above are separate. The host's fallback displayed version for an unregistered main build is not evidence of the dump's version.

The general fixes and socket tests are in [LAN setup fails at socket initialization or the first empty receive](../../../docs/reference/services.md#lan-setup-fails-at-socket-initialization-or-the-first-empty-receive). The browser sends 352-byte discovery datagrams to port 35000; the configured peer relay sends them over the existing routed VPN. No router configuration is required by this implementation. On both Macs use the same game modules and modified host, with `scripts/run_mac_lan.py <build> --peer <other Mac IPv4>`; compare `--check` fingerprints first. From the main menu, hold L+R and click the left stick to change Wireless Play to LAN Play, then select it. One player creates a room and the other joins.

The launcher needs a completed nxnative `<title ID>_build` folder, including rewritten modules, RomFS, shaders and fonts; a raw ROM or source checkout alone is insufficient. It uses the regular Mac app save at `~/Library/Application Support/nxnative/<title ID>/save` by default, rather than the development build's `run/save`. `--save` overrides `DM_SAVE`, which overrides that default; `--check` reports the selected folder without creating or modifying saves. A kit with `dmhost` beside the launcher uses that host without replacing the build's original binary.

The transferable kit's `Start LAN.command` asks for the other player's IPv4 address (`--choose-peer`), then for the completed build folder. Both players use the same kit, entering each other's address; no peer IP is preset in the archive. An explicit `--peer` overrides the dialog. [LAN setup and kit packaging](../../../docs/development.md#lan-play-on-mac) cover matching game versions and host/shader runtimes; `--check` is an optional diagnostic.

A second Mac reported pixel shader `4841d29d86cd486b` failing to load. The portable kit supplies the host's matching runtime shaders and tables: [A portable host needs its matching shader runtime](../../../docs/reference/shaders.md#a-portable-host-needs-its-matching-shader-runtime). That exact library and reflection load on the M4 Pro. On 2026-11-05 two players confirmed several multiplayer rounds between an M1 Pro and M4 Pro over a routed VPN without connection problems. This is user-reported gameplay validation; the automated run exercised a local hosted room.

**Open:** both users report more lag through the script than through their regular app, especially on the M1 Pro. The launcher now reuses each Mac's own graphics choices and pipeline archive: [A separate launcher omits the Mac app's graphics settings and pipeline archive](../../../docs/reference/frame-rate.md#a-separate-launcher-omits-the-mac-apps-graphics-settings-and-pipeline-archive). The new selection is verified locally, but a runtime performance comparison after this change is pending. Only this game build is available locally for runtime validation. The regression harness checks its shader chain separately; it does not exercise the LAN menu route.

## Found on this game

- [A separate launcher omits the Mac app's graphics settings and pipeline archive](../../../docs/reference/frame-rate.md#a-separate-launcher-omits-the-mac-apps-graphics-settings-and-pipeline-archive) (configuration fix verified; frame-time comparison pending)
- [A portable host needs its matching shader runtime](../../../docs/reference/shaders.md#a-portable-host-needs-its-matching-shader-runtime) (user-confirmed M1 Pro gameplay after receiving the runtime)
- [LAN setup fails at socket initialization or the first empty receive](../../../docs/reference/services.md#lan-setup-fails-at-socket-initialization-or-the-first-empty-receive) (local hosted room verified; user-confirmed two-Mac races)
- [A NUP with complete standalone updates stops at "no base game"](../../../docs/reference/packing.md#a-nup-with-complete-standalone-updates-stops-at-no-base-game) (packing reproduced with the base dump; 1.8.0 gameplay remains untested)
- [Large sparse textures as Metal placement sparse textures](../../../docs/reference/nvn-objects.md#large-sparse-textures-as-metal-placement-sparse-textures)
- [Physical pages mapped at several places of a placement sparse texture](../../../docs/reference/nvn-objects.md#physical-pages-mapped-at-several-places-of-a-placement-sparse-texture)
Expand Down
Loading
Loading