Skip to content

World Zones: the Farmland section ​

This page belongs to the World Zones chapter. It covers the Farmland section of the Inspector. Z-MOD shows it when the selected zone's type is Farmland. The Farmland Generator plans fields, plants crops, orchards, pastures and fallow land, lays farm tracks, draws fences and hedges, builds a farmstead (with interiors), and adds details and exterior props.

For a Farmland zone, this section drives generation. The zone's own Generate / Clear Generated buttons are hidden (see Generate, Regenerate and Clear). The zone's own vegetation layers (in Parameters) start off for Farmland; when you switch one on, it grows as a band along the zone's edge (Distribution Border only, 4 m).

Screenshots

There are no screenshots of this section yet. None could be taken from a real run of the editor: this environment has no Electron build of the editor. This page is written from the editor's source code (world-zone-farmland.html / .ts, farmland*.ts, world-zone.service.ts, the en-US language files).

Stages ​

The Farmland Generator runs these stages, in this order (FARMLAND_STAGES):

StageRow count showsCan hold locked items
Fieldsthe fields plannedlocked fields
Cropsplants on the fields—
Tracksfarm tracks (generated as Roads)locked tracks
Boundariesfences + fence models + hedge plantslocked fences
Buildingsfarmstead buildingslocked buildings
Room Layoutsbuildings laid out at the last run—
Furnishinginterior props placed at the last run—
Detailsdetail plants (rough ground, field edges, waterside)—
Exterior Furnishingexterior itemslocked items

Each row has the stage name, its status (Generated / Dirty / Empty, as for the Settlement stages), its count, a 🔒 n mark when some items are locked, and, at Inspector level Medium, two buttons:

  • ▶ (Generate Fields, Generate Crops, Generate Tracks, Generate Boundaries, Generate Buildings, Generate Details, Generate Exterior): runs that stage only. Disabled while busy, without usable terrain, or when the zone is disabled.
  • ✕ (Clear {stage}): removes this stage's unlocked content. Disabled while busy or when the stage is Empty with nothing in the map.

When stages are out of date the section says: "Some stages are out of date (Needs Regeneration): Regenerate runs them; nothing regenerates by itself."

Actions ​

ButtonWhat it doesAvailability
Generate AllThe zone's Generate: every Farmland stage, plus the zone's own vegetation layers when any is on. One undo step. Message: "Farm: N fields, N plants on them, N tracks, N fences, N buildings. Exterior: …"Disabled while busy, without terrain, or with a blocker (the tooltip names it).
RegenerateRuns the stages that are not up to date, in order. When only the appearance is Dirty, redraws materials only. "Nothing to change." when all is up to date. One undo step.Disabled while busy, without terrain, when disabled, or when nothing needs to run.
Clear GeneratedRemoves the farm's unlocked content and the zone's own vegetation layers' content. Message: "Cleared N farm items."Disabled while busy or with nothing generated.
Clear Including LockedAsks: "Remove everything this farm generated, including N locked items and locked fields?" Confirm with the red button or Cancel.Disabled while busy or when nothing is locked.
Regenerate InteriorsLays out and furnishes the farmstead's buildings again; fields, tracks, fences and buildings stay. Locked buildings and hand-made rooms are kept. Inspector level Medium.Disabled while busy, without terrain, when disabled, or with no buildings.

As for settlements, every run also brings the zone's Terrain Paint, Loot and Vehicle Spawns stages up to date in the same undo step, and validates the zone's area afterwards.

Generation Materials ​

Inspector level Medium. The same box as in the Settlement section, for the farmstead's buildings and the farm's road slots (farm tracks and farmyard). Regenerate Appearance, Re-roll and the Buildings / Roads buttons redraw materials without moving anything.

Planning overlay, field preview and the field list ​

Show Farmland Planning ​

Tick Show Farmland Planning to draw, on the selected Farmland zone:

  • every field filled by type: Crop (yellow), Orchard (green), Pasture (light green), Fallow (brown), labelled "Field n · Type" (🔒 when locked);
  • track candidates: the boundaries two fields share where no track runs yet (dashed);
  • the farmstead's ground (red) and a dashed line to its access;
  • the selected field's outline in white (holes dashed).

A legend appears under the buttons. The overlay is editor display only.

Preview Field Layout ​

