RarityWeightMod

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

Configure cosmetic box spawn count and rarity weights per level. Set how many boxes spawn and control the chance of each rarity tier.

模組介紹 作者原文

RarityWeightMod

📖 About

RarityWeightMod is a R.E.P.O. mod that controls how many cosmetic boxes spawn per level and the rarity weight of each tier.

✨ Features

  • In-game Settings Panel (F5) — configure everything without editing files
  • Box Markers (F6) — color-coded brackets showing box locations on screen
  • Three spawn modes: Volume_Offline, All_Offline, AutoLevel_Online
  • Rarity weights: control spawn chance of Common, Uncommon, Rare, and UltraRare independently
  • Customizable hotkeys: rebind Settings and Markers toggle keys in-game
  • Level-only: patches apply only during actual levels — not in shop, lobby, or arena
  • BepInEx config: edit BepInEx/config/com.yourname.rarityweightmod.cfg or use in-game Settings

🎮 In-Game Controls

F5 — Open/Close Settings Panel

  • Change spawn mode, box count, rarity weights
  • Toggle HUD and box markers
  • Rebind hotkeys (click button → press new key)
  • ESC to close

F6 — Toggle Box Markers

  • Shows/hides color-coded brackets around cosmetic boxes
  • Green = Common, Blue = Uncommon, Purple = Rare, Orange = UltraRare

⚙️ Spawn Modes

Volume_Offline (requires all players to have the mod)

Spawns up to BoxCount boxes per level, limited by available spawn volumes. Stops naturally when no volumes remain.

All_Offline (requires all players to have the mod)

Forces BoxCount boxes using a compensation window of BoxCount × 3 - 1 attempts. More reliable than Volume on smaller levels.

AutoLevel_Online (host-only — friends do not need the mod)

Automatically spawns the maximum number of boxes the current level allows to extract. Scales with progression:

| Levels completed | Can sell per level |

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

| 1–5 | 1 box |

| 6–10 | 2 boxes |

| 11+ | 3 boxes (max) |

Values depend on cosmeticWorldObjectsLevelLoop (5) and cosmeticWorldObjectsLevelLoopsMax (2) from the game's ValuableDirector.

🔧 Configuration

In-Game (Recommended)

Press F5 during gameplay to open the Settings panel. All options can be changed in real-time.

Config File (Advanced)

Edit BepInEx/config/com.yourname.rarityweightmod.cfg:

[General]

Enable or disable the mod entirely.

Default: true

Enabled = true

Spawn mode:

Volume_Offline - targets BoxCount boxes, limited by spawn volumes (all players need mod)

All_Offline - forces BoxCount boxes with compensation loop (all players need mod)

AutoLevel_Online - auto-scales to level extract limit, host-only

Default: Volume_Offline

Mode = Volume_Offline

Target box count per level — used by Volume_Offline and All_Offline only.

Acceptable values: 1-20

Default: 3

BoxCount = 3

[Display]

Show HUD info in top-left corner.

Default: true

ShowHUD = true

Show color-coded brackets around cosmetic boxes.

Default: true

ShowBoxMarkers = true

[Hotkeys]

These are hidden from REPOConfig — rebind in-game via Settings panel (F5).

Format:

Default: F5

OpenSettingsKey = F5

Default: F6

ToggleBoxMarkersKey = F6

[RarityWeights]

Weights are ratios. Example: 60:25:12:3 gives ~60% Common, ~25% Uncommon, ~12% Rare, ~3% UltraRare.

Setting all four equal gives 25% chance per tier.

Default: 60

CommonWeight = 60

Default: 25

UncommonWeight = 25

Default: 12

RareWeight = 12

Default: 3

UltraRareWeight = 3

📦 Installation

  • Install BepInExPack REPO
  • Place RarityWeightMod.dll in BepInEx/plugins/
  • Launch the game
  • Press F5 in-game to configure

📜 Changelog

See CHANGELOG.md

📄 Dependencies

  • BepInExPack_REPO >= 5.4.23

🧩 Compatibility

Patches ValuableDirector.SpawnCosmeticWorldObject, CosmeticWorldObjectLevelLoopsClampedGet, CosmeticWorldObjectLevelLoopsGet, and CosmeticWorldObject.Start. Does not modify EnemyDirector, LevelGenerator, or any other system.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

BepInEx-BepInExPack

檔案與校驗

檔案名稱
RarityWeightMod-1.1.0.zip
檔案大小
18.2 KiB