
You are viewing a potentially older version of this package. View Latest Version
REPO Compatibility Patch
Comprehensive compatibility patch for R.E.P.O: fixes MissingMethodException loops (PlayerHealth.Hurt, ChatManager, Sound), PhotonView lag, weapon hold offsets, grenades, REPOLib duplicate items, and multiplayer item loading.REPO Compatibility Patch (v1.0.0)
A comprehensive compatibility patch and bug fix framework for R.E.P.O and community mods.
๐ Features & Fixes
1. Game Update Compatibility & MissingMethodException Loop Fix
When R.E.P.O updated, several core methods changed their parameter signatures. Older mods calling the deprecated signatures flooded the console and log files with tens of thousands of exceptions every second:
MissingMethodException: Method not found: void .PlayerHealth.Hurt(int,bool,int):- The game updated
PlayerHealth.Hurtto take 4 parameters (bool hurtByHeal). Legacy mods threw exceptions every frame (over 35,000+ times). - This mod includes a BepInEx Preloader Patcher that injects backward-compatible bridge overloads directly into
Assembly-CSharp.dllin memory.
- The game updated
- Additional Method Bridges:
PlayerHealth.HurtOther(4 params โ 5 params)ChatManager.PossessChat(8 params โ 9 params with_localeCode)PlayerController.OverrideSpeed(2 params โ 3 params with_sprintCap)Sound.PlayLoop(4 params โ 5 params withvolumeMultiplier)ParticleScriptExplosion.Spawn(8 params โ 9 params withinvestigateRadius)PhysGrabObjectImpactDetector.DestroyObject(1 param โ 2 params withforced)PhysGrabber.ReleaseObjectRPC(2 params โReleaseObject)PrefabRef.get_Prefab()(Non-generic base class โ genericPrefabRef<GameObject>)- VisualScripting
GhostMeshVisualizerBridge,PathsVisualizerBridge, etc.
2. REPOLib Duplicate Valuable Collision & Null Fix
- "Failed to register valuable 'Valuable Banana' - A valuable prefab is already registered with the same name":
- When multiple mods register a valuable with the same name, REPOLib previously rejected the second one with an error. This mod automatically disambiguates colliding IDs so both items load and spawn properly.
- "Failed to register valuable. ValuableObject is null.":
- Safely ignores unassigned ScriptableObjects in bundles without throwing log errors.
3. Multiplayer Item Spawning (DefaultPool / MultiplayerPool)
MultiplayerPool failed to load "Items/Item Meoffin". Make sure it's in a "Resources" folder.:- When mods spawn custom shop items into levels in multiplayer, Photon's default pool failed to find them in Unity's internal
Resourcesfolder. - This mod provides an automatic fallback to REPOLib's
NetworkPrefabsdictionary, enabling custom shop items to spawn cleanly in multiplayer without console errors.
- When mods spawn custom shop items into levels in multiplayer, Photon's default pool failed to find them in Unity's internal
4. Network Lag & Console Spam (PhotonView IPunObservable)
- Safely removes non-
IPunObservablecomponents (ItemMelee,Module) from Photon's observation list to stop log spam and multiplayer network stutter.
5. Weapon Hold Distance Fix
- Custom guns no longer snap into the player's head when held (
distanceKeep = 0.8f).
6. Grenades Audio, Trajectory & Physics
- Replaces broken audio calls with native 3D audio emitters matching the game's mine warning sound.
- Fully restores grenade pin animation, throw trajectory, and impact explosion.
๐ฆ Installation
Via Thunderstore / r2modman (Recommended)
- Install this mod directly through the mod manager.
- Ensure BepInEx is installed.
Manual Installation
Extract the zip archive into your game's root directory:
BepInEx/patchers/REPOCompatibilityPatch/REPOCompatibilityPatcher.dllBepInEx/plugins/REPOCompatibilityPatch/REPOCompatibilityPatch.dll
๐ ๏ธ License
Licensed under the MIT License.