NarcLab DevTools

版本 v0.1.4·更新於 2026-09-13

Dedicated-admin-authorized Valheim devcommands and network prefab spawning for explicitly trusted administrators.

模組介紹 作者原文

NarcLab DevTools

NarcLab DevTools provides server-authorized Valheim devcommands and unrestricted

network prefab spawning for explicitly trusted dedicated-server administrators.

WARNING

NarcLab DevTools gives authorized administrators powerful world and gameplay

commands, including unrestricted network prefab spawning. Only grant native

Valheim server-admin privileges to players you trust. Large spawn quantities

can heavily affect server performance; avoid extreme creature or object counts

on production worlds.

Qualified environment

  • Valheim 1.0.12 (network version 40)
  • BepInExPack Valheim 5.4.2333
  • Dedicated multiplayer server

Installation

Install the package on the dedicated server and on each administrator client

that needs DevTools commands. A compatible mod manager can install the package,

or the DLL can be placed through the normal BepInEx plugin mechanism.

Authorization is server-authoritative. The public default is

AuthorizationMode = DevToolsAdmins; the player's stable platform identity must

be present in:

BepInEx/config/NarcLabDevTools/adminlist.txt

Add one identity per line. The validated Steam form is

Steam_. Blank lines and lines beginning with # are ignored.

Malformed entries are ignored safely. A missing list is created automatically

and remains empty, which grants nobody. Restart the server after editing it.

Available authorization modes in

BepInEx/config/ca.narclab.valheim.devtools.cfg:

  • DevToolsAdmins: requires the dedicated DevTools admin list.
  • ValheimAdmins: requires Valheim's native server-admin authorization.
  • Either: accepts either source.
  • Both: requires both sources.

Display names and client-side admin state never grant access. The old

RequireServerAdmin and AllowAdditionalSteamIds settings are not active in

0.1.4; AuthorizationMode is the single mode selector.

Usage

Open the F5 console. You do not need to enter devcommands first.

Validated examples:

spawn Wood 1000

spawn Coins 50

spawn Boar 1

god

fly

nocost

players

listkeys

spawn accepts an amount from 1 through 1000 inclusive. Prefab names are

case-sensitive in the qualified version and are resolved dynamically against

the current server's network prefab registry. Unknown or non-networked prefabs

are rejected. Item stacks are split according to the prefab's current maximum

stack size; non-item objects are created as server-owned network objects.

The players command provides an authenticated server player list. Other

available commands follow the current Valheim command registry. Some

client-local commands require a connected player character and execute on the

authorized client only after a fresh server authorization response.

NarcLab Resources compatibility

NarcLab Resources 0.1.1 is optional and is not a hard dependency. When both

mods are installed on the server and client:

  • authorized administrators receive DevTools spawn behavior;
  • non-admin players fall through to NarcLab Resources;
  • non-admin players can still spawn only Wood and Stone through Resources.

Runtime testing also confirmed that a Resources-only client continues to work

when DevTools is installed on the server.

Unmodded clients

A fully unmodded Valheim 1.0.12 client was able to join the qualified dedicated

server, load the world, remain connected, see vanilla Wood and Stone drops, and

pick them up normally. Unmodded clients do not receive DevTools commands.

Dedicated-server notes

  • DevTools commands require the plugin on both the dedicated server and the

administrator client.

  • Authorization is checked for each request by the server.
  • The dedicated DevTools admin list is independent from Valheim's native list

in the default mode.

  • Requests are rate-limited and protected against replay.
  • Spawned objects must be current registered network prefabs.
  • The mod does not provide arbitrary server filesystem, reflection, or shell

command access.

NarcLab DevTools is not affiliated with or endorsed by Iron Gate Studio.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
NarcLab_DevTools-0.1.4.zip
檔案大小
39.4 KiB