PEAK

Details

Last Updated
2 months ago
First Uploaded
2 months ago
Downloads
178
Likes
3
Size
38KB
Dependency string
kirigiri-PhotonRedirector-1.0.0
Dependants

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.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.