Valheim
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
16
Likes
0
Size
190KB
Dependants
ADDatHost Valheim hosting
30% off

Radius Glasses – see the range of workbenches, wards and everything else

Put on a pair of glasses and the radii of your base appear on the ground, one colour for each kind: how far the workbench lets you build, the circle of a ward, the ground where no monster spawns, the warmth of a fire, where comfort counts. Where two circles of the same kind overlap you see one outline around both, so every gap is a notch in the line, and you can close it with one more fire, bench or bed. The glasses read the radii the game itself uses, measured the way the game measures them.

Slot Trinket (belt, armour and cape stay free)
Made at Workbench, level 1
Cost 4 Wood, 6 Resin, 4 Leather scraps, 2 Deer hide
Upgrades Seven, one per biome, each at its own station with the materials of that biome's creatures

What you see

Wear the glasses and every radius within sight is drawn:

  • a bright line on the ground along the edge,
  • a soft glow inside the line, so you see which side is covered,
  • a light wall that fades upwards, so a line behind a slope or in tall grass is still seen.

Lines lie on the floor the radius stands on (a sconce on a wall belongs to its room, not to the storey above), not on its roof, and run over hills and water. They fade out towards the edge of your sight.

At the top of the screen one line says which radii cover the spot you stand on:

Here: ● Workshop (Workbench, Forge) · ● Ward · ● Base, no spawns · ● Comfort 7

Colour Kind Comes from Measured like the game
Amber (a shade per station) Workshop Workbench, forge, stonecutter, artisan table, black forge, galdr table, and the kitchen stations (cauldron, preparation table, mead cauldron) for their own extensions Build range with extensions, flat distance
Blue Ward Ward (pale when it is switched off) 32 m, flat distance
Green Base, no spawns Fires, beds, kilns, smelters, … (player base) Sphere of the effect area
Orange-red Warmth Fires, hearth, braziers, oven, forge, black forge, smelters, kiln, shield generator, bathtub Heat sphere: no freezing, a bed can be used
Violet Comfort Every comfort piece 10 m sphere around it, where it counts for resting
Red Ballista Ballistas A wedge: 30 m, 50° either side of its front
Cyan Shield Shield generators The dome as it is now
White No mist Wisp torches Mist-clearing sphere
Pink Breeding Tamed animals that breed Range in which they count their own kind
Yellow-green Plants Growing saplings and crops (near you) Room each plant needs to grow
Brown-gold Feeding station Feeding Troughs mod, if installed Reach of the station's herd

A workbench and a forge are drawn as separate outlines (each covers only its own pieces), and so are wolves and boars (they do not count each other). Radii of other mods' pieces show as well when they use the game's own parts: a modded fire warms and keeps spawns away like a vanilla one.

Other mods

None of these mods is needed, and none needs the glasses. Each kind below appears only when its mod is installed (it gets its own Show…/Colour… switch the first time). The glasses read the other mod's own values, so changed config values and set radii show as they are.

Colour Kind Mod What is drawn
Brown-gold Feeding station Feeding Troughs Reach of each station, one outline per herd
Peach Settlement Thrallhold 40 m round each settlement banner (named after the town)
Periwinkle Work area Thrallhold Radius of each work post as set, one outline per kind of work
Mint Guarded Thrallhold Circle each guard post watches over
Salmon (a shade per kind) Town place Thrallhold Places of the town: leisure, kitchen, prison, hall, …
Team colour Camp room Holmgang (Battle Arena) Calm room of each camp banner in its team's colour; chambers
Sky Holmgang field Holmgang (Battle Arena) Fighting field of each Holmgang desk
Cyan Shield Holmgang (Battle Arena) Dome cores, pale while they have no charge
Pale yellow Tether reach Animal Leash, Monster Leash How far an animal tied fast to a post can go
Sand Hourglass reach Hourglass Sphere round the glass in which it reads a station

