You are viewing a potentially older version of this package. View all versions.
uheme-DragonRiders_UpdateFix-1.0.0 icon

DragonRiders UpdateFix

Unofficial compat fix: makes the deprecated DragonRiders 2.1.8 and BetterRiding 1.3.6 work on the current Valheim build. Install with App; no config needed.

Date uploaded a week ago
Version 1.0.0
Download link uheme-DragonRiders_UpdateFix-1.0.0.zip
Downloads 282
Dependency string uheme-DragonRiders_UpdateFix-1.0.0

This mod requires the following mods to function

Yggdrah-BetterRiding-1.3.6 icon
Yggdrah-BetterRiding

Better Mount Riding, Mount Attack and Flying Experience

Preferred version: 1.3.6
Yggdrah-DragonRiders-2.1.8 icon
Yggdrah-DragonRiders

How to train your dragon.

Preferred version: 2.1.8
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

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/

CHANGELOG

Changelog

1.0.0

  • Initial release.
  • Adds back MessageHud.ShowMessage(MessageType, string, int, Sprite, bool) as a forwarder to the current 6-parameter overload (log = true), fixing a MissingMethodException thrown by DragonRiders 2.1.8 and BetterRiding 1.3.6.
  • Adds back Character.Message(MessageType, string, int, Sprite) as a forwarder to the current virtual 5-parameter overload (log = false, callvirt so Player's override is honoured), fixing the second MissingMethodException in both mods.
  • Shim table is data-driven so further forwarders can be added in later versions.