PhotonRedirector

版本 v1.0.0·更新於 2025-08-19

This mod allow you to create custom Photon servers

模組介紹 作者原文

Photon Redirector

Author: Kirigiri

Version: 1.0.0

Description:

A BepInEx plugin that overrides the Photon connection setup to redirect the Photon App IDs (AppIdRealtime and AppIdVoice) to custom values loaded from a configuration file (PhotonRedirector.txt). Useful for testing or using custom Photon servers.

Features

  • Fully overrides NetworkConnector.ConnectToPhoton() to inject custom Photon App IDs.
  • Reads AppIdRealtime and AppIdVoice from BepInEx/config/PhotonRedirector.txt.
  • Automatically creates a default config file if missing.
  • Logs connection info and custom App IDs on connect.
  • Can fix issues with ping that appear on the original game.

Installation

  • Download the latest PhotonRedirector.dll page.
  • Place the DLL into your game's BepInEx/plugins/ folder.
  • Launch the game once to generate the default config file at:

BepInEx/config/PhotonRedirector.txt

  • Edit PhotonRedirector.txt to set your desired Photon App IDs:

AppIdRealtime=your-realtime-app-id

AppIdVoice=your-voice-app-id

  • Restart the game.

Configuration

PhotonRedirector.txt format (located in BepInEx/config):

AppIdRealtime=1111

AppIdVoice=1111

Replace the values with your Photon Cloud App IDs or custom server IDs.

How to Create a Photon Server

Photon is a multiplayer backend service by Exit Games. To create your own Photon server and get App IDs:

  • Create an account on the Photon Engine Dashboard.
  • Create a new application:
  • Choose the Photon product (Realtime & Voice).
  • Give it a name and select the region.
  • Copy your App IDs:
  • After creation, your AppIdRealtime and AppIdVoice will be shown in the dashboard.
  • Use these App IDs in PhotonRedirector.txt to connect your game to this Photon server.

Support

If you encounter any issues or have questions, please open an issue on the GitHub repository or message me.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack_PEAK

檔案與校驗

檔案名稱
PhotonRedirector-1.0.0.zip
檔案大小
37.6 KiB