Our other mods are covered without extra work: Double Beds (comfort, base, the ember bed's warmth), Bear Riding and Pig Riding (breeding range), Thrallhold's beds and torches, Farming Tools' plants use the game's own parts and show in the usual kinds. The rest (Knot Log, Sundial, Starborn Breeding, Wolf Riding, Better Stability, Sledding, Where Is My Queen?, Elder Dragons, Knarr, Church Glass, Cluck Fighters, Afrek) have no area to plan a base around.

For modders: show your radius without depending on this mod. Give a component on a piece or creature a member named SeerRadius (field, property or method; a float in metres). That is all; the glasses find it by name. Optional members, all by name and of any visibility:

Member Type Meaning
SeerRadius float Radius in metres (required; 0 or less draws nothing)
SeerCategory string Kind to join (Workshop, Base, Warmth, … or a new name; default: the class name)
SeerTitle string Name of a new kind as shown (text or a $token)
SeerColour string Colour of a new kind, RRGGBB
SeerShape string Column (flat distance, the default) or Ball (sphere)
SeerCenter Vector3 Centre (default: the object's position)
SeerActive bool Draw only while true
SeerGroup any Outlines join only within the same value
SeerLabel string Name in the "Here:" line (default: the piece's name)
SeerTint Color or string A colour per object (a team colour)
SeerFaint bool Draw paler (switched off, empty)
SeerArc float Half angle of a wedge facing the object's front, degrees
public class Kennel : MonoBehaviour
{
    public float SeerRadius => m_range;          // that is enough
    public string SeerCategory => "Kennel";
    public string SeerColour => "FF8800";
}

For players: rules in the config. Any other mod can be read with a rule in 4 - Other mods, Rule1 … Rule10, as Key=Value; Key=Value:

Assembly=SomeMod; Type=SomeMod.Beacon; List=All; Radius=Range; Active=IsOn; Category=Beacon; Title=Beacon; Colour=88CCFF

Type is the full class name, List a static member with the live objects (or pieces / characters to look on pieces or creatures near you), Radius and the other keys are expressions: a member (Range, Config.Radius, private ones too), a static member of a type (SomeMod.Settings::Reach.Value), a method (Desk::ColorOf(Team)), comparisons and logic (State == Post, Kind != None, Fuel > 0, !Off && Fuel >= 1, A || B), values from the object's ZDO (zdoFloat('key'), zdoString, zdoInt, zdoBool, zdoVec3). Label is a text with {expressions}. A rule that cannot be read is switched off with one line in the log; the game goes on.

One kind at a time: press H while you wear the glasses. Each press shows the next kind that is in sight, then all again. Shift+H puts the lines away and back.

Securing a base

Every workbench, forge, stonecutter, artisan table, galdr table and black forge also carries a player-base area that grows with its build range, and so do fires, beds, kilns and smelters. Inside it no monster spawns. Wear the glasses, press H until only Base, no spawns shows, and walk once around the middle of your base: the green line is the edge of the safe ground, every notch is a gap. Put a workbench (20 m, more with extensions) into the notch and the line closes. Already at level 1 you see 50 m, two workbench circles side by side.

Levels

The glasses are upgraded like armour: in the crafting panel's upgrade tab you see the next level and what it costs. Each level sees further.

Level Biome Sight Station Materials
1 Meadows 50 m Workbench 1 4 Wood, 6 Resin, 4 Leather scraps, 2 Deer hide
2 Black Forest 60 m Workbench 2 2 Bronze, 6 Greydwarf eye, 2 Troll hide
3 Swamp 75 m Forge 2 3 Iron, 4 Bloodbag, 4 Ooze, 1 Chain
4 Mountains 90 m Forge 3 2 Crystal, 3 Silver, 2 Wolf pelt, 3 Freeze gland
5 Plains 105 m Forge 4 3 Black metal, 6 Linen thread, 2 Lox pelt, 5 Needle
6 Mistlands 120 m Galdr table 1 6 Carapace, 2 Mandible, 3 Refined eitr
7 Ashlands 140 m Black forge 3 3 Flametal, 3 Asksvin hide, 6 Charred bone, 2 Morgen sinew
8 Deep North 160 m Black forge 4 3 Gold, 3 Moose hide, 2 Elaking hair bundle, 2 Norn thread

The upgrade shows at every station of the table, so you can look up the next level wherever you are. It can only be made at its own station. The tooltip names it: Next: 75 m at Forge, level 2.

The real thing

Lenses. Viking-age Gotland had lenses: the Visby lenses, ground from rock crystal in the 11th and 12th century, sharp enough to magnify. The glasses start with polished resin and get rock crystal in the Mountains.

Radii. The glasses use the same numbers and the same measure as the game:

Kind Game code Shape
Workshop CraftingStation.GetStationBuildRange() (20 m, +4 m per workbench extension, +3 m at forge, black forge, galdr table and cauldron; artisan table 40 m +3 m) Column: height does not count (HaveBuildStationInRange sets the point to the station's height)
Ward PrivateArea.m_radius (32 m) Column (DistanceXZ)
Base, Warmth EffectArea of type PlayerBase or Heat, with the collider's scale; the bathtub's cosy area 1 m further (the game asks it with a 1 m radius) Ball (a tall capsule: column)
Comfort SE_Rested counts comfort pieces within 10 m Ball
Ballista Turret.m_viewDistance (30 m) from the ballista, within m_horizontalAngle (50°) of its front (BaseAI.CanSeeTarget) Wedge of a ball
Shield ShieldGenerator.m_radius (now) Ball
No mist ParticleSystemForceField.endRange of the demister (24 m), as ParticleMist.InsideDemister asks it Ball
Breeding Procreation.m_totalCheckRange (10 m, lox 20 m) Ball
Plants Plant.m_growRadius (crops 0.5 m, saplings 2–3 m) Ball

A ball meets the ground in a circle of radius √(r² − h²), where h is how far the centre lies above or below the ground there. That is why the warmth of a fire on a hill reaches further downhill than up, and why the base sphere of a fire on the first floor is smaller on the ground floor.

The outline of a union. For each kind, every rim is sampled every half metre on the ground; the parts that lie inside another radius of the same kind are left out, and where a rim dives into its neighbour the corner is found by bisection to a couple of centimetres.

Configuration

BepInEx/config/zap.radiusglasses.cfg

Glasses (server-synced, admin only)

  • Level1 … Level8: station and materials of each level, as Station level | Item:amount, Item:amount. Stations: Workbench, Forge, Stonecutter, Artisan, Cauldron, Galdr, Blackforge or a prefab name. Up to four materials fit the panel at once.
  • SightPerLevel: sight per level in metres, 50, 60, 75, 90, 105, 120, 140, 160. A level never sees less than the one before.

Categories (client)

  • Show<Kind>: draw this kind (ShowWorkshop, ShowWard, ShowBase, ShowWarmth, ShowComfort, ShowTurret, ShowShield, ShowMistfree, ShowBreeding, ShowCrops, ShowFeeding).
  • Colour<Kind>: its colour as hex RRGGBB.
  • Kinds of other mods (ShowSettlement, ShowWorkArea, ShowGuard, ShowTownPlace, ShowArenaRoom, ShowArenaField, ShowTether, ShowHourglass) appear once their mod is found.

Other mods (client)

  • ReadOtherMods (on): read the radii of other mods at all.
  • SeerRadiusConvention (on): look for components with a SeerRadius member.
  • Rule1 … Rule10: rules for any other mod (see "Other mods"). Kinds made by rules or by the convention get their Show…/Colour… here.

Client

  • CycleKey (H): one kind after the other; with Shift: lines away and back.
  • ShowStandingLine (on): the line at the top of the screen.
  • LineWidth (0.2 m), CurtainHeight (0.8 m, 0 = no wall), InnerGlow (1.4 m, 0 = none), Brightness (1).
  • CropRange (20 m): plants are drawn only this close to you.

Multiplayer and compatibility

  • Everyone needs the mod (the glasses are an item). The levels' costs and sight come from the server.
  • What you see is yours alone: the lines are drawn on your screen only. Other players see the glasses on your nose.
  • The mod adds one item and one recipe and changes nothing in how radii work. It reads the stations, wards, fires and other parts; it does not move or resize them.
  • The trinket slot holds one trinket: wearing the glasses means not wearing an adrenaline trinket.
  • Other mods (Feeding Troughs, Thrallhold, Holmgang, Animal Leash, Monster Leash, Hourglass, and any mod with a SeerRadius member) are read by name when they are installed; none of them is a dependency. If a newer version of such a mod renames what the glasses read, that one kind stops with one line in the log.

Deutsch

Radiusbrille – sehen, wie weit die Dinge reichen. Setz die Brille auf, und die Radien deiner Basis erscheinen am Boden, jede Art in ihrer Farbe: Bauradius von Werkbank und Schmiede, Kreis der Schutzrune, der Boden, auf dem kein Monster erscheint, die Wärme des Feuers, wo Komfort zählt, Ballisten, Schilde, Nebelfackeln, Zucht und Pflanzen. Überlappen sich Kreise derselben Art, siehst du einen gemeinsamen Umriss; jede Lücke ist eine Kerbe in der Linie.

Getragen wird sie als Schmuckstück, Gürtel und Rüstung bleiben frei. Gebaut an der Werkbank aus 4 Holz, 6 Harz, 4 Lederfetzen und 2 Hirschleder.

Drei Teile hat jede Linie: die helle Linie am Boden, einen weichen Schein nach innen (welche Seite abgedeckt ist) und eine nach oben verblassende Lichtwand (sichtbar hinter Hängen und im hohen Gras). Oben am Bildschirm steht, welche Radien dich gerade abdecken.

Basis absichern: Jede Werkbank (und Schmiede, Steinmetztisch, Feuer, Bett, Ofen …) trägt eine Basis-Zone, die mit ihrem Bauradius wächst; darin spawnt kein Monster. Mit H nur „Basis, kein Spawn“ zeigen und einmal durch die Mitte der Basis gehen: Die grüne Linie ist der Rand des sicheren Bodens, jede Kerbe eine Lücke, die eine weitere Werkbank schließt.

Andere Mods: Ist einer unserer Mods installiert, zeigt die Brille auch seine Bereiche, ohne dass einer den anderen braucht: Futterstellen (Feeding Troughs), Siedlung, Arbeitsbereiche, Wachposten und Stadtorte (Thrallhold), Lagerräume in Teamfarbe, Holmgang-Feld und Kuppelschild (Holmgang), wie weit ein angebundenes Tier kommt (Tierleine, Monsterleine) und die Reichweite der Sanduhr. Andere Mods können ihren Radius zeigen, indem sie einem Bauteil ein Feld SeerRadius geben; Spieler können in der Config (Rule1 … Rule10) Regeln für beliebige Mods eintragen.

Taste H zeigt eine Art nach der anderen, dann wieder alle; Umschalt+H legt die Linien weg und holt sie zurück.

Acht Stufen, eine pro Biom, verbessert wie Rüstung: Im Verbessern-Reiter siehst du die nächste Stufe und ihr Material, jede an ihrer Station, mit den Materialien der Wesen ihres Bioms (Eber und Hirsch auf den Wiesen, Trolle und Grauzwerge im Schwarzwald, Wölfe und Drachen in den Bergen, …). Jede Stufe sieht weiter: 50, 60, 75, 90, 105, 120, 140, 160 m – schon die erste reicht, um von der Mitte einer kleinen Basis ihren ganzen Rand zu sehen.

Echt gemessen: Die Brille nimmt die Zahlen und das Maß des Spiels. Werkbank und Schutzrune zählen eben (die Höhe ist egal), Feuer, Komfort und Ballisten als Kugel, die den Boden in einem Kreis von √(r² − h²) trifft. Die Linsen beginnen aus Harz und werden in den Bergen zu Bergkristall wie bei den Visby-Linsen aus Gotland.

Im Mehrspieler braucht jeder den Mod; Kosten und Sichtweite kommen vom Server. Die Linien sieht nur, wer die Brille trägt.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.