PlayerCountFixed

版本 v1.1.0·更新於 2026-06-07

Lightweight REPO lobby player counter that shows Photon current/max players with configurable UI position and font size.

模組介紹 作者原文

PlayerCountFixed

PlayerCountFixed is a lightweight BepInEx plugin for R.E.P.O. that adds a clean lobby player counter showing:

Players: current/max

It is designed for players who want a simple, reliable player-count display for normal or expanded lobbies.

What it does

PlayerCountFixed displays the number of players currently in the room and the room's maximum player count on the lobby screen using the current Photon room state.

Example:

Players: 3/17

The counter appears in the lobby page using a compact yellow TextMeshPro label.

Expanded-lobby compatibility

Expanded-lobby mods are not required. PlayerCountFixed works with expanded-lobby mods that set the Photon room max player count correctly.

How it works

PlayerCountFixed follows a conservative runtime flow:

  • When the lobby page opens, it attaches one TextMeshPro label to the lobby UI.
  • The label refreshes every 0.25 seconds instead of every frame.
  • Text is only written when the displayed value changes.
  • The display uses Photon room state: Players: PhotonNetwork.CurrentRoom.PlayerCount/PhotonNetwork.CurrentRoom.MaxPlayers.
  • Errors are guarded and logged at most once to avoid console spam.

This means the plugin does not perform repeated global Resources.FindObjectsOfTypeAll scans and does not continuously rewrite UI text every frame.

UI configuration

PlayerCountFixed creates these BepInEx config entries:

  • UI / Position X (1080p) — default 240.
  • UI / Position Y (1080p) — default 30.
  • UI / Font Size — default 22.
  • UI / Color Mode — default new; values new or old. new colors current/slash/max and turns current red when full; old uses plain all-yellow Players: current/max.

Position values are direct RectTransform anchored-position UI units relative to the top-left anchor and are clamped to safe non-negative ranges. The game/Unity UI hierarchy handles final screen scaling. Font size is clamped to a safe positive range. Runtime config changes or explicit config reloads update while the lobby counter exists; plain external.cfg file edits require a config reload or game restart.

Installation

Install Mod Manager / r2modman, or manually copy:

BepInEx/plugins/PlayerCountFixed.dll

into your game's BepInEx plugins folder.

Compatibility notes

  • Requires BepInEx 5.
  • Works without any expanded-lobby mod installed.
  • Works with expanded-lobby mods that correctly set Photon room max players.

問題反饋

  • 作者小黑盒:

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
PlayerCountFixed-1.1.0.zip
檔案大小
124.9 KiB