Smart Wishbone

版本 v1.0.2·更新於 2023-10-17

Makes the wishbone fully configurable: track more kinds of ore, select your currently tracked ore, change the detection ranges and more

模組介紹 作者原文

This mod makes the wishbone fully configurable: track more kinds of ore, select your currently tracked ore, change the detection ranges and more.

1 - Changing the tracked target

You can now change what kind of ore or object you want to track:

  • While you have the wishbone equipped, the buff icon changes to the item icon of your currently selected target (if available)
  • You can press a configurable hotkey (default: n(ext) and b(efore)) to rotate through the available target options (signified through the buff icon change and a status message in the top left)
  • Trackables can have conditions like boss kills to unlock. By default, defeating bosses unlocks the appropriate next ore tier as trackable
  • You can press a configurable hotkey (default: j) to register the destructible object that you are currently looking at as a new trackable object, or remove it if it's already registered (check the next chapter for how to further customize these newly added objects)

2 - Configuring the trackables

This mod is configurable both through the normal config file, as well as through a custom trackable data yaml file. Both are server synced where appropriate.

Noteworthy general mod settings are

  • Global range changes: Overrides the range of the individual trackables, either setting it to a value or adding a value onto it.
  • Whether conditions (like boss kills) should be checked for or not.

Trackable data can be edited in the 'SmartWishbone.Data.yaml' file. It contains a list of all configured trackable objects. Objects can have:

  • A prefab name: This is the internal name of the object which is also used to spawn it in via the console
  • A display item: These act as categories. Multiple items with the same display item can be searched for at the same time. They are also used for the buff icon and translated category name if it's a valid item prefab name. A trackable object can also be a part of multiple categories by adding multiple item prefab names, separated with a pipe symbol '|'.
  • A range: This is the range for the wishbone to activate for this object. The base game uses a value of 20. Bigger objects like copper veins might require higher values, since most of the time the center of the object is the actual tracking point
  • A condition: A condition (like a boss kill) that needs to fulfilled for the item to show up as trackable. These are global keys, for the base game keys see:

Multiple example files for different base game objects have been added to the download. These don't do anything on their own. Only the 'SmartWishbone.Data.yaml' is getting loaded and saved to. You can however copy the content of those files into the main file (make sure that it's still proper yaml, yaml is whitespace sensitive) or simply use them as inspiration.

Source code available on github:

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
Smart_Wishbone-1.0.2.zip
檔案大小
190.1 KiB