ValheimHotKeys
Configurable hotkeys for various Valheim actions.
模組介紹 作者原文
Valheim HotKeys
A Valheim mod to add configurable hotkeys for various actions.
Features
- Toggle HUD: Quickly hide/show the in-game HUD (default F3).
- Repair Hammer: One press equips your hammer with repair already selected (unbound by default). Press again while repairing to put the hammer away. It looks for any tool with a repair option rather than the vanilla hammer by name, so it should also work with modded hammers or tools that have one (untested; tools without a repair option are ignored).
- Hotbar Shortcuts: Use hotbar slots 1-8 with key combinations such as Alt + 1 (unbound by default). Valheim's Controls menu can give each slot an extra key, but not a combination.
- Custom Item Bindings:
- Bind hotkeys to items by name (e.g., "Healing Mead", "Arrow"). This can be either the localized name or the internal item ID.
- Partial Matching: "Arrow" will match "Fire Arrow", "Wood Arrow", etc.
- Item Cycling: Press the hotkey multiple times to cycle through all items in your inventory that match the search name.
- Bindings fire while you are moving, so you can drink or swap ammo on the run.
Installation
r2modman (Recommended)
- Install Mod Manager or r2modman.
-or-
- Download the mod, and follow the Manual Installation instructions below.
Vortex
- Install via Vortex Mod Manager.
-or-
- Download the mod, and follow the Manual Installation instructions below.
Manual Installation
- Install BepInExPack Valheim.
- Download the latest release of ValheimHotKeys from GitHub.
- Extract the ValheimHotKeys.dll file into your \BepInEx\plugins directory.
Compatibility: tested with Valheim 1.0.
Configuration
The com.malafein.valheimhotkeys.cfg file will be generated in your BepInEx/config folder after the first run.
There you can set the HUD toggle key, the repair hammer key, the hotbar shortcuts, and the eight custom item bindings.
Recommendation: Use a configuration manager like shudnal's Configuration Manager to easily edit bindings and settings in-game.
Mouse buttons may be bound, but only Mouse0 through Mouse4, the buttons Valheim's input system supports.
To put a hotbar slot on a single key, use Valheim's own Controls menu, which has a rebindable alternate key for each of Hotbar 1-8. The hotbar shortcuts here are for combinations with Shift, Ctrl, or Alt.
Shortcuts still fire when you hold modifiers they don't include, so they work while you sprint. Valheim's own keys ignore modifiers entirely, though, so a shortcut shares its key with any game binding on the same key: Alt + 1 also uses hotbar slot 1. Left Shift and Left Ctrl are risky modifiers for hotbar shortcuts, because the game uses them to sprint and crouch: a Left Shift + 1 shortcut fires every time you press 1 while sprinting. Alt, Right Shift, and Right Ctrl are free. Left and right modifiers are separate keys, as they are in the game. The BepInEx log warns when a shortcut shares a key with one of the game's.
Changelog
See CHANGELOG.md.
Thank You
Jthorell - For requesting the Repair Hammer hotkey!
Bugs & Known Issues
Feel free to log any issues you encounter while using this mod on GitHub.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: