Self Hosted Photon

版本 v0.1.0·更新於 2025-12-01

Allows you to connect to a self-hosted Photon server via an IP address or a hostname.

模組介紹 作者原文

Self Hosted Photon

With this mod you can easily join to a self-hosted version of Photon via an IP address or a hostname.

DISCLAIMER

This mod is not yet finished, so you may experience some issues. If you do do not hesitate to create a new issue on the project GitHub.

Setup

For Server Hosts

To use this mod you will need a Photon Server first of all. There is a nice GitHub project that allows you to run your own Photon server via Docker.

After you have set up the server you need to share the server address and port with your clients.

From this point you can just follow the client setup.

For Clients

First of all will need to enable the mod and set the server address and port in the configs, after you can just join a game (the lobby host and the server host does not have to be the same person).

Config

Example config

Settings file was created by plugin Self_Hosted_Photon v0.0.0

Plugin GUID: Self_Hosted_Photon

[General]

Enable or disable the plugin.

Setting type: Boolean

Default value: true

Enabled = true

[Server]

The IP address or hostname of the Photon server.

Setting type: String

Default value: 127.0.0.1

Address = 127.0.0.1

The port number of the Photon server.

Setting type: String

Default value: 5055

Port = 5055

To save yourself some trouble you can use the REPOConfig mod that allows you to change your settings in-game.

Credit

Credit to REPOLib for the GitHub CI/CD pipeline.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
Self_Hosted_Photon-0.1.0.zip
檔案大小
29.8 KiB