CyganFix

v1.0.0·Updated 2026-02-06

Fixes PlatformPrefs and Localization initialization issues after Valheim Unity update. Loads first to ensure all mods work properly.

About this mod Author’s original text

CyganFix

Fixes PlatformPrefs and Localization initialization issues after Valheim Unity 6 update.

What does it do?

After Valheim updated to Unity 6, many mods started crashing with NullReferenceException in:

  • PlatformPrefs.TryGetPreferencesProvider
  • Localization.get_instance

This mod patches these issues by providing mock implementations that initialize properly, allowing all your mods to work again.

Installation

Install with a mod manager or manually place CyganFix.dll in BepInEx/plugins/

Why does it load first?

The mod uses GUID aaa_com.cygan.cyganfix to ensure it loads alphabetically before other mods, so the fixes are applied before any mod tries to use the broken systems.

Author

Cygan

  • LinkedIn:
  • Buy Me A Coffee:

Changelog

1.0.0

  • Initial release
  • Fixes PlatformPrefs.TryGetPreferencesProvider returning null
  • Fixes Localization.instance initialization

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
CyganFix-1.0.0.zip
File size
5.5 KiB
SHA-256
987ddff68bc3498c0509f9cb7cc77a167985dafe2f2c3da142684dc683c09eda
Stored at
2026-10-07 12:03