DoorDirector
Automatically closes Valheim doors with synchronized prefab rules and per-door controls for player-built doors and gates.
模組介紹 作者原文
DoorDirector
DoorDirector automatically closes Valheim doors after a configurable delay. It works with ordinary doors and modded Door components such as gates and drawbridges.
Compatible with Valheim 1.0. Tested against Valheim 1.0.7 and BepInExPack Valheim 5.4.2350.
Features
- Automatic closing using Valheim's native networked Door state.
- Normal, inverted, and ignored behavior for individual prefabs.
- Default and per-prefab closing delays.
- Separate shortcuts for toggling and setting the delay on individual player-built doors and gates.
- Server-synchronized gameplay settings with configuration locking.
- Automatic cancellation when a player or linked switch operates the Door again.
- Exact prefab-name diagnostics for configuring modded doors.
- Dedicated-server and BepInEx ConfigurationManager support.
Installation
Install DoorDirector Mod Manager or r2modman and enable it in the profile used to launch Valheim.
The mod must be installed on the server and every connecting client. Manual installations require BepInEx 5; place DoorDirector.dll in BepInEx/plugins/DoorDirector.
Configuration
Configuration is stored in BepInEx/config/com.tomtom.doordirector.cfg. ConfigurationManager users can edit it from the F1 menu.
Gameplay settings come from the server. When Lock Configuration is enabled, non-admin clients cannot change synchronized settings. Diagnostic settings and hotkey bindings remain local to each client.
Player-built doors
Look at a door or gate you built and press Left Shift + G to toggle auto-close for that individual object. Press Left Shift + T to enter a custom delay for it; setting a delay also enables auto-close. The enabled state and custom delay are stored on the networked object and persist with the world.
Allow Owned Door Controls lets the server enable or disable these controls. Owned Door Auto Close Delay sets the synchronized default for individually enabled doors. Global disable and ignored-prefab rules always take precedence. Both shortcuts can be reassigned in ConfigurationManager or the config file.
Prefab rules
- Included Prefabs: comma-separated prefab names using normal behavior.
- Inverted Prefabs: comma-separated prefab names whose physical state is opposite Valheim's logical Door state.
- Ignored Prefabs: comma-separated prefab names DoorDirector never changes.
- Custom Delays: comma-separated prefab_name=seconds overrides.
- Only Affect Configured Prefabs: limits automatic closing to explicitly configured prefabs.
Example:
Included Prefabs = wood_door,iron_grate
Inverted Prefabs = my_drawbridge
Ignored Prefabs = boss_gate
Custom Delays = wood_door=3,my_drawbridge=12
Ignored takes precedence over inverted, and inverted takes precedence over normal. Prefab matching is case-insensitive.
Finding prefab names
Look at a Door, gate, or bridge and press F7. DoorDirector prints its exact prefab name on the HUD and in the BepInEx log. This diagnostic hotkey is separate from the owned-door controls.
You can also run this command in the Valheim console:
doordirector_prefab
Enable Debug Logging to log the prefab name whenever you interact with a Door.
License
DoorDirector is available under the MIT License.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: