RogerSquare-ValheimEnforcerFixed icon

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.

Last updated a month ago
Total downloads 8
Total rating 0 
Categories Server-side Client-side AI Generated
Dependency string RogerSquare-ValheimEnforcerFixed-0.6.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

ValheimModding-Jotunn-2.26.1 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.26.1
denikson-BepInExPack_Valheim-5.4.2333 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2333

README

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.DataObjects fails to type-load (TypeLoadException: Could not load file or assembly 'YamlDotNet')
  • ModManager.SetModsActive crashes silently at Jotunn's OnVanillaPrefabsAvailable event
  • ModSettings is left null
  • Every client handshake throws NullReferenceException in ModManager.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.