Reconnect

版本 v0.0.5·更新於 2026-05-23

Reconnect: Auto-reconnect to lobby after unexpected disconnection.

模組介紹 作者原文

Reconnect

Auto-reconnect to lobby after unexpected disconnection. Will not attempt reconnect on deliberate leaves (quit button, etc.).

Features

  • Detects unexpected disconnection vs intentional leave
  • Attempts up to 3 reconnects with configurable interval and max attempt
  • Cooldown prevents infinite reconnect loops
  • Falls back to normal menu return if all attempts fail
  • Hosts are excluded (only clients reconnect)

Disconnect behavior

Intentional disconnect

An intentional disconnect is any action where the player explicitly chose to leave:

  • Clicking the Quit button in the pause menu

Sequence: The game's normal flow runs unmodified. The client disconnects and returns to the main menu immediately. No reconnect is attempted.

Unintentional disconnect

An unintentional disconnect is anything that triggers ConnectionLost without a prior intentional-leave marker:

  • Host closes the game or crashes
  • Network drop or timeout
  • Host kicks the client

Sequence:

  • ConnectionLost fires on the client.
  • The patch suppresses the normal return-to-menu flow.
  • A notification is shown: "Connection lost - attempting to reconnect..."
  • The reconnect sequence starts. Up to MaxAttempts attempts are made, each waiting up to AttemptIntervalSec seconds for the connection to resolve.
  • On success: the client is connected again. The intentional-leave flag is cleared and the sequence ends silently.
  • On failure (all attempts exhausted, or StartClient throws every time): the normal menu-return flow is restored and the game returns to the main menu as if ConnectionLost had run normally.

A cooldown (CooldownSec) prevents a new reconnect sequence from starting too soon after the last one, avoiding rapid-fire loops if the host is unstable.

Commands

| Command | Short | Description |

|---------|-------|-------------|

| /reconnecttoggle | /rct | Get or set auto-reconnect on/off. No arg toggles; on/off sets directly |

| /reconnectmaxattempts | /rcma | Get or set max reconnect attempts (1-100) |

| /reconnectinterval | /rciv | Get or set seconds between attempts (2-30) |

| /reconnectcooldown | /rccd | Get or set cooldown between sequences in seconds (10-120) |

| /reconnectsimulate | /rcs | Simulate an unintentional disconnect to test the reconnect sequence |

| /reconnectfocus | /rcf | Manually repair broken focus areas after reconnect |

| /reconnecthelp | /rch | List all reconnect commands |

Configuration

| Setting | Default | Description |

|---------|---------|-------------|

| Enabled | true | Enable auto-reconnect |

| MaxAttempts | 3 | Max reconnect attempts (1-100) |

| AttemptIntervalSec | 5 | Seconds between attempts |

| CooldownSec | 30 | Minimum seconds between reconnect sequences |

Installation

Install or r2modman.

Requires: Alpha

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

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

BepInEx-BepInExPackAndrewLin-Alpha

檔案與校驗

檔案名稱
Reconnect-0.0.5.zip
檔案大小
41.7 KiB