Preview Field Layout (Inspector level Medium) plans the Fields stage without changing anything and draws the planned fields in place of the current ones. The hint says "N fields planned - Apply generates exactly this layout." The preview redraws itself about 0.3 s after each parameter change. Apply generates exactly that plan (Generate Fields, one undo step); Discard drops it. The button reads Preview again while a preview is shown.

The field list and the field inspector ​

After the Fields stage ran, a fold-out Fields (N) lists every field: colour swatch, name (Field n unless renamed), area in hectares, and 🔒 when locked. Click a field in the list to select it; the planning overlay turns on by itself. Click the same field again to deselect it.

In the viewport: with Show Farmland Planning on and Select / Edit mode, a click inside a field of the selected zone selects that field instead of starting a move of the zone. Without a field selected, the section says "Click a field in the viewport, or in the list, to inspect it."

The selected field's box:

Control / rowEffect
NameType a name and confirm; empty shows the placeholder Field n. One undo step.
TypeCrop / Orchard / Pasture / Fallow. Sets the field's type by hand. If the Crops stage was already generated, that field is replanted at once ("Field regenerated: N plants."); otherwise "Field type set." One undo step.
IDField id and layout (Orthogonal / Organic). Inspector level Advanced.
OrientationField direction in degrees. Inspector level Medium.
Aream² and ha.
StatusPlanted (N plants) or Not planted, plus type set by hand when overridden.
Lock FieldA locked field keeps its outline and what grows on it through Generate Fields and Generate Crops. One undo step.
Regenerate FieldRegrows this field's content only. One undo step.

Last run report and warnings ​

After a run or a preview, the section lists the run's statistics (fields, coverage, crop rows and plants, orchard trees, tracks and their length, fields reached / not reached, fences and hedges with lengths, gates, farm buildings by kind, interiors, exterior items…). Interior skip reasons appear only when not zero.

WarningMeaning
No field fits this zone with these sizes and limits (slope, water, roads, edge margin).Lower the field sizes or relax the limits.
No flat ground near a road fits the farmstead: none was placed.Make the farmstead smaller, or bring a road near flat ground.
The crop mix has nothing that resolves: crop fields stay empty.Add an entry to Crops (one per field).
The crop area is very large: plant spacing was widened to stay within the instance budget.Information only.
No road runs near the zone: the tracks have no access from a road.Draw a road next to the zone.
Fence models are chosen but none is set: the procedural fence was used.Add a fence model, or switch Fence back to Procedural.
None of the fence models is in the project: the procedural fence was used.Re-import the models.
The farm building set resolves to nothing.Enable or add buildings.
No farmhouse fits the farmstead.Enlarge the farmstead.

Preset ​

Preset buttons: Mixed Farms, Crop Fields, Pasture Land, Orchard Area. Tooltip: "Configuration only: a preset sets the parameters below; nothing is generated until you generate." A new Farmland zone starts as Mixed Farms.

Applying a preset replaces every Farmland parameter with that preset's values (one undo step), including the farm building set, every mix, the fence models and the exterior options. Your own Generation Materials palettes are not part of a preset, so they return to the defaults. As soon as you edit a value, no preset is shown selected and the hint reads "Custom: the parameters were edited after the preset was applied."

What the presets change from Mixed Farms:

PresetMain differences
Mixed FarmsThe base values listed below.
Crop FieldsOrthogonal layout; large fields (60–110 × 120–220 m, min 2000 m²); Crop 85 / Orchard 0 / Pasture 5 / Fallow 10; row jitter 12 %; hedges on 35 % of boundaries; few trees and edges.
Pasture LandOrganic layout; fields 50–90 × 60–120 m, variation 50 %; Pasture 80; more pasture trees; fences on 90 % of boundaries, gates 80 %.
Orchard AreaOrthogonal layout; fields 40–70 × 60–120 m; Orchard 75; hedges on 50 % of boundaries.

Parameters ​

The parameters are grouped in fold-outs named after what they feed; Fields is open by default. Changing a value marks the stage it feeds Dirty. Number fields clamp to their range; % fields show 0–100 and store 0–1; Width min / max and Length min / max follow each other so min never exceeds max. Every change is one undo step.

Inspector levels: the amounts, densities, the field-type weights, widths and the farmstead size are Normal; spacing, jitter, margins, slopes, field sizes and the choices Field direction, Row direction and Fence are Medium. Defaults are those of Mixed Farms.

Fields ​

