BlueAmulet-TerrainTools icon

TerrainTools

Terrain debugging and removal tools for Valheim.

Last updated 3 years ago
Total downloads 4194
Total rating 4 
Categories
Dependency string BlueAmulet-TerrainTools-1.0.3
Dependants 3 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.701 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.701

README

Terrain Tools for Valheim

A set of tools to help you manage terrain lag in Valheim.

Usage

This mod runs on the client and is not required to be on the server. This mod has been tested on both D3D11 and Vulkan renderers. It is safe to uninstall this mod after using it, it will not add additional data to your save files.

TerrainTools adds a new set of commands to the game, press F5 to open the in game console:

countterrain [radius=max]
	Counts nearby terrain modifications
	Groups them by level, smooth, and paint modifications
resetterrain [radius=5] [type=all]
	Remove nearby terrain modifications
	Valid types are: all, level, smooth, paint
undoreset
	Restore removed terrain modifications
	Has up to 32 available restores, amount can be configured
debugterrain
	Enables a terrain modification visualization mode
	This mode can be laggy depending on how many modifiers are nearby
	Can also be toggled via a hotkey (default F4)
debugstrength [new strength]
	Strength of lights in visualization
debugdistance [new distance]
	Distance of visible lights in visualization

Square brackets in the above commands indicate optional parameters, and equals indicate the default value for certain parameters if not specified.

Config

TerrainTools also creates a config file at BepInEx\config\TerrainTools.cfg

LightDistance: (default: 25)
Distance of visible debug lights

LightStrength: (default: 0.5) Strength of debug lights

Toggle: (default: F4) Terrain debug toggle keybind

ResetRadius: (default: 5) Default reset radius if not specified

RedoMax: (default: 32) Maximum number of redos available

Debug View

The Debug View adds colored lights to all the terrain modifications in your world. Red lights indicate leveling operations Green lights indicate smoothing operations Blue lights indicate painting operations

You may notice yellow, magenta, cyan, or even white lights sometimes, this is just a combination of various terrain modifications types.

Note

SkToolbox (as of it's version 1.6.2) has very unoptimized terrain editing commands that place way too many terrain modifiers too close together, and doesn't check if the terrain is already at a certain level, or remove old modifiers, also resulting in several useless overlapping terrain modifiers. You may notice that using it's terrain commands results in very bright colors in the debug view, compared to manually editing the terrain yourself, especially after multiple terrain commands. I have been working with SkToolbox's author to get more optimized terrain commands, and the results of this should be added to a future version of SkToolbox.

A slightly less serious note, you may notice SkToolbox's concept of a radius is different from this mod's. SkToolbox's radius is actually a diameter, as it internally cuts the radius in half for some reason.

Discord?

I don't have a personal discord, but I'm available at the Valheim Modding discord https://discord.gg/RBq2mzeu4z