ValheimEnforcerFixed
ValheimEnforcer 0.6.2 with the missing YamlDotNet dependency bundled. Drop-in fix for the black-screen-on-connect bug. All credit to MidnightMods for the original.ValheimEnforcerFixed
A redistribution of MidnightMods/ValheimEnforcer v0.6.2 with the missing YamlDotNet.dll dependency bundled so the mod actually works on first install.
All credit for the mod itself goes to MidnightMods. This package exists only to ship the missing runtime dependency.
What this fixes
Upstream 0.6.2 has a packaging bug: the .csproj references YamlDotNet via NuGet, but the Thunderstore package build script (scripts/publish.ps1) doesn't copy YamlDotNet.dll into the final zip. Result:
ValheimEnforcer.common.DataObjectsfails to type-load (TypeLoadException: Could not load file or assembly 'YamlDotNet')ModManager.SetModsActivecrashes silently at Jotunn'sOnVanillaPrefabsAvailableeventModSettingsis left null- Every client handshake throws
NullReferenceExceptioninModManager.ZNet_RPC_ServerHandshake_Patch.Prefix - Clients connecting to the modded server hang on a black screen until RPC timeout
This package bundles YamlDotNet.dll (16.0.0, net47) next to ValheimEnforcer.dll so class load succeeds.
When to use this instead of upstream
Use this until MidnightMods ships a 0.6.3 that bundles YamlDotNet itself. At that point, prefer upstream.
Install
Same as upstream: install via r2modman / Thunderstore Mod Manager. Install on both client and server. All configuration and behavior is identical to upstream 0.6.2.
License
GPL-3.0, same as upstream. Source for this redistribution: https://github.com/RogerSquare/valheim_enforcer.
Support
For actual mod functionality / bug reports about behavior, go upstream:
For issues specific to this redistribution (packaging, dependency bundling), file on the fork repo.