ControlRange / optionsDefaultLevelPurpose
Field layoutOrthogonal / Organic / MixedMixedNormalOrthogonal: rectangles on the field direction's axes, straight boundaries. Organic: irregular fields following roads, water and terrain. Mixed: rectangles where the ground allows, organic fields where roads, water, edges or slopes cut them.
Field directionAuto / ManualAutoMediumAuto: from the roads around the zone (their dominant axis) and its long axis. Manual: the angle below.
Field direction (°)−180–180, 1 (Manual only)0MediumDegrees from world X towards Z. Crop rows run along it by default.
Width min (m)8–1000, 140MediumField width across the field direction.
Width max (m)8–1000, 180Medium
Length min (m)8–1000, 170MediumField length along the field direction.
Length max (m)8–1000, 1150Medium
Variation (%)0–100, 535NormalHow irregular Organic and Mixed boundaries are; how staggered Orthogonal ones are.
Min field area (m²)50–200 000, 50900MediumSmaller pieces are merged into a neighbour or left as rough ground.
Max field slope (°)1–60, 114MediumSteeper ground is never part of a field.
Water clearance (m)0–100, 18MediumGround kept free between a field and water.
Road setback (m)0–50, 0.53MediumGround kept free between a field and a road's built edge.
Zone edge margin (m)0–100, 14MediumGround kept free inside the zone's edge.

Field types ​

Relative weights (0–1000, step 1, Normal) of the four field types: Crop 55, Orchard 15, Pasture 20, Fallow 10.

Crops ​

