You are viewing a potentially older version of this package. View all versions.
WUYACHIYU-PlayersInfo-0.1.0 icon

PlayersInfo

Show nearby teammates' stamina, temporary stamina, status, and inventory in a compact HUD.

Date uploaded 2 months ago
Version 0.1.0
Download link WUYACHIYU-PlayersInfo-0.1.0.zip
Downloads 3640
Dependency string WUYACHIYU-PlayersInfo-0.1.0

This mod requires the following mods to function

BepInEx-BepInExPack_PEAK-5.4.2403 icon
BepInEx-BepInExPack_PEAK

BepInEx pack for PEAK. Preconfigured and ready to use.

Preferred version: 5.4.2403

README

PlayersInfo 0.1.0

PlayersInfo gives you a small teammate panel in PEAK. It shows nearby teammates' stamina, temporary stamina, status, distance, and inventory, so you can quickly see who is struggling and what the team is carrying.

Installation

  1. Install BepInEx for PEAK.
  2. Put PlayersInfo.dll into BepInEx/plugins.
  3. Start the game once to generate the config file.

Features

  • Teammate stamina bars with optional numeric values.
  • Temporary stamina display, including extra stamina from status effects.
  • Teammate inventory row: main slots, temp slot, backpack slot, and backpack contents.
  • Nearby teammate filtering by distance.
  • Limit how many nearest teammates are shown.
  • Debug logging switch for troubleshooting without flooding normal logs.

Configuration

The config file is generated at:

BepInEx/config/com.players.info.cfg

Section Key Default Description
General Enabled true Master switch for the mod.
Features EnableStaminaBar true Show teammate stamina bars.
Features ShowStaminaValue true Show numeric stamina values.
Features EnableInventoryRow true Show teammate inventory rows.
Features RoundStaminaValue true Round stamina values to whole numbers.
Layout Anchor TopLeft HUD anchor corner.
Layout OffsetX 0 Extra horizontal offset.
Layout OffsetY 0 Extra vertical offset.
Nearby NearbyRange 30 Max teammate distance in meters. 0 means unlimited.
Nearby MaxNearbyCount 3 Maximum number of nearest teammates shown.
Diagnostics DebugLogging false Enable verbose diagnostic logs.

Notes

  • PlayersInfo only displays information. It does not change stamina, inventory, health, or teammate state.
  • In very large lobbies, you may want to lower MaxNearbyCount or NearbyRange to keep the HUD compact.

CHANGELOG

Changelog

[0.1.1] - 2026-05-29

Bugfixes

  • Fixed teammate temporary stamina values being clipped when the teammate HUD was anchored near the left edge of the screen. The extra-stamina number now picks the safe side of the bar from the configured HUD anchor, and the text rect is wider to avoid hiding the + or higher digits.
  • Fixed inactive configuration options. EnableStaminaBar now hides teammate bars, and Anchor / OffsetX / OffsetY now reposition the HUD. Config values from the old General / Features / Layout / Nearby / Diagnostics sections are migrated into the merged Display / Advanced layout.
  • Added optional Chinese ModConfig localization for PlayersInfo section names, option names, enum values, and descriptions when PEAKLib.ModConfig is installed. The plugin remains fully usable without ModConfig.
  • Hardened the teammate HUD against transient network jitter. The plugin now keeps a viewID → actorNumber cache so the same player keeps a stable identity even when Photon briefly reports Owner == null, and individual bars are retained for up to 1.5 s when a teammate momentarily disappears from the team list (Photon reconnect, teleport, scene transition). This prevents bars from blanking out and visibly "jumping" for one or two frames during network hiccups.
  • Fixed teammate stamina bars all flickering / fully rebuilding whenever any config entry changed (e.g. dragging the OffsetX slider in BepInEx ConfigurationManager). The plugin now only rebuilds the HUD when truly structural toggles change (Enabled, ShowStaminaValue, EnableInventoryRow); runtime numeric values are read live each frame.
  • Fixed individual teammate bars flickering when a teammate's distance hovered around the NearbyRange boundary. Already-shown teammates now use a 5 m hysteresis margin (range + 5), so small distance jitter at the edge no longer kicks bars in and out of the visible set.

Performance

  • Cached numeric stamina text values per teammate so the HUD only updates the TextMeshPro string when the displayed integer actually changes. Reduces per-frame string allocations and TMP mesh rebuilds.
  • Throttled the reflective CharacterData.isInvincible lookup used to drive the shield icon to once per 0.25 seconds instead of every frame, eliminating the per-frame boxing allocation.
  • IconSpriteCache.Clear now destroys cached Sprite instances before clearing the dictionary, and newly created sprites are flagged with HideFlags.DontSave. Prevents leftover sprite assets from accumulating across scene loads.

Compatibility

  • Built against PEAK 1.62.a. No gameplay or networking behavior changed; PlayersInfo remains display-only.

[0.1.0] - 2026-05-10

Initial release

  • Added a teammate HUD that shows nearby players in a compact list.
  • Added teammate stamina bars, including temporary extra stamina.
  • Added teammate inventory rows for the main slots, temp slot, backpack slot, and backpack contents.
  • Added local stamina value overlay.
  • Added distance-based filtering and maximum teammate count options.
  • Added a debug logging switch so normal gameplay logs stay quiet.

Compatibility notes

  • PlayersInfo is display-only. It does not send gameplay RPCs or change teammate state.