Straftat LobbyRank

版本 v2.5.1·更新於 2026-06-25

A mod that displays people's ranks under their names

模組介紹 作者原文

yet another straftistics clone

WHERE IS THE DOWNLOAD BUTTON

the latest build will always be found at

Overview

This mod for STRAFTAT displays player's ranks under their name in lobbies and in game

How It Works

the mod listens to setPlayerValues and UpdatePLayerList.

  • SetPlayerValues:
  • on call, the mod will either replace the current displayed name with a cached string in the format name \n rank(score),

or fetch the single player's rank and cache it if it is not available

  • also, a safeguard is in place to avoid having multiple simultaneous fetches for the same user
  • UpdatePlayerList:
  • this is used to avoid caching too many users. the game calls this func when you leave the game (and other instances i guess)

when called, the mod will clear unnecessary cached players if the cache has more than 5 players.

"Cheater handling"

This mod utilizes C0mputery's whitelist to have a "cheater offset" for ranks.

It is semi-widely known that some people have cheated their ranks, so this whitelist has been put in place so that those people are filtered out (or at least we try to)

What happens is:

  • it fetches the full list of people allowed to be in the top 10 (~140 community-known players)
  • it fetches all of their steam leaderboard data
  • orders the full list by rank
  • takes the fist 10 players

at this point we have a list of what the top 10 should be. What the mod does now is

  • define and save a cheater offset such that

offset = top10Players[last].rank - 10

this means that in case the last player's steam rank is 10, the offset will be 0, in case it's 12, it'll be 2 and so on.

  • normalize the top 10 so that it goes from rank 1 to 10

no amount of cheaters will ever make a legit player be ranked higher than another legit player, so we don't really need to know where the cheaters are in the top 10

  • use the saved offset when displaying any non-top10 rank, and the normalized list to display the top 10s

e.g. if steam says my rank is 125 and there are 6 cheaters in the top 10, the mod will display my rank as 119.

Ball Knowledge

there are three possible states for a rank element:

  • ~125

the tilde (~) signals that the mod is not done fetching the whitelist's ranks, so what is being shown is the raw, non-offset, steamLB rank

  • #125

the hashtag signals that the whitelist has been correctly fetched and the shown rank is offset

3)!9

the exclamation mark is accompanied by the rank being bright red. the number shown is the raw steamLB rank, non-offset

this is reserved for the players who would be in the top 10, but are not in the whitelist.

does this mean they are a cheater?

not for sure, they could be, or they could only have to ask nicely in the tournament discord to be added to the whitelist

also, top 10 players will have a golden rank color

Data Source

The mod retrieves rank and score from the game's leaderboard system via Steamworks API

Usage

Install the mod using a compatible mod loader (e.g., BepInEx).

Contributing

PRs and issues are always welcome!

I try to maintain this project in weekends or after work hours when I can, so sorry in advance if a PR hangs for a couple of days

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

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
Straftat_LobbyRank-2.5.1.zip
檔案大小
84.8 KiB