
VargheimSoftRefCompat
Temporary fix for Valheim 1.0.30+: restores the old SoftReference Name getter so More World Locations registers its locations and dungeon rooms again. Server and clients.VargheimSoftRefCompat (temporary)
A tiny BepInEx preloader patcher for the Vargheim Season 2 pack. Install it on the server and every client.
What it fixes
Valheim 1.0.30 renamed SoftReferenceableAssets.SoftReference<T>.Name to .name. Mods built against the old name
(for example More World Locations AIO 5.2.4) throw MissingMethodException while registering their locations and
dungeon rooms. On a server, a world saved in that state can lose those location records.
This patcher adds the old getter back as an alias of the new one when the game's SoftReferenceableAssets.dll is loaded.
- In memory only: no game file and no other mod's file is changed on disk.
- Does nothing if the game already has the old getter.
- It does not bring back locations a world has already lost.
Check it is working
BepInEx/LogOutput.log contains:
[Info :VargheimSoftRefCompat] Added SoftReference1.get_Name as an alias of get_name (0.1.0).`
Remove it
Uninstall once the affected mods ship their own update for Valheim 1.0.30+.
Made with AI assistance (Claude) for the Ghost Pack / Vargheim server.