mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 02:09:57 -04:00
Have the launcher put Steam's library file beside the game, so no player fetches it for co-op.
Co-op loads steam_api64.dll from beside ocarina.exe, and the repository may not hold that file. Before Play and before a start from the Steam shortcut, when the file is not there, launcher/steamlib.py now copies one: one a release ships in its bin folder if it has one, else the newest one in the games of the player's own Steam libraries that Valve signed (WinVerifyTrust and the signer's name) and that has every call runtime/steam.c uses. Nothing is downloaded, the search takes a second or two once, and with no Steam or no suitable file the game starts as before and the Co-op tab says what is missing. The tab's two texts about the file say so in the four languages. Checked: four new tests on made-up library folders (too old, unsigned, too deep, a second library, a shipped file first, none said once) and the launcher's 190 tests pass; on this PC the search found 40 files in 1.2 s, 25 suitable, and copied a Valve-signed one; that file's library version, an older one than the game was run with, signs in as app 480 and makes a lobby in a program without the game. Not run: Play in the launcher itself with this change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -16,9 +16,12 @@ and the time of day are each game's own.
|
||||
the test app Valve gives every account. While co-op is on, Steam shows you as playing Spacewar. Nobody forwards a
|
||||
port on a router and nobody runs a server: the room is a Steam lobby and the games talk through Steam's own network,
|
||||
which finds a direct path between them or relays for them.
|
||||
- **Steam's library file, `steam_api64.dll`, beside `ocarina.exe`.** NX2navi may not ship that file. Every Steam game
|
||||
has one in its folder: copy one from a recent game (2021 or later) into the folder of `ocarina.exe`. The Co-op tab
|
||||
says when the file is missing or too old. The game loads it from that one place only.
|
||||
- **At least one Steam game from 2021 or later installed** (Windows). Co-op uses Steam's library file,
|
||||
`steam_api64.dll`, which NX2navi may not ship; every Steam game has one in its folder. The launcher fetches it for
|
||||
you: each time it starts the game and the file is not beside `ocarina.exe`, it looks through your Steam libraries
|
||||
for the newest one that Valve signed and that has the calls co-op uses, and copies it there (a second or two, once;
|
||||
`launcher/steamlib.py`). You can also copy one there yourself. The Co-op tab says when the file is missing or too
|
||||
old; the game loads it from that one place only.
|
||||
- **The same NX2navi version and game version (1.1.1)** as the others. A game of another version is told so and does
|
||||
not get into the room.
|
||||
|
||||
|
||||
@@ -65,6 +65,11 @@ Customize Launcher (on the home screen) makes the look the player's own:
|
||||
it is silent until the player's game has been read. Moving the cursor makes no sound. They are played from memory
|
||||
(PlaySound on Windows; `pw-play`, `paplay` or `aplay` elsewhere).
|
||||
|
||||
- Steam's library file for co-op (Windows, `launcher/steamlib.py`, [coop.md](coop.md)): before Play and before a start
|
||||
from the Steam shortcut, when `steam_api64.dll` is not beside the game, the launcher copies one there: one a release
|
||||
ships in its `bin` folder if it has one, else the newest one in the games of the player's Steam libraries that Valve
|
||||
signed (WinVerifyTrust and the signer's name) and that has every call `runtime/steam.c` uses. Nothing is downloaded.
|
||||
With no Steam or no suitable file the game starts as before and co-op says what is missing.
|
||||
- Add to Steam (Windows): the game in the player's Steam library as *The Legend of Zelda Ocarina of Time*, started
|
||||
from there without the launcher's window (`launcher/steam.py`). Its pictures are made from the player's game when
|
||||
the row is selected (`launcher/gameart.py`): Navi as the game's HUD draws her for the icon, the title screen's logo,
|
||||
|
||||
@@ -28,8 +28,9 @@
|
||||
shows you as playing Spacewar. In a room you see the other players' names where their Link stands (with DLSS, FSR
|
||||
or TAA on), you can chat, and progress is shared: story, chests, doors, items and songs count for everyone, while
|
||||
small keys, rupees, ammunition and hearts stay each player's own. Your save is copied to `coop-backup` in the
|
||||
profile folder before anything of a room reaches it. It needs Steam running and Steam's library file
|
||||
`steam_api64.dll` beside `ocarina.exe` (copy one from any recent Steam game's folder; NX2navi may not ship it). Not
|
||||
profile folder before anything of a room reaches it. It needs Steam running and one Steam game from 2021 or later
|
||||
installed: co-op uses Steam's library file, `steam_api64.dll`, which NX2navi may not ship, so the launcher copies
|
||||
it beside the game from your own Steam library when it starts the game. Not
|
||||
yet: the other players as a Link model, shared enemies, and invites that start the game for a friend who has it
|
||||
closed. Everyone needs the same NX2navi version. `docs/coop.md` has the details and how to go back to a save.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user