You are viewing a potentially older version of this package. View all versions.
sighsorry-InteropFixes-1.0.1 icon

InteropFixes

Standalone runtime fixes for MagicPlugin projectiles and summon teleporting, plus safe creature StatusEffect teardown and Character removal bookkeeping.

Date uploaded 2 hours ago
Version 1.0.1
Download link sighsorry-InteropFixes-1.0.1.zip
Downloads 7
Dependency string sighsorry-InteropFixes-1.0.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 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.2333

README

InteropFixes

InteropFixes is a small, configuration-free compatibility plugin for Valheim. It keeps runtime fixes that do not belong to one gameplay mod in a single standalone DLL.

Included fixes

When blacks7ar.MagicPlugin is present, InteropFixes detects it by plugin GUID and enables each compatible fix independently:

  • Replaces the Attack.FireProjectileBurst prefix that repeatedly registers configuration event handlers with a null-safe, per-attack implementation.
  • Replaces the followed-summon teleport postfix with a guarded implementation that skips destroyed or incomplete characters.
  • Removes destroyed entries from Valheim's Character registry before MagicPlugin.Plugin.Update reads it.

The following creature-removal protections are available whenever InteropFixes is installed:

  • Tracks Characters removed through ZNetScene.Destroy.
  • Safely tears down StatusEffect start effects with missing or invalid ZNetView components.
  • Repairs Character registry and EnemyHud bookkeeping when Character.OnDestroy is incomplete or throws.

MagicPlugin is an optional integration, not a hard assembly dependency. InteropFixes does not lock support to one MagicPlugin version: it installs a capability only when the expected type, method, patch owner, signature, and configuration fields are present.

Installation

Install BepInEx for Valheim and place InteropFixes.dll in BepInEx/plugins. Install it on the dedicated server and on clients that use the affected mod combination.

There are no configuration files.

CHANGELOG

Changelog

1.0.1

  • Fixed private-field access failures in the Character destruction and StatusEffect teardown compatibility patches.
  • Prevented failed lifecycle prefixes from interrupting vanilla cleanup and leaving stale Character or Player references that could trigger repeated MonsterAI and portal errors.
  • Added runtime field capability checks so lifecycle compatibility is skipped safely if a future Valheim update changes the required fields.

1.0.0

  • Added standalone MagicPlugin projectile, summon teleport, and Character registry compatibility fixes.
  • Added tracked creature-removal protection for StatusEffect teardown and Character destruction bookkeeping.
  • Added GUID-based MagicPlugin discovery with independent structural checks for each capability.
  • Added safe Harmony rollback and restoration for runtime reloads.