You are viewing a potentially older version of this package. View all versions.
Ghost_Pack-VargheimSoftRefCompat-0.1.0 icon

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.

Date uploaded 17 hours ago
Version 0.1.0
Download link Ghost_Pack-VargheimSoftRefCompat-0.1.0.zip
Downloads 24
Dependency string Ghost_Pack-VargheimSoftRefCompat-0.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 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.2360

README

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.