mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 04:46:08 +00:00
fix(ubisoft): R2 games get a session matching the subsystems they ask for (#2450)
uplay_r2.dll speaks the same UplayDll.proto as uplay_r1.dll, but its InitReq names the subsystems the game uses (fields 4 to 11) and its ApiContext only creates objects for those. It copies gameInstall and storage into their objects without checking for them, so the gameInstall droiddeck-upc always sent crashed Prince of Persia: The Lost Crown (6145), which asks for overlay, product and store only: an access violation reading 0x68 in uplay_r264.dll+0xaca2 two seconds after the session. - When the request names subsystems, gameInstall (14) is sent only with subSystemInstall and storage (17) only with subSystemStorage, and an empty multiplayerInit (20) is added. Requests that name none keep the old session. - streamingReq (27) is answered: the streaming type is None, other streaming queries are not found. - The log records the subsystems each init asked for. Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
1 parent
2848484a99
commit
f16b023f0d
3 files changed
+116
-17
No files matched your search
@@ -34,7 +34,7 @@ followed by a proto2 message, except on `uplay_service_ipc_pipe_`.
|
||||
|---|---|---|
|
||||
| `game_start_ipc_pipe_` | `UbisoftGameLauncher.exe` | `game_starter.Upstream{1:{1:{1: build, 2: product, 10: exe, 11: arguments, ...}}}` → `Downstream{2:{1:{1:0 (overlay off), 2:0, 3: <root>/ + "/" + <exe under root>, 4: <root>/, 8:3, 9:{1:{1,113,0,1,0} 1:{3,123,0,0,0}}}}}` |
|
||||
| `uplay_api_process_ipc_pipe_` | game | `Req.initProcessReq{1: product, 2: game pid, 5: env set}` → `Rsp.initProcessRsp(13){1:1, 3:0 (overlay off), 4:3, 6:0}`. Kept open. Answering it is what releases the starter (below). Far Cry 3 Blood Dragon sends only `{2: pid, 5:1}`; a missing pid is taken from the pipe's client process |
|
||||
| `uplay_ipc_pipe_` | game (`uplay_r1.dll`) | `Req.initReq(1)` → `Rsp.initRsp(1)`, answered every time it is asked. `Req.installerReq(13)` with `initInstallerReq` → `Rsp.installerRsp(10){1:{1:1, 2:"", 3: language}}`. `Req.userReq(11).getCredentialsReq(1){1: id}` → `Rsp.userRsp(8).getCredentialsRsp(1){1: id, 2: username, 3: "" (password), 4: userId, 5: email}` |
|
||||
| `uplay_ipc_pipe_` | game (`uplay_r1.dll`, `uplay_r2.dll`) | `Req.initReq(1)` → `Rsp.initRsp(1)`, answered every time it is asked. `Req.installerReq(13)` with `initInstallerReq` → `Rsp.installerRsp(10){1:{1:1, 2:"", 3: language}}`. `Req.userReq(11).getCredentialsReq(1){1: id}` → `Rsp.userRsp(8).getCredentialsRsp(1){1: id, 2: username, 3: "" (password), 4: userId, 5: email}`. `Req.streamingReq(27)` → `Rsp.streamingRsp(20){1: id, 2:1, 4:{1:0}}` for the streaming type (not streamed), `{1: id, 2:4}` for any other streaming query |
|
||||
| `uplay_aux_ipc_pipe_` | `uplay_aux_r1(64).dll` (Denuvo) | `{1: rid, 2: init}` → `{1: rid, 2:{1:1, 2: pid, 3:3367, 3:3368, 3:3962}}`; `{1: rid, 3:{2:{2: challenge}}}` → `{1: rid, 3:{2:{2:1, 3:0, 4: game token, 5:""}}}` |
|
||||
| `uplay_service_ipc_pipe_` | Ubisoft helpers | Server sends `{3:{1:1, 3:{1: <hwscore path>}}}` once, then only reads, unframed |
|
||||
| `orbit_ipc_pipe_` | game (`ubiorbitapi_r2.dll`) | `mg.protocol.orbitdll` from the DLL's own `proto_orbitdll/OrbitDll.proto`. `Req{1: id, 12: init{1: product}}` → `Rsp{1: id, 12:{1: save folder, 2:1}}`; `getLoginDetails(2)` → `{1: username, 2:"", 3:""}`; `getOsi(3){1: sub}` → `{2:1}` (failed, no online-services pipe) |
|
||||
@@ -53,9 +53,25 @@ followed by a proto2 message, except on `uplay_service_ipc_pipe_`.
|
||||
| 7 isInOfflineMode | 0 |
|
||||
| 8 upcTicket | the PC ticket from `GetUplayPCTicket`, never the Denuvo token |
|
||||
| 11, 12, 15, 16, 18, 19, 21, 23 | the values a real launch carries (`{1:0}`, 0, overlay `{1:0, 2:3}`, hardware score `{6211, 22395, 1.0f}`, empty, `{1:1, 2:1}`, `{2:1}`, empty) |
|
||||
| 14 gameInstall | `{1:1, 2: installed chunks, 3: language}` |
|
||||
| 17 storage | `{1: "C:/users/steamuser/Saved Games/Ubisoft/<userId>/<product>/"}`; the game appends file names directly, so the trailing slash matters |
|
||||
| 22 ubiServices | `{1: applicationId}` from the account's entitlements, left out when unknown |
|
||||
|
||||
### R2 titles
|
||||
|
||||
`uplay_r2.dll` speaks the same `mg.protocol.uplaydll` messages (its embedded `UplayDll.proto` is identical to
|
||||
`uplay_r1.dll`'s), but its `InitReq` names the subsystems the game uses: fields 4 to 11 (friend, overlay,
|
||||
product, storage, install, multiplayer, store, streaming). Its `ApiContext` creates one object per requested
|
||||
subsystem and copies the session into them. Friends, overlay, game session, store and crossboot are checked
|
||||
for a missing object first; install and storage are not. A `gameInstall` sent to a game that did not ask for
|
||||
install is copied into a null object: Prince of Persia: The Lost Crown (6145) asks for overlay, product and store
|
||||
only, and crashed reading `0x68` in `uplay_r264.dll+0xaca2` two seconds after the session arrived.
|
||||
|
||||
So when the request names subsystems, 14 is sent only with `subSystemInstall` (8), 17 only with
|
||||
`subSystemStorage` (7), and an empty `multiplayerInit` (20) is added, which `uplay_r2.dll` asks for even when
|
||||
empty. A request that names none gets the session above unchanged. The Lost Crown also opens a second context
|
||||
that asks for every subsystem, and it gets the full session.
|
||||
|
||||
The overlay is reported off in all three places. `uplay_r1.dll` still loads `overlay.dll` from the
|
||||
runtime folder right after the session arrives, whatever the session says; without that file it gives up
|
||||
with `UplayAPI [ERROR]: Startup failed: cannot load uplay library` (Assassin's Creed Chronicles: China
|
||||
@@ -91,7 +107,6 @@ titles without Denuvo never open the aux pipe.
|
||||
|
||||
## Not covered yet
|
||||
|
||||
- R2 (`UPC_*`) titles use `uplay_r2.dll`; their pipe traffic has not been captured, so whether the
|
||||
same server answers them is unverified.
|
||||
- R2 titles other than The Lost Crown, and R2 requests beyond the session, credentials, product list and streaming type.
|
||||
- Orbit's online-services pipe (`getOsi` is declined) and Orbit titles other than Far Cry 3 Blood Dragon.
|
||||
- Achievements, friends, overlay, cloud saves.
|
||||
Reference in new issue
Block a user