A dedicated server mod that restores terrain back to its original state gradually over a configurable rate.
GroundReset is a dedicated server mod that gradually resets the ground terrain across the map automatically.
No terrain changes occur for areas within:
- Wards from vanilla Valheim
- Wards from AzuMatt's WardIsLove mod
- Marketplaces from KGValheim's Marketplace and NPCs mod
Terrain across Valheim is generated by the game with a heightmap, composed of a very large set of point values. This mod identifies changed terrain and calculates the amount of change done to the original heightmap value, known as the current delta value. The current delta value is positive or negative depending on if the ground has been lowered or raised from its initial height.
- This mod will divide the current delta value by the Divider value set in the configuration for each point to get the fraction amount to change the terrain by and towards the value of 0.
- Every amount of minutes defined in TheTriggerTime value in the configuration will have the mod modify the current delta value by the fraction amount calculated by the division of current delta value by the Divider.
- When the value of the point is close enough to 0 (as defined by
Min Height To Stepped Reset
), the terrain fully resets to the original height assigned to by the game at the start of the world. - Points located in the area of the active ward or the territory of a marketplace are not touched.
Install only on dedicated servers. This mod should not be installed on clients. Players do not need to install this mod on their side.
Configuration values can be changed while in-game using a Configuration Manager mod. Otherwise, please
open GroundReset.cfg
created in the "BepInEx\config" folder to manually modify configurable values.
The two important values are:
TheTriggerTime
[Float]: The interpolation rate. This is the amount of real-clock minutes before the mod progresses to another round of changes for all modified points on the map that are not protected or in a marketplace territory.Divider
[Float]: The divider for the terrain restoration. Setting this higher will make changes more gradual and will require more time to get to the original terrain value.
For more detailed configuration, use the configs below:
Reset Paint
[Boolean]: Should the terrain paint be resetReset Smoothing
[Boolean]: Should the terrain smoothing be resetProcess Paint Lastly
[Boolean]: Set to true so that the paint is reset only after the ground height delta and smoothing is completely reset. Otherwise, the paint will be reset at each reset step along with the height delta.Process Smoothing After Height
[Boolean]: Set to true so that the smoothing is reset only after the ground height delta is completely reset. Otherwise, the smoothing will be reset at each reset step along with the height delta.
Read the configuration file for other adjustable values.
Marketplace And Server NPCsWardIsLove
Discord -
justafrogger
Me on Thunderstore -
Frogger Mods
Mod page -
GroundReset
GitHub -
GroundReset
This mod was commissioned by
VitByr
. If you need a custom mod, do not hesitate to reach me out 😉.
Also, many thanks to
gdragon for the help with writing this text