kirigiri-PhotonRedirector icon

PhotonRedirector

This mod allow you to create custom Photon servers

Last updated a day ago
Total downloads 34
Total rating 2 
Categories Misc Quality Of Life Client Side
Dependency string kirigiri-PhotonRedirector-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_PEAK-5.4.75301 icon
BepInEx-BepInExPack_PEAK

BepInEx pack for PEAK. Preconfigured and ready to use.

Preferred version: 5.4.75301

README

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

  1. Download the latest PhotonRedirector.dll from the Thunderstore page.

  2. Place the DLL into your game's BepInEx/plugins/ folder.

  3. Launch the game once to generate the default config file at:

    BepInEx/config/PhotonRedirector.txt

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

    AppIdRealtime=your-realtime-app-id
    AppIdVoice=your-voice-app-id

  5. 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:

  1. Create an account on the Photon Engine Dashboard.
  2. Create a new application:
    • Choose the Photon product (Realtime & Voice).
    • Give it a name and select the region.
  3. Copy your App IDs:
    • After creation, your AppIdRealtime and AppIdVoice will be shown in the dashboard.
  4. 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 on Thunderstore.