CDEV RebindFavoriteKey
A rebindable key for the build menu's "add to favorites", which the game hard-codes to middle click. Its own row in Settings - Controls, bound and saved by the game itself. Client-only.
模組介紹 作者原文
RebindFavoriteKey
A key of your own for "add to favorites" in the build menu. The game hard-codes that to the middle
mouse button and offers nothing to change it — this gives it a real key binding, with its own row in the
game's own Settings → Controls.
Point at a piece in the build menu, press the key, done.
Why it is not in the settings without a mod
The favorite action has no input name at all: the piece button subscribes its handler straight to the UI's
middle-click event, which is dispatched by mouse button and nothing else. There is no binding to change —
not in the settings, not in a config file, not in the registry. So the mod creates one.
What you get
- A real key binding named CDEV_FavoritePiece, default F.
- Its own row, Favorite piece (build menu), at the bottom of the left column in Settings → Controls.
Rebinding, the bind dialog, the "this key is already used" warning and "Reset bindings" are all the
vanilla ones, because the row is a vanilla row.
- The binding is saved by the game with all the others, so it survives restarts and updates of this mod.
- The middle mouse button keeps working — or does not, if you would rather have it back (setting below).
Installation
Client-only. Install BepInExPack Valheim
and drop CDEV.RebindFavoriteKey.dll into BepInEx/plugins/CDEV.RebindFavoriteKey, or let a mod manager
do it. No Jötunn, no server, no other players needed — nothing is sent anywhere.
Settings — BepInEx/config/cdev.rebindfavoritekey.cfg
| Section | Key | Default | What it does |
|---|---|---|---|
| Keys | DefaultKey | F | The key the binding starts with. After you rebind it in the game, the game's saved binding wins and this does nothing. |
| Keys | MiddleClickFavorite | true | Keep the vanilla middle click as "add to favorites". Off frees the middle mouse button; the key keeps working. |
If you bind the key to the middle mouse button while MiddleClickFavorite is on, the mod stays out of the
way, so the favorite is not toggled twice on one press.
Compatibility
Valheim 1.0, BepInEx 5.4.23. It touches three things: the input table (one added button), the keyboard
settings panel (one added row) and the build menu's own favorite call. Nothing else, and nothing in the
world or in your character.
Credits
Written by CDEV. Bug reports with a slice of BepInEx/LogOutput.log are welcome.
Licence: MIT (the LICENSE file is in the package). Fork it, reuse it, keep it alive if I stop — a
mention of where it came from is all I ask.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: