GGeery-ReppoCompat icon

ReppoCompat

Preloader patcher: re-adds old R.E.P.O. method overloads (Sound.PlayLoop, PlayerHealth.Hurt, PossessChat...) so outdated mods stop throwing MissingMethodException every frame.

By GGeery
Last updated 19 minutes ago
Total downloads 3
Total rating 0 
Categories AI Generated
Dependency string GGeery-ReppoCompat-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

ReppoCompat

BepInEx preloader patcher for R.E.P.O. v0.5.x.

The v0.5 update appended new (optional) parameters to several game methods. Older mods still call the old signatures and throw MissingMethodException - often every frame, which breaks their items and drags FPS down with log spam. At load time this patcher adds the old signatures back to Assembly-CSharp; each one simply forwards to the new method with the new parameters' default values. Vanilla behaviour is unchanged.

Restored overloads: Sound.PlayLoop, PlayerHealth.Hurt, ChatManager.PossessChat, ParticleScriptExplosion.Spawn, PhysGrabObjectImpactDetector.DestroyObject, PlayerController.OverrideSpeed, PostProcessing.Contrast/SaturationOverride, PunManager.Upgrade* (9), PhysGrabber.ReleaseObjectRPC.

The restored overloads are marked [CompilerGenerated], and name-only Harmony lookups (AccessTools.Method/DeclaredMethod without argument types, e.g. [HarmonyPatch(typeof(PlayerHealth), "Hurt")]) of these methods are redirected to the game's own method, so mods that patch them by name keep working.

Helps e.g. SillyValuables, FNAF1/2 Valuables, McDonalds Valuables, PortalCore Valuables, ScalerCore. Client-side: every player who wants the fix needs it. Log lines on start: Compatibility overloads added: 18/18 and Name-only Harmony lookups of the restored methods resolve to the game's own method.