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

FlattenheimDigDeeperCompatibility

For Heimlife-Flattenheim 1.0.0 only. Do NOT install alongside SelfFulfillment-Flattenheim, whose re-upload already includes native Dig Deeper compatibility.

Date uploaded 2 days ago
Version 1.0.1
Download link SelfFulfillment-FlattenheimDigDeeperCompatibility-1.0.1.zip
Downloads 48
Dependency string SelfFulfillment-FlattenheimDigDeeperCompatibility-1.0.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350
Crystal-DigDeeper-1.3.1 icon
Crystal-DigDeeper

Allows digging deeper into the ground.

Preferred version: 1.3.1
Heimlife-Flattenheim-1.0.0 icon
Heimlife-Flattenheim

Advanced terrain shaping for Valheim: flattening, adjustable hoe/cultivator radius, ramps, and terrain restoration.

Preferred version: 1.0.0

README

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.

CHANGELOG

Changelog

1.0.1

  • Clarified that this compatibility plugin is for the original Heimlife-Flattenheim 1.0.0 only.
  • Added a warning not to install it alongside SelfFulfillment-Flattenheim, which already includes native Dig Deeper compatibility.