You are viewing a potentially older version of this package. View all versions.
Discobricks-LeyLines-0.4.0 icon

LeyLines

Stone circles wake up: ancient portals in their gaps lead to dolmens and runestones across the world, opening as you explore each biome. Five gates, one name, and the ley lines shift.

Date uploaded 3 weeks ago
Version 0.4.0
Download link Discobricks-LeyLines-0.4.0.zip
Downloads 37
Dependency string Discobricks-LeyLines-0.4.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 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.2360

README

Ley Lines

The stone circles of the Meadows were never just ruins. Each one sits on a knot of ley lines, and the gaps between its stones are gates to distant places: a quiet dolmen in the Meadows, a runestone deep in the Swamp, the burning edge of the Ashlands.

Ley Lines turns every stone circle into a hub of ancient portals. They open as you explore, so the world gets smaller the more of it you know.

Features

  • Ancient portals. Every gap between a circle's standing stones holds a portal. Each one leads to a fixed dolmen or runestone somewhere in the world.
  • Opened by exploration. A portal stays silent until you've set foot in the biome it leads to. Walking through one never drops you, in Meadows gear, into a biome you haven't seen yet.
  • Latitude matters. Circles near the world's centre line lead to the early biomes. Circles farther north or south lead to the late ones, and the outermost circles reach the edge of the world.
  • Whispers, not coordinates. Hover over a portal to hear where it leads: "A calm place of soft grass and gentle wind, far, far away."
  • Mind the edges. Portals to the Ashlands and the Deep North don't open when you walk into them. You have to choose to go: Brave the heat, Challenge the blizzard.
  • Ways back.
    • Dolmens get a gate of their own. It opens both ways as soon as the circle portal leading there is open.
    • At a runestone you've just arrived at, press G to return to the portal you came through.
  • Nothing to build, nothing saved. The portals are part of the locations themselves, so they appear in existing worlds and disappear cleanly if you remove the mod.
  • Multiplayer. Every player gets the same portals. The server decides what the ley lines do.
The ritual (spoilers)

Building portals inside a stone circle strains the ley lines, and the stones let you know. Build five, give them all the same name, and the stones answer: every circle in the world gets new destinations.

The ley lines need time to recover: 30 in-game days by default. If you try again too soon, the gates crumble. The stones also remember every name that has moved them, and they won't answer the same one twice. The one who performs the ritual doesn't come through it unscathed.

Installation

With a mod manager (recommended): install Ley Lines through r2modman or Thunderstore Mod Manager.

By hand:

  1. Install BepInExPack_Valheim.
  2. Copy WorldPortal.dll into Valheim/BepInEx/plugins/LeyLines/.

Multiplayer: install it on the server and on every client. The server sends the list of locations, and it decides when the ritual shifts the ley lines.

Configuration

The config file is BepInEx/config/dioksy.worldportal.cfg. It's created the first time you start the game with the mod installed. Options marked server are read on the host.

Section Option Default What it does
General MaxPortals 5 Maximum portals per stone circle. A circle gets one per gap between its stones.
General LeaveEntrance false Leave the widest gap without a portal, as an entrance.
General OpenByBiome true Portals open once you've been in their destination's biome. If off, the destination itself has to be explored on your map.
General ReturnKey G Key to return from a runestone you arrived at.
General CircleLocations StoneCircle Location prefab name prefixes that get portals.
General TargetLocations Dolmen,Runestone Location prefab name prefixes the portals lead to (server).
General GateLocations Dolmen Destinations that get a two-way gate in their centre. Anything in TargetLocations without a runestone should be listed here too, or there's no way back.
General UndiscoveredLocations (empty) Destinations that are usable before you've discovered them.
Bands AnchorPercentile 0.95 Scales the latitude bands to the spread of stone circles in your world.
Bands Band0 … Band3 (see file) Biome weights for each band, from the centre line outward. Edge means the Ashlands in the south and the Deep North in the north.
Ritual Enabled true Turn the ritual on or off.
Ritual Portals 5 Same-named portals needed in one circle.
Ritual CooldownDays 30 In-game days between shifts (server).

Compatibility

  • The mod doesn't change any vanilla prefabs and doesn't add pieces or items.
  • Other mods that move or replace the vanilla StoneCircle, Dolmen or Runestone locations may change which circles get portals and where they lead.

Building from source

The mod needs the .NET SDK and a Valheim install.

dotnet build -c Release -p:ValheimDir="C:\path\to\Valheim"

A Release build writes a ready-to-upload Thunderstore zip to dist/. Every build also copies the DLL into your r2modman Default profile, if that profile exists.

Changelog

See CHANGELOG.md.

License

MIT

CHANGELOG

Changelog

0.4.0

  • First public release as Ley Lines.
  • Portals open once you've set foot in their destination's biome (OpenByBiome; off = the destination must be explored on the map).
  • Dolmen gates open both ways as soon as the circle portal leading to them is open.
  • Ashlands and Deep North portals ask for confirmation instead of opening when you walk in.
  • Every gap between the stones gets a portal (LeaveEntrance to keep one gap free).
  • All portals in a circle sit level, at the height of the highest ground under them.
  • Lore-flavoured portal descriptions instead of location names and distances.
  • Default return key is now G.