R.E.P.O.
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
1.9K
Size
138KB

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.Hurt to 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.dll in memory.
  • 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 with volumeMultiplier)
    • ParticleScriptExplosion.Spawn (8 params โ†’ 9 params with investigateRadius)
    • PhysGrabObjectImpactDetector.DestroyObject (1 param โ†’ 2 params with forced)
    • PhysGrabber.ReleaseObjectRPC (2 params โ†’ ReleaseObject)
    • PrefabRef.get_Prefab() (Non-generic base class โ†’ generic PrefabRef<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 Resources folder.
    • This mod provides an automatic fallback to REPOLib's NetworkPrefabs dictionary, enabling custom shop items to spawn cleanly in multiplayer without console errors.

4. Network Lag & Console Spam (PhotonView IPunObservable)

  • Safely removes non-IPunObservable components (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)

  1. Install this mod directly through the mod manager.
  2. Ensure BepInEx is installed.

Manual Installation

Extract the zip archive into your game's root directory:

  • BepInEx/patchers/REPOCompatibilityPatch/REPOCompatibilityPatcher.dll
  • BepInEx/plugins/REPOCompatibilityPatch/REPOCompatibilityPatch.dll

๐Ÿ› ๏ธ License

Licensed under the MIT License.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.