You are viewing a potentially older version of this package. View all versions.
suspicious_geet-OhMyGrid-1.1.0 icon

OhMyGrid

Plant crops in donuts, wedges (circle slices) and other non-square patterns. Cycle center modes, auto-snap to existing plants for concentric placement, see cost and yield live, and mass-pick/refuel with Shift+E.

Date uploaded 2 weeks ago
Version 1.1.0
Download link suspicious_geet-OhMyGrid-1.1.0.zip
Downloads 46
Dependency string suspicious_geet-OhMyGrid-1.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2350

README

OhMyGrid

Plant crops in donuts, wedges and other non-square patterns in Valheim. Lay down a big onion ring, drop a smaller carrot donut concentric inside it, or build a circle one wedge (circle slice) per crop. Stop fighting the rectangular grid. Also: mass-pick / mass-refuel with Shift+E.

A half circle built from four wedges of different crops

Planting the next wedge: ghost previews and the live overlay

Install: Thunderstore page (direct download OhMyGrid-1.1.0.zip). Use r2modman or Thunderstore Mod Manager to drop it into a Valheim profile.

Features

  • Donut planting. While holding the cultivator with a seed selected, a ring of ghost previews shows around your chosen center. Left-click plants the whole donut in one go.
  • Wedge planting. A slice of the donut with a heading and a sweep. Turn it with the mouse wheel and widen it with Shift+. / Shift+,, in 15° steps (1/2, 1/3, 1/4, 1/6, 1/8, 1/12 of a circle). After each wedge the heading advances by one sweep, so consecutive wedges complete the circle. They tile exactly, with no doubled edges and no crowded tip.
  • Per-point validity. Each ghost turns red when its spot is invalid — blocked by rocks/plants, out of reach, or on uncultivated soil. Green ones are the only ones that get planted, charged, and counted.
  • Cost + yield overlay centered at the top of the screen: shows the current plant, valid/total point count, total seed cost, and expected yield — all live as you tune the radii. It also says how many points are out of reach ([Grid] IgnoreReach plants those too).
  • Four center modes, cycled with F7 (top-left HUD toast on change):
    • Player — donut follows you.
    • Fixed — pins the donut at your current spot. Walk away, donut stays.
    • Cursor — donut follows where the cultivator ghost aims.
    • CursorSnap — like Cursor, but the center snaps to the nearest remembered planting center (every donut/wedge you plant is saved), or to the centroid of nearby plants if there is none. Perfect for concentric donuts and for completing a circle wedge by wedge.
  • Geometry toggle. F6 cycles Off → Donut → Wedge → Off. In Off, the mod stays out of the way and you place one plant per click like vanilla.
  • Shift+E mass-interact (hover-scoped, same-type only):
    • Hover a Pickable → harvest every Pickable of the same item type in range. Carrots don't sweep nearby strawberries.
    • Hover a Fireplace → fuel every Fireplace in range.
    • Hover a Smelter / Charcoal Kiln → feed every smelter in range.
  • Persists across sessions. Center mode, geometry mode, radii, hotkeys, and toggles are all stored under cgaggino.OhMyGrid.cfg.

Default hotkeys

All hotkeys are configurable under [Hotkeys] in the config file.

