heyheythere - Procedural Village Generator

Drop one actor in your level and it lays out a village from a seed: roads, houses, a church, a square, a pond, fields and woods. Walk in: its doors open onto rooms furnished for what each house is. One C++ plugin with its whole surface in Blueprint, multiplayer and saved, with PCG nodes and a stylized kit of 213 meshes.

The guide: heyheythere.com/docs/village-generator, a ten-minute quickstart, how-tos, your own kit, and a reference for every node and setting. Read it before you buy.

Try it first: the playable Windows demo is free, about 325 MB; unzip it and run the exe.

Villages from a seed

  • Two to four roads out of a square, lanes between them, houses along them, fenced yards behind, fields outside, woods round the edge
  • The same seed builds the same village every time: in the editor, in a packaged game, on every machine
  • Along your own roads when you give it some, on your landscape or meshes; too-steep plots stay empty
  • Build in the editor, or at run time on a background thread for a sandbox or a roguelite

Houses from modules

  • Walls, corners, gables, roofs and foundations on one grid: any length, one to three storeys, rectangles, L and T shapes
  • Five wall styles (stone, brick, plaster, ochre, plank) and three roofs (tile, slate, thatch)
  • A church with a nave, a louvred belfry and a spire; an inn, a shop, a smithy, a bakery, farms and homes, each where it belongs
  • Rules as data: a village type sets the size, roads, rings of houses, roles, fields and woods; duplicate it for a hamlet or a market town, and Set Type swaps it in play

Walk inside

  • Doors that open as anyone comes near and shut after; open, shut and ask about any door from Blueprint, replicated to every player
  • Rooms furnished by role: a home's hearth, table and beds up the stairs, the smithy's forge and anvil, the inn's bar and rooms of beds, the shop's counter, the bakery's oven, the church's pews and altar
  • Nothing stands in a doorway, before a window or at the stairs; the same seed lays the same rooms, and Refurnish Building lays one again
  • Villagers in and out: every bed, seat and workplace inside has a spot on the floor to walk to, and the navmesh runs through every doorway, so an NPC goes home with a plain Move To
  • Some 40 pieces of furniture in the kit, or your own: name a piece, say where it stands, give its mesh the sockets of its places
  • A few lights on the fires and lanterns nearest the player, so the room you walk into is lit

Places and areas for your game

  • Beds, workplaces, seats, counters, a notice board and the well's gathering spots, each facing the right way
  • Get Home and Get Work Spot claim one for an NPC; find, claim and release places from Blueprint
  • Named areas: the village, its core, the square, each field, the meadow, the woods, each pond; ask if a point is in one or find a free spot in it
  • A pond in the meadow where the ground is flattest, with reeds, lily pads and a dock to fish from
  • Spawn rules put your actors in an area as play begins: villagers in the village, deer in the meadow
  • VG Glint: a sparkle on the places your player can use, on by default, per place kind

Edit and bake

  • Move, pin or remove a building; the rest is rebuilt round it
  • Bake to actors: plain level actors World Partition streams, to finish by hand

Multiplayer and saves

  • Replicated: the type, the seed, your edits and the open doors go to every client, and each machine builds the same village from them
  • Spawn rules run on the server; places claimed for NPCs are kept through a rebuild while their place stands
  • Saved: the seed, pins, clearings and open doors in one struct for your save game, one node each way

PCG

  • Village Points gives your PCG graph the buildings, places, roads, walls, furniture and doors as points, with their role and openings
  • Village Clearance keeps your scattered points off the houses and roads
  • The demo dresses its villages this way: vines on plain walls, flowers at their feet

Included

  • The stylized kit: 213 meshes on one atlas: walls, roofs, doors, floors, stairs, furniture, props, trees, grass, crops, a pond, ground decals, and vines, hedges and flowers for dressing
  • Use your own kit: point a kit data asset at your walls, roofs, furniture and props
  • The demo in the video: a village with a waystone that grows the next of six seeds round you, N for the next in another of four styles, villagers walking in and out of their homes and to work, E to open a door, a notice board, the overlay of places and areas
  • Its people wear Epic's mannequins from the Third Person template when your project has them
  • Console commands to change the seed, rebuild, list roles, draw the overlay, open every door and list who is inside

Not in this version

  • Its water is ponds: no rivers, streams, lakes or bridges
  • No city blocks or town walls; a storey is one room, without partitions
  • It builds on your terrain and doesn't shape terrain of its own

Engines and platforms

  • Unreal Engine 5.6, 5.7 and 5.8, on Windows, Mac and Linux
  • Blueprint-only and C++ projects
  • Uses the engine's PCG plugin, which is Beta in 5.6

Support through this page's comments or by email.