SnappySigns
Adds build snap points (corners, edges, center) to all signs so they align cleanly to walls, beams and posts.
模組介紹 作者原文
Snappy Signs
A small BepInEx plugin for Valheim that gives signs
build snap points, so they align cleanly to walls, beams, posts, and other build
pieces during placement — the same way most build pieces already snap.
By default vanilla signs have no snap points, which makes them fiddly to position.
Snappy Signs adds snap points at the corners, edge midpoints, and center of
each sign's board.
How it works
The plugin Harmony-patches ZNetScene.Awake. After the game registers all prefabs, it
finds every prefab that has both a Sign and a Piece component (so it works for any
sign, including modded/future ones — no hardcoded prefab names) and injects empty child
GameObjects tagged snappoint. Valheim's placement system (Piece.GetSnapPoints) reads
those direct children automatically.
Snap point positions are derived from each sign's mesh bounds, so they fit each sign type
automatically. Signs that already have snap points (vanilla or added by another mod) are
left untouched, and the patch is idempotent.
Configuration
After running once, BepInEx/config/com.syloreon.snappysigns.cfg:
| Section | Key | Default | Description |
|--------------|----------------|---------|--------------------------------------------------|
| General | Enabled | true | Master toggle. |
| SnapPoints | Corners | true | Snap points at the four corners. |
| SnapPoints | EdgeMidpoints| true | Snap points at the midpoint of each edge. |
| SnapPoints | Center | true | Snap point at the board center. |
Changes apply on the next world/game load (prefabs are patched at scene setup).
Building
Requires the.NET SDK and a local Valheim install (for the game assemblies).
Uses VALHEIM_INSTALL or the default path baked into the.csproj
dotnet build -c Release
Override the game path and auto-deploy the DLL to your plugins folder:
dotnet build -c Release \
-p:ValheimInstall="F:\SteamLibrary\steamapps\common\Valheim" \
-p:DeployDir="F:\SteamLibrary\steamapps\common\Valheim\BepInEx\plugins\SnappySigns"
The compiled SnappySigns.dll is written to bin/Release.
Installing
- Install BepInEx for Valheim.
- Copy SnappySigns.dll into Valheim/BepInEx/plugins.
- Launch the game.
Notes / limitations
- Snap points are placed on the board's mid-plane. For signs that include a mounting post
in the same mesh, the computed board face may include the post; this is fine for the
common wood sign but may be refined later.
Development
Developed with AI assistance (Claude). This mod is tagged AI Generated.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: