Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
REPO Compatibility Patch
Essential performance and compatibility patch for modded R.E.P.O. Accelerates startup and level loading to seconds, prevents 120s timeouts on custom maps, and eliminates game-breaking MissingMethodExceptions.
| Date uploaded | 2 weeks ago |
| Version | 1.1.2 |
| Download link | DEADTROL-REPO_Compatibility_Patch-1.1.2.zip |
| Downloads | 1494 |
| Dependency string | DEADTROL-REPO_Compatibility_Patch-1.1.2 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
REPO Compatibility Patch
REPO Compatibility Patch is an all-in-one performance and compatibility framework designed for modded R.E.P.O. It seamlessly resolves game-breaking engine crashes, eliminates method signature incompatibilities across older mods, accelerates asset loading, and ensures multi-mod harmony without modifying game files on disk.
Whether you run a lightweight quality-of-life setup or a massive 50+ modpack with custom maps, weapons, and enemies, this patch keeps your game fast, stable, and error-free.
What This Mod Does & Key Highlights
⚡ Accelerated Game Boot & Asset Streaming
- High-Throughput Engine Pipeline: Reconfigures Unity's internal asset loader (
Application.backgroundLoadingPriority = High) to give multithreaded AssetBundle decompression priority, drastically shortening the time spent on the initial splash and loading screens. - Expanded Async GPU Uploads: Increases Unity's asynchronous GPU texture/mesh upload buffer to 64 MB and extends the upload time budget, eliminating stuttering and long freezes when loading high-resolution custom models.
- 4x Faster Prefab Instantiation: Optimizes async instantiation timeslices during dungeon preparation, enabling levels to assemble rooms, props, and custom items significantly faster.
🛡️ Map Loading Timeout Protection
- Bypasses the 120-Second Abort Limit: Vanilla R.E.P.O. enforces a strict 120-second timeout during level preparation (
prefab preparation took too long...), which kicks players back to the main menu when loading large custom map bundles (Burpleson Base, Minecraft Stronghold, The Facility, Damp Mine, The Stanley Parable, etc.). - Continuous Network Message Refresh: Safely keeps network synchronization alive while allowing complex modded levels to finish generating at their own pace without crashing or dropping connection.
🔧 Complete MissingMethodException Shims
Game updates often change core method signatures, causing older mods to trigger hundreds of game-loop errors (MissingMethodException) per second. This patch injects smart backward-compatibility overloads into memory:
PlayerController.OverrideSpeed: Resolves the 700+ error freeze loop caused when sprint buffs, boosters, or enemy slow effects trigger.PlayerHealth.Hurt&PlayerHealth.HurtOther: Seamlessly maps legacy 3- and 4-argument damage calls to current game functions.PostProcessing.VignetteOverride: Restores visual effect overrides for custom flashlights and environmental filters.ParticleScriptExplosion.Spawn: Ensures modded explosives, grenades, and visual effects trigger without error.PhysGrabObjectImpactDetector.DestroyObject: Guarantees legacy grab/destruction calls execute cleanly.PlayerVoiceChat.OverridePitch,ChatManager.PossessChat, andPlayerAvatar.Spawn: Maintains compatibility across custom voice, chat, and avatar accessories.
🤝 Multi-Mod Conflict Resolution
- Harmony Ambiguous Match Resolution: Automatically resolves reflection ambiguities when multiple mods patch identical methods (such as
IllagersandSillyValuablestargetingDestroyObject), ensuring totem delay animations and item features both work without registering errors. - REPOLib Duplicate Prefab Renaming: Intelligently identifies duplicate item IDs (such as duplicate banana valuables across different packs) and registers them with unique internal IDs so all custom items can coexist peacefully.
- Null Safeguards: Silently catches null registrations and missing directory exceptions (e.g.
SADmodelfixpreloader paths) before they can halt game initialization.
💾 Bulletproof Save Loading & Lobby Hosting
- Safe Save Deserialization: Protects
StatsManager.LoadGamewith a recovery guard that ensures UI states never hang indefinitely if an old save references retired mod assets. - Clean Private Lobby Initialization: Ensures Steam lobby network flags and room pools are properly primed when launching private or hosted sessions.
Why You Can Play With Peace of Mind
- Seamless Compatibility: Works alongside REPOLib, BepInEx 5, HarmonyX, and all major custom enemy, level, item, and overhaul mods.
- Zero Configuration Required: Everything is fully automated from the moment the game launches.
- Non-Invasive: All patches and shims operate strictly in memory via BepInEx and Harmony without permanently altering your game binaries or save files.
Credits
Maintained by DEADTROL for the R.E.P.O. modding community.
CHANGELOG
Changelog
1.1.2
- Restored LevelScaling & Custom Content Integration:
- Fully restored
SAD Model Fixprocessing so that custom valuables, enemies, and items have their correct 3D bounds,volumeType, andRoomVolumeCheckproperly assigned. - Resolved the issue where
Swaggies-LevelScalingHUD, EXP bar, and stats UI failed to appear on screen.
- Fully restored
- Universal Harmony Ambiguity Resolver:
- Added an in-memory Harmony resolver intercepting
AccessTools.DeclaredMethodandAccessTools.Method. - Automatically resolves any ambiguous method overloads (such as
PlayerHealth.HurtandPhysGrabObjectImpactDetector.DestroyObject) by cleanly directing patches to the primary game method. - Completely fixes Harmony errors in
Illagers(PatchTotemExitDelay) andLevelScaling(PlayerHealthPatch).
- Added an in-memory Harmony resolver intercepting
- Retained High-Performance Loading Pipeline:
- Preserved engine background loading optimizations (
backgroundLoadingPriority = High,asyncUploadTimeSlice = 16ms,asyncUploadBufferSize = 64MB, uncapped splash framerate, and audio mixer log spam suppression) for maximized loading speeds without breaking any mods.
- Preserved engine background loading optimizations (
1.1.1
- Startup Optimizations & Profiling:
- Identified bottlenecks during initial AssetBundle ingestion and refined threading configurations.
1.1.0
- High-Performance Loading Optimizations:
- Configured Unity's background asset loading threads to high priority (
Application.backgroundLoadingPriority = High), drastically reducing startup and AssetBundle loading wait times. - Temporarily uncapped splash screen framerate and disabled VSync during AssetBundle loading (
vSyncCount = 0,targetFrameRate = 500), allowing REPOLib coroutines to advance at maximum CPU speed without 16.6ms frame idle stalls. Standard VSync and framerates are restored immediately upon reaching the Main Menu. - Increased GPU async upload buffer to 64 MB and frame timeslice to 16 ms (
QualitySettings.asyncUploadTimeSlice,QualitySettings.asyncUploadBufferSize), speeding up texture and mesh streaming. - Suppressed over 2,200 redundant
Fixed AudioMixerGroupdebug logs, eliminating thousands of disk writes and SQLite transaction bottlenecks during startup. - Accelerated Unity's async prefab instantiation integration time (
AsyncInstantiateOperation.SetIntegrationTimeMS) from 4 ms to 16 ms for up to 4x faster dungeon and spare prop generation.
- Configured Unity's background asset loading threads to high priority (
- Level Preparation Timeout Fix:
- Intercepted
LevelGenerator.PrefabLoadCheckto prevent the vanilla 120-secondTimeoutException("prefab preparation took too long...") from aborting games back to the main menu when using large custom map packs.
- Intercepted
- Illagers Totem Delay Compatibility:
- Resolved Harmony reflection
AmbiguousMatchExceptiononPhysGrabObjectImpactDetector.DestroyObject.
- Resolved Harmony reflection
1.0.1
- Totem Exit Delay Guard: Added explicit method resolution for multi-mod Harmony patches targeting destructible objects.
- SADmodelfix Directory Guard: Automated safe preloader directory verification to prevent
DirectoryNotFoundException.
1.0.0
- Initial Release.
- Added in-memory compatibility overloads for
PlayerController.OverrideSpeed,PlayerHealth.Hurt,PostProcessing.VignetteOverride,ParticleScriptExplosion.Spawn,PhysGrabObjectImpactDetector.DestroyObject,PlayerVoiceChat.OverridePitch,ChatManager.PossessChat, andPlayerAvatar.Spawn. - Added dynamic name resolution in REPOLib for duplicate valuable prefabs to prevent registration collisions.
- Protected
StatsManager.LoadGamewith a recovery finalizer to ensure clean save loading and private lobby hosting.