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.
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.