You are viewing a potentially older version of this package. View all versions.
RogerSquare-ValheimEnforcerFixed-0.6.2 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.

Date uploaded 2 months ago
Version 0.6.2
Download link RogerSquare-ValheimEnforcerFixed-0.6.2.zip
Downloads 19
Dependency string RogerSquare-ValheimEnforcerFixed-0.6.2

This mod requires the following mods to function

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

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.

CHANGELOG

0.6.2 (2026-04-14)

Initial release of ValheimEnforcerFixed.

  • Based on MidnightMods/ValheimEnforcer v0.6.2.
  • Bundles YamlDotNet.dll (16.0.0 net47) next to ValheimEnforcer.dll to fix the class-load / NPE-on-handshake bug present in upstream 0.6.2's Thunderstore package.
  • No code changes to the mod itself.