FarmGridRemake
FarmGridRemake updates the original FarmGrid concept for current Valheim versions. Allows for all plants planted with the cultivator to automatically be snapped and placed into a grid in which they wi
模組介紹 作者原文
FarmGridRemake
FarmGridRemake updates the original FarmGrid concept for current Valheim versions. It snaps cultivator placement locally to nearby plants, automatically recognizes cultivator-added plant prefabs, can temporarily or permanently disable the grid, supports cultivator deconstruction, and can optionally remove plant growth restrictions.
Features
- Snaps cultivator planting positions locally to nearby recognized plants.
- Hold Left Shift to use the red secondary half-cell grid. Red positions are available on local X, local Y, and diagonal directions between the green grid positions.
- With AllowPlantOverlap = true and removeGrowthRestrictions = true, green and Shift-red snapping can use occupied crop positions, including snapping directly on top of the selected anchor.
- Rotating a plant rotates the grids around the active snap point without dragging the plant around the anchor.
- Planting a crop no longer re-anchors, rotates, or recentres the grid just because the newly planted crop or replacement placement ghost appeared.
- Any recognized cultivator plant can be used as the local snap anchor, including different plant types, when ConnectToOtherPlants = true.
- Set ConnectToOtherPlants = false to restrict snapping to the same plant type as the plant currently being placed.
- Uses the real Valheim Plant.m_growRadius when available.
- Automatically discovers plant prefabs registered in the live cultivator PieceTable.
- Optional custom grid size.
- Separate EnableGrid master switch.
- Hold a configurable key to temporarily disable snapping and grid lines.
- Grid visuals and snapping are client-side.
- Optional AllowPlantOverlap lets multiple plants occupy the exact same position.
- Plant overlap only works when unrestricted planting is enabled with removeGrowthRestrictions = true.
- Multiplayer unrestricted growth requires the host/server and clients to run the plugin.
Cultivator Plant Detection
FarmGridRemake reads the cultivator's current PieceTable and caches recognized plant prefab names and layers. Plant components use their actual growth radius. Recognized cultivator entries without a Plant component use a safe fallback spacing unless overridden in customPlants.
You can override a prefab's spacing with:
customPlants = PrefabName:0.5, AnotherPrefab:1.0
Grid Size
Automatic spacing is used by default.
[Grid Size]
useCustomGridSize = false
customGridSize = 1.0
When useCustomGridSize = true, every recognized plant uses customGridSize instead of calculated growth spacing. The red secondary grid uses the same cell size, with its half-cell positions exactly customGridSize / 2 from the green grid on each active local axis.
Grid Toggle
[Grid Toggle]
EnableGrid = true
DisableHoldGridKey = LeftAlt
SecondaryGridKey = LeftShift
holdToDisableGrid = true
ConnectToOtherPlants = true
- EnableGrid = false disables snapping and grid lines completely.
- DisableHoldGridKey is the key used for the temporary bypass.
- holdToDisableGrid = true enables the temporary hold bypass.
- The default hold-to-disable key is LeftAlt.
- The default secondary-grid key is Left Shift.
- While Shift is held, FarmGrid shows the red X-half, Y-half, and diagonal half-cell phases so red positions are visible in every direction between the green grid lines.
- Red snapping uses the nearest immediate half-cell position around the selected plant anchor. Occupied red targets and the exact anchor position are only allowed when both AllowPlantOverlap = true and removeGrowthRestrictions = true.
- ConnectToOtherPlants = true allows any recognized cultivator plant type to act as the local anchor.
- ConnectToOtherPlants = false restricts local anchors to the same plant type as the plant currently being placed.
Disabling the grid does not disable cultivator deconstruction or unrestricted growth.
Plant Without Restrictions
[Plant Growth]
removeGrowthRestrictions = true
AllowPlantOverlap = true
removeGrowthRestrictions is the toggle for planting without norma
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: