Valheim
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
280
Likes
1
Size
15KB
Dependants

Categories

ADDatHost Valheim hosting
30% off

DragonRiders_UpdateFix

Unofficial community compatibility fix. Not affiliated with, endorsed by, or made by Yggdrah.

Makes the deprecated DragonRiders 2.1.8 and BetterRiding 1.3.6 work again on the current Valheim build.

What it fixes

Valheim's recent update added a trailing optional bool log parameter to two game methods. DragonRiders and BetterRiding were compiled against the old signatures, so on current Valheim they throw MissingMethodException on the client:

MissingMethodException: Method not found: void .MessageHud.ShowMessage(MessageHud/MessageType,string,int,UnityEngine.Sprite,bool)
MissingMethodException: Method not found: void .Character.Message(MessageHud/MessageType,string,int,UnityEngine.Sprite)

This package adds a tiny BepInEx preloader patcher that puts both old overloads back and forwards each to the new one:

  • MessageHud.ShowMessage(type, text, amount, icon, showDespiteHiddenHUD) forwards to the new overload with log = true (the game's own default).
  • Character.Message(type, msg, amount, icon) forwards to the new overload with log = false (the game's own default). The forward is a virtual call, so Player's override still runs.

That is all it does.

  • Does not contain, copy, or modify any file from DragonRiders or BetterRiding. They install separately, unchanged, as dependencies.
  • Only touches the in-memory game assembly as it loads. Nothing on disk in your Valheim folder is changed.
  • Safe by design: it only adds an old method if the new one exists and the old one does not. If Iron Gate restores an old signature, or changes it again, the patcher logs that and does nothing.
  • No config, no commands, no in-game UI.

Install

Click Install with App (r2modman / Thunderstore Mod Manager). The manager pulls in BepInExPack_Valheim, DragonRiders, BetterRiding and this fix automatically. Start the game with Start modded.

Install it on every player that uses DragonRiders / BetterRiding, and on the dedicated server too (harmless there, and it covers any server-side message calls).

Check that it works

Look in BepInEx/LogOutput.log for a line like:

[Info   :DragonRiders_UpdateFix] MessageHud.ShowMessage(...): ADDED forwarding overload -> ...
[Info   :DragonRiders_UpdateFix] Character.Message(...): ADDED forwarding overload -> ...
[Info   :DragonRiders_UpdateFix] Done. Shims added: 2 of 2.

Known limits

  • This fixes the two log-parameter breaks above only. Other Valheim changes may still break parts of the old mods. See the changelog for what has been checked.
  • The old mods are unmaintained. Bugs in them are theirs, not this package's.

Credits

All DragonRiders and BetterRiding functionality is the work of Yggdrah. Please go and thank them:

Built with BepInEx and Mono.Cecil (referenced, not bundled). This package's code is MIT licensed. The icon is original artwork.

Package page: https://thunderstore.io/c/valheim/p/uheme/DragonRiders_UpdateFix/

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.