R.E.P.O.
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
132
Likes
0
Size
11KB
Dependants

Categories

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.

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