ControlRange / optionsDefaultLevelPurpose
Row directionAlong field / Across field / Manual angleAlong fieldMediumRows along or across each field's direction, or every row at the angle below.
Row angle (°)−180–180, 1 (Manual only)0MediumWorld angle of every crop row.
Row spacing (m)0.3–20, 0.11.8MediumMetres between crop rows.
Plant spacing (m)0.2–20, 0.10.9MediumMetres between plants along a row.
Row jitter (%)0–100, 525MediumHow far plants wander off their row slot.
Density (%)0–100, 594NormalShare of row slots planted.
Edge margin (m)0–30, 0.52.5MediumUnplanted ground along the field boundary.
Alternate rows (the mix's next crop)checkboxoff—Every other row grows the mix's next crop.
Crops (one per field) mixgrass and shrub sourcesWheat 3, Corn 2, Vegetable 1—Each crop field grows one entry of this mix.

Orchard ​

FieldRange, stepDefaultLevelPurpose
Row spacing (m)2–40, 0.56.5MediumMetres between orchard rows.
Tree spacing (m)1.5–40, 0.55MediumMetres between trees in a row.
Jitter (%)0–100, 512MediumHow far trees wander off their slot.
Edge margin (m)0–30, 0.54MediumGround along the boundary left without trees.
Grass /100 m²0–100, 16NormalGrass patches under the trees.
Orchard trees mixtree sourcesFruit tree 3, Young Tree 1—

Pasture ​

FieldRange, stepDefaultLevel
Grass /100 m²0–100, 114Normal
Shrubs /100 m²0–5, 0.050.25Normal
Trees /100 m²0–5, 0.010.03Normal

Mixes: Pasture grass, Pasture shrubs, Pasture trees.

Fallow ​

FieldRange, stepDefaultLevelPurpose
Grass /100 m²0–100, 15NormalDry grass per 100 m².
Weeds /100 m²0–5, 0.050.6NormalWeeds per 100 m².

Mixes: Fallow grass, Fallow weeds.

Farm tracks ​

ControlRange / optionsDefaultLevelPurpose
Track surfaceDirt / Gravel / GrassDirtNormalThe track's surface.
Track density (%)0–100, 550NormalHow many spines reach the far fields.
Track width (m)2–10, 0.53.5Normal
Curvature (%)0–100, 535Medium0: sharp corners; higher: smoother curves through bends.
Field access (%)0–100, 560MediumChance a field away from the tracks gets a branch to its edge.
Generate farm trackscheckboxon—Farm tracks as Roads along field boundaries.

Fences and hedges ​

ControlRange / optionsDefaultLevelPurpose
BoundariesNone / Fence / Hedge / MixedMixedNormalMixed: fences around pastures, hedges elsewhere.
FenceProcedural / Fence modelsProceduralMediumProcedural: a rail fence built by the spline system (the editor notes splines are not exported to the runtime yet). Fence models: your models, one per module, exported as instanced props.
Coverage (%)0–100, 570NormalShare of boundaries that get a fence or a hedge.
Fence module / post spacing (m)0.5–20, 0.12.5MediumOne fence model per module, or the procedural fence's post spacing.
Gate probability (%)0–100, 560MediumChance a fence run gets a gate besides the ones at tracks.
Gate width (m)2–20, 0.54Medium
Hedge width (m)0.4–10, 0.11.6MediumTwo staggered rows above 1.2 m.
Hedge density (%)0–100, 570NormalHow closely hedge shrubs stand.
Height variation (%)0–100, 535MediumHow much hedge shrubs vary in size.
Hedgerow trees (%)0–100, 525NormalA hedgerow tree every so often.

With Fence: Fence models, a Fence models list appears: each row is a model (or Missing model), a weight (0–1000, step 1) and ✕. Add a fence model… lists the project's imported models. An empty list says "No fence model: the procedural fence is used." Mixes: Hedge shrubs, Hedgerow trees.

Farmstead ​

ControlRange / optionsDefaultLevelPurpose
Yard surfaceDirt / Gravel / GrassGravelNormalThe farmyard's surface.
Width (m)16–300, 156NormalAlong the front (towards the road).
Depth (m)16–300, 144NormalAway from the road.
Trees around it (%)0–100, 560NormalA windbreak behind and beside the farmstead.
Generate a farmsteadcheckboxon—A farmyard with farm buildings near the road access.

Farm building set: each row has an Enabled checkbox, the building's name, a weight (0–1000, step 1) and ✕. Add a building… lists the farm presets first (Farmhouse, Barn, Stable, Farm shed, Machine shed, Grain store…), then the other built-in buildings, then the map's hand-made buildings. Default: Farmhouse 30, Barn 30, Machine shed 15, Stable 10, Farm shed 10, Grain store 5.

Interiors ​

The same controls as the Settlement Interiors group: Generate Room Layouts (on), Furnish Interiors (on; disabled without room layouts), and with furnishing on, Preset (Auto by each building's kind), Density (Low / Normal / High) and Quality (Poor / Normal / Rich). The panel notes: "The farmhouse is laid out as a home; barns, stables and stores as one open space. Farm and machine sheds stay empty." There is no Back / Side Doors option for farms.

Details ​

ControlRangeDefaultLevelPurpose
Field edge vegetation (%)0–100, 525NormalShrubs and trees along field edges with no fence or hedge.
Rough ground (%)0–100, 550NormalGrass, shrubs and trees on ground no field took.
Denser vegetation by watercheckboxon—Thicker vegetation on the water side.

Mixes: Rough grass, Rough and edge shrubs, Rough, edge and farmstead trees.

Exterior furnishing ​

The farm's Exterior Furnishing box (tractors, troughs, bales, tanks, abandonment and details). It is the same box as for settlements: see Zone sections → Exterior Furnishing.

Mix rows ​

Every mix in this section works the same way: each row has a source dropdown (the map's vegetation definitions of the allowed categories, then the built-in presets marked (preset)), a weight (0–1000, step 0.5) and ✕ Remove from the mix. Add to mix… adds the chosen source with weight 1. An empty mix shows "Nothing in the mix: this layer generates nothing."

Typical tasks ​

Make a farm with fenced pastures ​

  1. Draw a zone with Type of new zones: Farmland (see Drawing a zone).
  2. In the Farmland section, click Pasture Land.
  3. Click Preview Field Layout (Medium level) to check the fields; adjust Width / Length while the preview follows.
  4. Click Apply, then Generate All for the rest of the farm.

Change one field into an orchard ​

  1. Tick Show Farmland Planning and click the field in the viewport (Select / Edit mode).
  2. Set Type to Orchard. If crops were generated, the field is replanted right away.
  3. Tick Lock Field so later Generate Fields / Generate Crops keep it.

Typical mistakes ​

  • Applying a preset after fine-tuning: it replaces every Farmland parameter. Undo with Ctrl+Z.
  • Changing the zone's Type away from Farmland: the zone gets the new type's parameters and the Farmland section disappears. The farm's generated content stays in the map until cleared.
  • Expecting a farm without a nearby road to have track access: draw a road along the zone first.
  • Fence models with an empty list: the procedural fence is used instead, with a warning.