Jump to content

World generation

From MirkLurk Wiki
Revision as of 22:41, 28 September 2026 by MirkLurkBot (talk | contribs) (repo-sync: c00ce5886823 text:082d5ff4a0c37585f6a2988f04a1d2c9)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

World generation happens in two stages: the game chooses the world-map biomes and several landmark zones upfront, then generates each area's terrain when you enter it. There is no reusable world seed. The route you explore affects both terrain borders and where some NPC locations appear.

This guide covers inspected build 0.8.1.5 and contains location and story spoilers. A zone below is one cell of the five-by-five world map, labeled A through E and 1 through 5, not a tile within that area.

What is decided upfront?

Creating a world chooses its biome grid and the zones for Fort Solid, Ranger Bhato's hideout, Scaal's lair and the Library. Those assignments exist before all the zones are explored; their exact exterior positions are created when the relevant areas are generated.

Fort Solid

Fort Solid is chosen in column A or E, in any row from 1 to 5. Its biome is Fort Solid Shorehold.

Scaal's lair

Scaal's lair zone is always the reflection of Fort Solid across the map's center: swap A with E and subtract the row from 6. For example, Fort Solid at A2 puts the lair at E4; E1 puts it at A5. This is a placement rule, not just a tendency.

The zone is a Rift-Thorn Mire. Its surface entrance leads through three rift depths, with Scaal in the third; the world-map coordinate identifies the entrance zone, not an outdoor Scaal encounter.

The Library

The Library is assigned after Fort Solid and Scaal's zone. The generator rerolls a candidate until the cell is empty, at least 2 cells from the fort and at least 1.2 cells from Scaal's zone. These are straight-line distances on the world map, not walking distances.

This excludes the fort's adjacent cells, including diagonals, and Scaal's orthogonal neighbors, but permits Scaal's diagonal neighbors. The Library's zone becomes Sunken Ancient Ruins. Another two or three Sunken Ancient Ruins zones are added later, so that biome alone does not identify the Library.

Guaranteed fen biomes

Normal new worlds contain two or three Broken Fens and at least one Drowned Fen. A world missing either biome is not an ordinary result of this generator. These guarantees matter for Ihar's placement and Gurb-Gurb's fallback rule.

Finding NPCs

These character pages own the search instructions, placement exceptions and exterior pictures. Their location sections are separate from their trading and story requirements.

Character Finding their location
Ranger Bhato Directions from Captain Eir, the neighboring Common Bog, north/south placement, and recognizing the hut rather than the nearby cellar.
Gurb-Gurb Finding the hollow in a Drowned Fen, its smoke-discovery cue, and when the Savage Mirk fallback applies.
Ihar Finding the Broken Fen shipwreck, failed shoreline searches, retries and the absence of an alternative-biome fallback.
Scaal The opposite-zone rule above identifies the route into his lair.

Bhato's zone is chosen upfront. Gurb-Gurb's hollow and Ihar's wreck are not assigned a zone with the initial world map: their placement depends on which eligible outdoor areas you enter while they remain uncreated. Visiting every zone once does not guarantee that Ihar's placement has succeeded.

Exploration, revisits and saves

A save records the initial biome grid and fixed landmark zones, but cannot reveal terrain that has not yet been generated. Once an area has been generated and saved, later visits load it instead of rerolling its terrain.

That does not freeze every object in the area. The delayed placement checks for Gurb-Gurb and Ihar also run on revisits and when loading a save in an eligible outdoor area, not while inside a cave there. Their individual pages explain success conditions and what happens after failure.

World seeds

There is no reusable world seed in the inspected generation path. The internal seed value listed below is drawn but is not used by the active world or terrain generators; the coordinate-reseeding helpers have no callers. It is not a code that can reproduce the world.

Evidence and version

These are source-inspected rules, not measured spawn rates or a guarantee of behavior in other builds. The original numeric initialization observations remain below for context; their seed field is not a world-generation control. Current generation evidence and NPC location evidence are recorded separately from the historical research references.

NPCs | Merchants | Quests and journal | Game mechanics | Main Page

Stats

Detail Value Applies to / notes
Cell width in game-coordinate units 16 The area manager combines a 2560-unit area width with 16-unit cells.
Inclusive random seed ceiling 25000 The area manager chooses an integer from zero through this ceiling. This is not evidence of an exposed shareable world seed.
Initial width and height in cells 5 The menu creates three five-by-five grids; this does not mean every cell is a playable region.


How areas are generated

The sequence below explains why exploration order matters. Initial world-map placement is described above; each character owns its detailed location and access rules.

Source-inspected generation and landmark rules for build 0.8.1.5, not measured spawn probabilities.

  1. Entering an unsaved zone generates terrain using fresh random offsets. Its borders blend into neighboring zones generated earlier, so exploration order affects the terrain. A saved zone is loaded instead of regenerated.
  2. The delayed exterior check is scheduled before the saved-area loading branch. Gurb-Gurb and Ihar can therefore be placed during a first visit, a revisit or a save load while their respective creation flags are false; their location pages own the biome and success rules.
  3. Startup randomizes the random-number generator. The internal seed draw and unused coordinate-reseeding helpers do not seed the active world or terrain generators, and no world-seed value is saved for replay.

Related pages: Ranger Bhato | Scaal | Gurb-Gurb | Ihar