Key Action
F6 Cycle geometry: Off → Donut → Wedge → Off
F7 Cycle center mode: Player → Fixed → Cursor → CursorSnap → Player
F8 Dump every donut grid point to the BepInEx log
] Outer radius +1 spacing step
[ Outer radius −1 spacing step
Shift+] Inner radius +1 spacing step
Shift+[ Inner radius −1 spacing step
. / , or mouse wheel Rotate wedge clockwise / counter-clockwise (one AngleStep)
Shift+. / Shift+, Widen / narrow wedge (one AngleStep)
Left-click Plant the entire donut / wedge (when holding a Plant ghost)
Shift+E Mass-interact with the hovered object's type in range

Defaults: InnerRadius=2m, OuterRadius=6m, Spacing=1m, AutoSnapRadius=12m, MassInteract.Radius=5m. All editable in the cfg file (or via BepInEx ConfigurationManager if you have it installed).

Concentric donut workflow

  1. Stand inside an existing donut of one crop (or anywhere if it's the first).
  2. Tap F7 until the HUD shows Mode: CursorSnap.
  3. Aim near the center — the donut snaps to the centroid of the existing plants automatically.
  4. Bring [ until the outer radius matches the inside of the previous donut.
  5. Swap seed type and left-click. The new ring lands concentric to the old one.

Wedge-by-wedge circle workflow

  1. F6 until the HUD shows Geometry: Wedge. Set the radii with [ / ].
  2. Pick the slice size with Shift+. / Shift+, (for example 90° = 1/4).
  3. Plant the first wedge. Then F7 to CursorSnap and aim near the circle. The center snaps to the one you just planted (AutoSnap: anchor).
  4. Swap seed type and left-click. The heading has already advanced by one sweep, so the new wedge starts exactly where the last one ended.
  5. Repeat until the circle is closed.

Building from source

You need a local Valheim install with BepInEx (the build references assembly_valheim.dll and friends; they're not redistributable):

$env:VALHEIM_INSTALL = "C:\Program Files (x86)\Steam\steamapps\common\Valheim"
dotnet restore
dotnet build -c Release

The output is bin/Release/OhMyGrid.dll. Drop it in your r2modman / Thunderstore Mod Manager profile under BepInEx/plugins/.

Known limitations

  • Centroid fallback is biased on asymmetric clusters. Plantings made before 1.1.0 have no remembered center, so CursorSnap falls back to the plant centroid. For a half donut or an irregular patch, that is not the geometric center. Anything planted with 1.1.0+ snaps exactly.
  • Fixed-mode center doesn't persist across sessions. The center mode saves and reloads as Player on the next launch (no anchor to restore). Other modes restore exactly as you left them.

Planned (v1.2+)

  • More geometries on the F6 cycle: square grid, hex grid, spiral, and a user-drawn polygon.
  • Shift+E support for more interactables (Beehive, Cauldron, Workbench repair).
  • A toggle to mass-fill a single Smelter / Fireplace with one press, not just one tick per press.
  • Optional ground ring rendered at the AutoSnap centroid so the snap target is visually obvious before you click.

Compatibility

  • Targets Valheim 1.0 (1.0.1+; 1.0.0 was built for 0.221.x and does not work on 1.0).
  • BepInEx 5.x via denikson-BepInExPack_Valheim (5.4.2350+).
  • Tested on Valheim 1.0.15 (network version 40) with BepInExPack 5.4.2350, Windows, 1.0.2 build — play session with BepInEx/LogOutput.log review: 0 exceptions, seed accounting exact (planted=18 … paidHere=17 paidByVanilla=1, 18 seeds in → 0 left), ghosts render green/red with the cost overlay, Shift+E feeds only the aimed kiln/smelter slot, F7 cycles all four center modes.
  • 1.1.0 tested on Valheim 1.0.21 (network version 41) with BepInExPack 5.4.2360, Windows: a half circle built from four wedges of different crops, anchor snap, auto-advance, mouse-wheel rotation, 0 OhMyGrid exceptions.

Known issues

  • Valheim's own requirement panel (bottom of the build UI) still shows the cost of one plant while the donut is active; the mod's overlay at the top shows the real batch cost (Need: … × N (have M)) and that is what gets charged. Cosmetic; planned for 1.0.3.
  • Client-only — no ServerSync. Use freely on dedicated/multiplayer servers without forcing other players to install.

Contributing / releasing

PRs welcome. The dev release workflow (version bump, zip build, Thunderstore upload via tcli) is documented in RELEASING.md.

License

MIT — see LICENSE.

CHANGELOG

Changelog

1.1.0 — 2026-11-08

New geometry: Wedge (a slice of the donut), built to complete a circle one crop at a time. Play-tested on Valheim 1.0.21 (network version 41) + BepInExPack 5.4.2360: a half circle built from four wedges of different crops, no shared edge plants, 0 OhMyGrid exceptions in LogOutput.log.

  • Wedge geometry. F6 now cycles Off → Donut → Wedge → Off. A wedge uses the same inner/outer radius and spacing as the donut, plus a heading and a sweep. Rotate it with the mouse wheel or . / ,, and widen or narrow it with Shift+. / Shift+,. Steps are 15°, so you can reach 1/2, 1/3, 1/4, 1/6, 1/8 and 1/12 of a circle. The overlay shows Heading 345° · sweep 45° (1/8).
  • Wedges tile the circle exactly. Every wedge is cut from the donut's own point lattice with half-open edges. Wedges around one center add up to exactly the donut: no doubled edge rows, no crowded tip, no gaps. The center point belongs to the wedge that contains north.
  • Auto-advance. After you plant a wedge, the heading rotates by one sweep, so the next click continues the circle ([Wedge] AutoAdvance).
  • Snap to remembered centers. Each planting saves its center as an anchor (the last 16, persisted). CursorSnap snaps to the nearest anchor first and falls back to the plant centroid only when there is no anchor. Partial circles now resolve to their true center, so concentric donuts also snap exactly.
  • Out-of-reach is explained. The overlay shows out of reach N (get closer) when points are red only because they are beyond your build reach. A new [Grid] IgnoreReach option (off by default) plants them anyway.
  • Fix: ghost previews created while the vanilla cursor ghost was red (for example while aiming at an existing plant) stayed red forever.

1.0.2 — 2026-09-20

Runtime fixes found while play-testing 1.0.1 on Valheim 1.0.15. This build was play-tested on Valheim 1.0.15 (network version 40) + BepInExPack 5.4.2350: 0 exceptions in LogOutput.log, seed accounting exact, ghosts + overlay rendering, Shift+E targeting OK.

Known issue: vanilla's requirement panel still shows the per-plant cost (1) while the donut is active; the top overlay shows the real batch cost. Cosmetic, planned for 1.0.3.

  • Seeds are now charged for every plant. Since 1.0, vanilla charges one piece after TryPlacePiece returns, so a donut of N plants cost 1 seed. The mod now pays for N-1 itself and leaves the last one to vanilla (stamina/skill intact), checks stock before each plant, and never plants what you can't pay for.
  • Ghost previews render again. Ghost clones are created inactive and stripped of Plant/ZNetView before activation. Previously Plant.Awake ran on the clone and either NRE'd every frame (after the first placement recreated the ghost) or, worse, gave the clone a real ZDO — a phantom plant in the world simulation. If cloning ever fails, the preview turns itself off for that ghost with one error line instead of one exception per frame.
  • Overlay shows what you can afford: can afford N, Need: item × N (have M), and ghosts beyond your stock are tinted red.
  • Shift+E on a smelter/kiln/fire feeds only the station you aim at, until it is full or you run out — no more radius sweep feeding the furnace when you aim at the kiln. Aiming at a specific slot (ore vs fuel) feeds just that slot. Fires use the refill path (no accidental toggle-off).
  • Log lines for seed cost (stock before/after, paid here/by vanilla), Shift+E target + amounts, geometry cycling, and ghost clone creation — so a run can be verified from LogOutput.log.

1.0.1 — 2026-09-20

Compatibility rebuild for Valheim 1.0 (tested against l-1.0.12). No functional changes.

  • Rebuilt against the 1.0 assemblies. 1.0 added optional parameters to Player.PlacePiece and MessageHud.ShowMessage, so the 1.0.0 DLL threw MissingMethodException when planting a donut or showing any HUD toast.
  • Dependency bumped to denikson-BepInExPack_Valheim-5.4.2350.

1.0.0 — 2026-05-17

Initial Thunderstore release.

Planting

  • Donut placement geometry (configurable inner radius / outer radius / spacing).
  • Live ghost previews around the resolved donut center, each tinted per-point: red when blocked by the grow-space check, by max placement distance, or when the soil isn't cultivated for plants that need it.
  • Left-click plants every green ghost in one click, charged from inventory. Out-of-resource / out-of-space / out-of-reach / uncultivated points are skipped silently and reported in the log summary.

Center & snap

  • F7 cycles Player → Fixed → Cursor → CursorSnap → Player with a HUD toast on every change. Fixed pins the donut where it currently is; walk away freely. CursorSnap auto-snaps the donut center to the centroid of nearby existing plants (AutoSnapRadius, default 12 m), so concentric placement is a matter of "stand inside, F7, plant".

Overlay

  • Centered top-of-screen overlay shows the active plant, valid/total point count, total seed cost, expected yield, and the current donut radii. Updates live as you nudge the radii or change mode.
  • Toggle with [Overlay] ShowCostOverlay.

Geometry toggle

  • F6 cycles Off ↔ Donut. Off makes the mod a no-op (vanilla 1-plant click), so you can quickly drop into single-plant precision mode without uninstalling.

Mass interact (Shift+E)

  • Hover-scoped: looks at what you're aiming at and only mass-interacts with the same kind.
  • Pickables additionally filter by drop type, so harvesting carrots doesn't sweep neighboring strawberries or mushrooms.
  • Supports Pickable, Fireplace, and Smelter (both ore and fuel switches).

Other

  • All hotkeys, radii, snap distance, mass-interact radius, and the on/off toggles persist across sessions via the BepInEx config.