CasinoLedger

版本 v0.5.1·更新於 2026-09-21

Per-player casino profit and loss for Blackjack, Ride the Bus and Slots: live HUD standings, a day-end stats screen, and an API for other mods. Co-op, IL2CPP.

模組介紹 作者原文

Casino Ledger

Who is actually winning at the casino. Tracks every player's profit and loss across

Blackjack, Ride the Bus and Slots.

  • Live standings. A panel on the right of the screen lists each player's total casino

profit in this save, green when up, red when down, best first. It is always on screen

with the game HUD, starting at $0 for everyone.

  • Day-end stats. After the sleep summary closes, a stats screen shows the group's

wagered, returned and profit totals, a chart of each player's running profit over the day,

profit per game, and the best and worst single rounds. Click Continue, or press the confirm button on a controller, to close it.

  • Totals per save. Rounds, wins, losses, pushes, amount wagered, amount returned and

largest win and loss, per player and per game, kept in one file per save under

UserData/CasinoLedger. A co-op world uses the same file name on the host and every client.

Install it on every player. Each player's game reports its own rounds to the rest of the

session, and the host's totals are the shared truth: anyone who joins late or missed rounds is

brought in line when they join and again at the end of each day. Players without the mod are

not tracked.

Totals from Casino Ledger 0.1 (ledger.txt) and Death Notices 0.2 mixed every save together, so

they are not carried over; the old files are left in place. The mod never changes payouts, odds or money.

Settings

The Mods tab of the game's settings screen (from Mod Settings,

installed automatically) has the standings switch, the standings size and the day-end stats

switch. F7 also toggles the standings in game. Everything is stored in UserData/MelonPreferences.cfg, section CasinoLedger:

| Key | Default | Meaning |

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

| hud_enabled | true | Show the live standings panel |

| day_summary_enabled | true | Show the day-end stats screen |

| hud_margin_right | 13 | Panel distance from the right edge, in 1920x1080 units; the default lines up with Clear Minimap |

| hud_margin_top | 420 | Panel distance from the top edge, in 1920x1080 units |

| hud_scale | 1 | Panel size multiplier from 0.5 to 3 |

| hud_toggle_key | F7 | Key that shows or hides the panel in game and saves the choice; None disables the key |

For mod authors

Reference CasinoLedger.dll and use the CasinoLedger.CasinoStats class:

CasinoStats.round_settled += report =>

{

// report.round: player_key, player_name, game, stake, returned, net

// report.lifetime / report.day: Totals for that player after the round

if (report.round.net < 0) MelonLogger.Msg($"{report.round.player_name} is at {report.lifetime.net}");

};

Totals slots_today = CasinoStats.day(CasinoStats.player_key(player.PlayerCode), CasinoGame.Slots);

The event fires on the Unity main thread for every player's rounds, local and remote.

To keep Casino Ledger optional, add [assembly: MelonOptionalDependencies("CasinoLedger")],

check MelonBase.FindMelon("Casino Ledger", "holyfurries"), and only touch CasinoStats

from a separate non-inlined method. Death Notices does exactly this.

Installation

Install through r2modman or Mod Manager.

For manual installation, put CasinoLedger.dll in your game's Mods folder.

Requires MelonLoader 0.7.3. IL2CPP only.

Development

Build instructions: BUILDING.md.

License

MIT.

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

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

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

前置依賴

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

LavaGang-MelonLoaderholyfurries-ModSettings

檔案與校驗

檔案名稱
CasinoLedger-0.5.1.zip
檔案大小
28.8 KiB