Cygan-CyganFix icon

CyganFix

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

Last updated a day ago
Total downloads 115
Total rating 0 
Categories Misc Client-side Utility
Dependency string Cygan-CyganFix-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

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

Changelog

1.0.0

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