REPOBlacklist
Pick the shop items, valuables and enemies that never spawn when you host. In-game F3 menu, one list for every save. Only the host needs it.A BepInEx plugin for R.E.P.O. that lets the host pick which shop items, level valuables, and enemies should never spawn. Selections are made through an in-game menu (default hotkey F3) and are kept for every save file on the install.
Only the host's blacklist takes effect: the shop, the valuables and the enemies are all chosen on the host and sent to the other players. Non-hosts can still install the mod and use the menu; their list is saved and is used the next time they host.
Using it
- Press F3 in the truck, the shop or a level. The menu has three tabs: Items, Valuables, Enemies.
- Tick what you never want to see. The Filter box narrows a long list by name. Every tick is saved straight away.
- Close with F3, Esc or Close.
A change takes effect from the next shop or level on. Things that are already in the current shop or level stay.
| Tab | What it leaves out |
|---|---|
| Items | The shop's stock, the secret shop included, and the upgrades an upgrade-stand reroll offers. |
| Valuables | The valuables placed in a level. |
| Enemies | The enemies picked for a level. |
Two limits:
- If you blacklist every enemy of one difficulty, a level has fewer enemies. Nothing is put in their place.
- If you blacklist every valuable a level has, the level has no valuables. Its haul goal is then $0, so the extraction point completes with nothing in it.
What the DLL actually does
On plugin Awake(), it:
- Reads its config.
BepInEx/config/isaia.repoblacklist.cfgholds the menu key (UI / MenuToggleKey, defaultF3). - Loads the blacklist.
BepInEx/config/REPOBlacklist.json(created on the first tick) holds three sorted lists of names:items,valuables,enemies. The file is written to a temporary file and swapped in on every change. If it cannot be read, it is copied toREPOBlacklist.json.bak, the blacklist starts empty and the log says so. - Installs its hooks (next section). If the game no longer has one of the methods, the log names the part that cannot work, the other parts keep working, and the menu shows which ones do.
- Adds the menu. Three tabs, a text filter, Refresh, Dump, Close, and a per-tab Clear with a two-click confirmation. Names that are blacklisted but not loaded by the game right now stay listed as "(not found right now)", so they can be unticked.
While the menu is open the game's controls are held still with the game's own switches (InputManager.DisableMovement, DisableAiming, DisableControlsExcept) and the cursor is freed with CursorManager.Unlock, the same calls the game's menus use. You cannot walk, look, grab or open the pause menu until it closes; push-to-talk keeps working. The game does not pause.
How the blacklist is applied
The hooks run on the host only and leave the game's own lists as they are.
| Part | Game method | What the hook does |
|---|---|---|
| Shop items | ShopManager.GetAllItemsFromStatsManager |
After the game has filled the shop's pools, removes blacklisted items from them, the secret-shop pools included. |
| Upgrade stand | UpgradeStand.GetWeightedUpgradeExcluding |
If a reroll picked a blacklisted upgrade, asks the game to pick again, up to 12 times. If every try is blacklisted, that slot stays empty. |
| Enemies | EnemyDirector.PickEnemies, EnemyDirector.AmountSetup |
Hands the game a copy of the difficulty's enemy list without the blacklisted ones. If nothing is left for a slot, the slot is dropped and the level's enemy count is lowered to match. |
| Valuables | ValuableDirector.SetupHost |
Takes blacklisted valuables out of the level's lists while the game copies them, then puts them back. |
Each one writes a line to BepInEx/LogOutput.log when it leaves something out, for example Shop: left out 2 blacklisted item(s): .... Dump writes which hooks are working, whether you are the host, and for each tab the blacklisted names and the names the game has loaded.
Install
Install with a mod manager, or by hand: drop REPOBlacklist.dll into <profile>/BepInEx/plugins/REPOBlacklist/. Requires BepInEx-BepInExPack.
The blacklist file at BepInEx/config/REPOBlacklist.json is shared by every save and every lobby on that BepInEx install. Deleting it empties the blacklist. A list made with 0.2.2 is read as it is.
Compatibility
- Checked against R.E.P.O. v0.5.3 (Unity 6) with BepInEx 5.4.23.
- Only the host needs it. A non-host's list does nothing in that lobby. The menu itself works for whoever opens it.
- Patches five game methods, listed above, with Harmony prefixes and postfixes that do not skip the game's own code. Another mod that patches the same methods can run alongside. Nothing in Unity is patched.
- No network traffic of its own. A host with the mod can play with players who do not have it.
- Content mods. Items, enemies and valuables that a mod adds to the game's own lists show up in the menu and can be blacklisted like the game's own. This has not been tested with every content pack.
Changelog
0.2.3
- Checked against the current game (R.E.P.O. v0.5.3, Unity 6).
- The blacklist is now applied where the game picks what to spawn (shop stock, upgrade-stand rerolls, enemy picks, level valuables) and no longer edits the game's own lists.
- The valuables blacklist works again, and upgrade-stand rerolls follow the items blacklist.
- Blacklisting every enemy of one difficulty gives a level fewer enemies instead of an empty slot.
- The menu holds the game's controls the way the game's own menus do, and Esc closes it. The patches on Unity's input methods are gone.
- The blacklist file is saved safely, and a file that cannot be read is kept as a
.bakcopy.
Every version is in CHANGELOG.md.
