Heartbeat

版本 v1.2.0·更新於 2026-06-23

Prevents Steam lobbies from expiring during long sessions, fixing the "Couldn't connect to the lobby" error shown in-game.

模組介紹 作者原文

Heartbeat

Keep your On-Together lobby alive during long sessions.

Heartbeat helps prevent the in-game "Couldn't connect to the lobby" error by periodically refreshing the Steam lobby while you are hosting.

What It Does

  • Keeps long-running lobbies joinable by writing a small Steam lobby heartbeat on a timer.
  • Refreshes lobby metadata so the lobby name and social tags stay fresh in Steam's listing cache.
  • Starts immediately when a lobby is detected. No waiting for the first full interval.
  • Only runs on the host because Steam only allows the lobby owner to update lobby data.
  • Does not touch gameplay, saves, UI, timers, or player data. It only updates Steam lobby metadata.

Why You Want It

If you leave an On-Together lobby running for many hours, Steam's lobby listing can become stale. The lobby may still exist, but players can start seeing "Couldn't connect to the lobby" when trying to join later.

Heartbeat keeps that Steam lobby listing refreshed so friends can keep joining during long co-working, focus, or dedicated-server-style sessions.

Config

The config file is generated at:

BepInEx/config/com.ontogether.lobbyheartbeat.cfg

General

  • LobbyHeartbeatEnabled: true

Turns the heartbeat on or off without uninstalling the mod.

  • LobbyHeartbeatIntervalMinutes: 2

Minutes between heartbeats. 1 to 2 is recommended for very long sessions. The value is clamped from 0.25 to 10.

  • ColorConsole: true

Shows Heartbeat's console messages in purple text. Turn this off if your console shows raw color codes.

Lobby

  • RefreshExistingData: true

Re-writes the lobby's current name and tags on every heartbeat so Steam keeps every field fresh, not just the internal heartbeat key.

  • ManageLobbyName: false

If enabled, Heartbeat forces the Steam lobby name to the value in LobbyName on every heartbeat.

  • LobbyName: (empty)

Custom lobby name used when ManageLobbyName is enabled.

  • TagFocus / TagMature / TagChill / TagBreak / TagModded: (empty)

Optional tag overrides. Leave these empty to preserve whatever the game already set.

How To Use

  • Install Mod Manager / r2modman, or install manually with BepInEx 5.
  • Launch On-Together.
  • Host a lobby.
  • Heartbeat will automatically detect the lobby and keep the Steam listing refreshed.

If you join someone else's lobby, Heartbeat will stay idle. That is expected: only the lobby host can refresh Steam lobby data.

Manual Installation

  • Install BepInEx 5 for On-Together.
  • Download the latest Heartbeat release.
  • Extract the zip into your On-Together game folder so it merges into BepInEx.
  • Confirm the plugin exists at:

BepInEx/plugins/Heartbeat/LobbyHeartbeat.dll

Notes

  • Heartbeat is a lobby-listing keepalive, not a gameplay/networking overhaul.
  • For normal use, leave the interval at the default 2 minutes.
  • For testing, you can temporarily set the interval to 0.25 minutes.

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

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
Heartbeat-1.2.0.zip
檔案大小
98.9 KiB