PEAKERRpcInfo

版本 v1.1.0·更新於 2025-09-07

A dependency for mods that need the info parameter on Rpcs.

模組介紹 作者原文

What is this for?

Whenever an Rpc is invoked, you won't know who invoked the Rpc unless it contains an info parameter. This preloader patcher inserts the info parameter into every Rpc in the base game, for other modders to utilize.

Notice for Modders

While this is installed, you shouldn't (but can as of v1.1.0) invoke Rpcs directly. For example, instead of using character.RPCA_Die() you should use character.view.RPC(nameof(Character.RPCA_Die), PhotonNetwork.LocalPlayer).

As of v1.1.0, this patcher will now patch every dll in the BepInEx/plugins folder that directly calls Rpc methods, to prevent InvalidIL and MissingMethod exceptions.

Potential issues for Transpilers/Modders

Due to the base game directly invoking some Rpc methods, this patcher has to modify the IL of some methods to account for the extra parameter (and dlls in the BepInEx/plugins folder as of v1.1.0).

These changes in IL, and some changes caused by simplifying and re-optimizing maros (IL) with Mono.Cecil.Rocks may cause some issues for transpilers.

  • The patcher logs all modified methods on the Debug channel. If you're encountering strange issues, I recommend checking these logs to see which methods are being modified.
  • To go a step further, you can enable Preloader.DumpAssemblies in your BepInEx.cfg, and check the modified IL for any changes that may be breaking your transpilers.
  • Patched dll's in the BepInEx/plugins folder (that were actually modified) will be renamed to "FILENAME.dll-unrpcpatched.old", and the patched version will take its place.

Installation (Manual)

  • Download BepInEx if you don't already have it installed. If you do, skip to step 4.
  • Extract the contents of BepInEx_win_x64_5.4.23.3.zip into your game's root directory.
  • You may navigate there directly by: opening your Steam library, right clicking them game, selecting Manage, and then Browse local files.
  • Run the game once, wait for the game's window to appear, then you may close the game.
  • Download the latest release of this mod, or whichever one you'd prefer.
  • Move the PEAKERRpcInfo.dll contained within the.zip to your BepInEx/patchers folder.
  • Enjoy!

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_PEAK

檔案與校驗

檔案名稱
PEAKERRpcInfo-1.1.0.zip
檔案大小
134.8 KiB