Configure That

v1.0.2·Updated 2024-10-30

Tiny mod to just configure some values that no other tiny mod does allow to configure.

About this mod Author’s original text

Configure That

A small mod to configure some small parts of the game where I haven't found a satisfying other small mod to configure

some things that I always wanted to configure. There is a huge variety of mods out there that do many things and also

maybe configure some of those parts, but if you look for something lightweight that helps to just change these values,

you might have a hard time to find something similar. I was using other huge mods just because they also enabled me to

change those values, but I wanted to get rid of conflicts and huge mods to just change these tiny things.

Features

This mod aims to configure some simple and very basic values of the vanilla components of objects:

  • ItemDrop
  • Plant

The mod uses ServerSync and YamlDotNet.

Configured Values

It does not configure everything for those, since there is a huge variety of things to configure:

  • ItemDrop
  • AutoPickup (true/false)
  • Teleportable (true/false)
  • Weight
  • Value (to be able to sell it to the trader)
  • MaxStackSize (up to how big a stack can be)
  • Plant
  • GrowTime
  • GrowRadius
  • MinScale
  • MaxScale
  • NeedCultivatedGround (true/false)
  • DestroyIfCantGrow (true/false)

Reading configured values from YAML file

The mod comes with 2 prepared YAML files for purely vanilla items and plants. But you can generate the same files for

also your loaded mods, see next section.

Note: in both cases the header element is always the prefab name of the object.

Example content for a configured item

Acorn:

AutoPickup: true

Teleportable: true

Weight: 0.1

Value: 0

MaxStackSize: 100

ItemType: Material

Note: the ItemType can be ignored, the mod will not change the item type, even if added to the config, this is used

purely to group information.

Example content for a configured plant

Oak_Sapling:

GrowTime: 6000

GrowRadius: 3

MinScale: 0.7

MaxScale: 0.9

NeedCultivatedGround: false

DestroyIfCantGrow: true

Output a prepared file from your game and mods

You can use the console command configure_that_write_defaults to let the mod create 1 prepared file for each of the

configs. The file created has a slightly different name than the file that is read into the mod to change the configured

values. You will have to rename the file from e.g. "FixItFelix.ConfigureThat.Default.ItemDrops.yaml" to "

FixItFelix.ConfigureThat.ItemDrops.yaml" to enable the configured values.

NOTE: for using the output of the ItemDrops file, you will need to change the structure a bit, since the prepared output

is grouped by item type (to make is easier to find something maybe).

Miscellaneous

License, credits, attributions

  • icon config by Flatart (CC BY 3.0)

Contact

*

  • Discord: fluuxxx (you can find me around some of the Valheim modding discords, too)

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_ValheimValheimModding-Jotunn

File & checksum

Filename
Configure_That-1.0.2.zip
File size
154.9 KiB