TheMorningStar-SizeMattersCompat icon

SizeMattersCompat

Stops the hard freeze on level load when the Size Matters mutator runs alongside Player Scaling. By TheMorningStar.

Last updated 4 hours ago
Total downloads 2
Total rating 0 
Categories AI Generated
Dependency string TheMorningStar-SizeMattersCompat-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100
Redfops-PlayerScaling-1.2.4 icon
Redfops-PlayerScaling

Map scales with number of players and config options, optional scaling past level 11

Preferred version: 1.2.4
Xepos-Mutators-1.0.2 icon
Xepos-Mutators

Inject some chaos (and possibly despair) into your R.E.P.O. runs with Mutators! A random modifier will be chosen to alter your current level in some way.

Preferred version: 1.0.2

README

Size Matters Compat

Run the Size Matters mutator and Player Scaling at the same time and the game hard-freezes on level load. This fixes that, so the two work together.

By TheMorningStar. Anyone in the lobby running both of those should have this too.

For developers - detailed breakdown

Player Scaling puts a Harmony prefix on ValuableDirector.SetupHost, which is a coroutine. Under BepInEx's HarmonyX the prefix injects into the state machine's MoveNext, so it fires once per valuable spawned instead of once per level. That's dozens of times, each logging a batch of "replace a curve" lines. With Size Matters active the volume is enough to stall BepInEx's synchronous logger, which reads as a freeze. Two fixes: a run-once guard so the curve rebuild happens a single time per level, and a reset of the static curve arrays between levels so they don't carry over. Nothing about how the game plays changes.