Configure That

版本 v1.0.2·更新於 2024-10-30

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

模組介紹 作者原文

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)

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_ValheimValheimModding-Jotunn

檔案與校驗

檔案名稱
Configure_That-1.0.2.zip
檔案大小
154.9 KiB