Valheim
Install with App

Details

Latest version
1.0.1
Last Updated
First Uploaded
Downloads
81
Likes
1
Size
19KB
Dependants
ADDatHost Valheim hosting
30% off

Flattenheim + Dig Deeper Compatibility

This companion BepInEx plugin changes the two custom terrain operations in Flattenheim 1.0.0:

  • Flattenheim's ApplyFlatten
  • Flattenheim's ApplyRampTerrain

It replaces their fixed -8 m / +8 m delta clamp with the live MaximumDepth and MaximumHeight values from Dig Deeper. The lower delta is -MaximumDepth; the upper delta is MaximumHeight.

The patch does not edit either original mod. It does not patch vanilla terrain tools, Flattenheim's radius settings, or its terrain restoration behavior. It has no separate config or toggle; remove this plugin DLL to disable the compatibility patch.

Requirements

  • BepInExPack Valheim 5.4.2350 or later
  • Dig Deeper 1.3.1
  • Flattenheim 1.0.0

The plugin checks that Flattenheim still has the expected -8 / +8 clamp in each method. If an update changes those methods, the affected method is left unchanged and an error is written to the BepInEx log.

Install

Copy BepInEx/plugins/FlattenheimDigDeeperCompatibility/FlattenheimDigDeeperCompatibility.dll into the matching BepInEx/plugins/FlattenheimDigDeeperCompatibility/ folder in the Valheim profile where both mods are installed. Restart Valheim.

To remove the compatibility, delete that plugin folder. Keep Dig Deeper and Flattenheim installed as usual.

Build

The source is in src/CompatibilityPlugin.cs. On Windows, build it with:

.\build.ps1 -ProfileRoot "C:\path\to\Valheim\profile" -ValheimManagedPath "C:\path\to\Valheim\valheim_Data\Managed"

The script uses the profile's BepInEx/core/BepInEx.dll and 0Harmony.dll, plus Valheim's UnityEngine.dll, UnityEngine.CoreModule.dll, and netstandard.dll.

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