PeakLobbyJoinFix

版本 v1.0.0·更新於 2025-06-24

Fixes Steam lobby join timing issues in PEAK. Prevents 'Photon Room not found' errors when joining lobbies via steam://joinlobby links by waiting for Photon connection before attempting to join.

模組介紹 作者原文

Peak Lobby Fix

A BepInEx mod for PEAK that fixes Steam lobby join timing issues.

Problem

When joining PEAK through Steam lobby links (steam://joinlobby):

  • The game immediately tries to join the lobby
  • But Photon networking isn't connected yet
  • Results in "Photon Room not found" error and infinite loops

Solution

This mod:

  • Intercepts Steam lobby join attempts
  • Waits for Photon to fully connect
  • Automatically joins the lobby once ready
  • Includes timeout protection (10 seconds)

Installation

Manual Installation

  • Make sure BepInEx is installed
  • Download the latest release
  • Extract to BepInEx/plugins/ folder
  • Launch PEAK

Features

  • ✅ Fixes Steam lobby join timing issues
  • ✅ Waits for Photon connection before joining
  • ✅ Timeout protection (prevents infinite waiting)
  • ✅ Detailed logging for troubleshooting
  • ✅ Automatic retry system
  • ✅ Compatible with other PEAK mods

How It Works

  • Detection: Monitors Steam lobby join requests
  • Validation: Checks if Photon is connected and authenticated
  • Delay: If not ready, delays the join attempt
  • Execution: Automatically joins when Photon is ready
  • Cleanup: Resets state after successful join

Technical Details

The mod uses Harmony patches to intercept:

  • SteamLobbyHandler.TryJoinLobby() - Direct lobby join attempts
  • SteamLobbyHandler.OnLobbyJoinRequested() - Steam callback joins
  • NetworkConnector.OnConnectedToMaster() - Connection status tracking

Troubleshooting

Mod not working

  • Ensure BepInEx is properly installed
  • Check BepInEx/LogOutput.log for errors
  • Verify mod is in BepInEx/plugins/ folder

Still can't join lobbies

  • Check Photon connection status in logs
  • 10-second timeout may have expired
  • Try joining again after game fully loads
  • Write me in discord: icetypes

Compatibility

This mod is compatible with other PEAK mods. It only affects lobby join timing.

Logs

Look for these messages in BepInEx console:

  • Peak Lobby Fix Mod loaded - Simple approach!
  • Photon not ready, delaying lobby join for: [ID]
  • Photon is ready! Processing delayed lobby join...
  • Successfully initiated delayed lobby join!

Configuration

No configuration needed - the mod works automatically.

Support

If you encounter issues:

  • Check BepInEx logs
  • Report bugs with log files
  • Join the PEAK modding community

Changelog

1.0.0

  • Initial release
  • Fixed Steam lobby join timing issues
  • Added Photon connection waiting
  • Implemented timeout protection

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
PeakLobbyJoinFix-1.0.0.zip
檔案大小
9.8 KiB
SHA-256
07b9788814cdd9b6a83d3047ca7aa8c506ab8b82243b44bffa7ddae6e60ae110
入庫時間
2026-10-10 06:28