ItemSpawner REPOLib42 Compat

v1.0.0·Updated 2026-09-09

Spawn any item or valuable from an in-game window. A rewritten, working replacement for ItemSpawner_Fixed, updated for REPOLib 4.2.

About this mod Author’s original text

ItemSpawner REPOLib 4.2 Compatibility

A rewritten, working replacement for Spoopylocal's original ItemSpawner mod

( which broke

after the game updated and REPOLib moved past its pre-3.0 API

(RegisteredValuables, etc.).

Target:

  • R.E.P.O. 0.4.4.x
  • REPOLib 4.2.0
  • BepInEx 5.x

How it works

  • Uses REPOLib.Modules.Items.SpawnItem and

REPOLib.Modules.Valuables.AllValuables / Valuables.SpawnValuable

(REPOLib 4.2 API), instead of the old pre-3.0 calls the original mod used.

  • The GUI is not attached to the plugin's own GameObject. In this game

that object never receives Update/OnGUI callbacks (unclear why -

possibly how BepInEx's manager object is parented/hidden here). Instead, a

Harmony postfix on PlayerAvatar.Start adds the ItemSpawnerGui component

directly onto the local player's own GameObject, which the game guarantees

is active and ticking. This mirrors what the original mod did (it patched

ShopManager.Awake for the same reason).

  • Item lookups do not use REPOLib.Modules.Items.AllItems. That property

reads StatsManager.itemDictionary, which the game only populates on a

full progress reset (StatsManager.RunStartStats) - in an ordinary session

with an existing save it stays empty, silently hiding every item (weapons

included). Instead we call Resources.FindObjectsOfTypeAll(), which

finds every Item asset actually loaded in memory regardless of that

dictionary.

  • Name matching checks both the REPOLib "friendly" name (itemName) and the

raw Unity asset name (e.g. "Item Gun Handgun", which is what the original

mod matched on), first for an exact match, then a partial (contains) match.

Controls

  • The spawn window is visible by default when you load into a level - no

key press needed.

  • If you click "Hide", a small "ItemSpawner" tab stays in the top-left

corner to bring the window back.

  • Type or paste (Ctrl+V works) an item/valuable name into the text field and

click Spawn. Pasting a full slash command like `/additem Item Gun

Handgun also works - the /additem` part is stripped automatically.

  • Click All Items or All Valuables to browse everything currently

loaded (base game + any REPOLib-registered mod content), with a filter

box. Clicking an entry fills the text field for you.

Why there's no hardcoded item list here

Earlier versions of this README shipped a hand-maintained list of every

valuable/item name. That list goes stale the moment the base game or any

REPOLib mod adds new content. Instead of maintaining a list by hand, the mod

reads the live list from the game at runtime - use the in-game All

Items / All Valuables buttons described above to see exactly what's

spawnable in your current modded setup, always up to date.

Notes

  • Do not replace REPOLib with 1.4.2. Keep REPOLib 4.2.0.
  • Build with Visual Studio/MSBuild on Windows. The.csproj HintPath

entries point at a Mod Manager profile and the Steam game

install - update them if your paths differ.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.

Dependencies

Install these first, or the mod will not work:

Zehs-REPOLib

File & checksum

Filename
ItemSpawner_REPOLib42_Compat-1.0.0.zip
File size
12.6 KiB
SHA-256
ac3de6c66f74d6a75b065509bc50a5e9bef8c75bb4464a7391983a1fe69dbeec
Stored at
2026-10-12 00:54