place hot springs as GenHotSprings does, and find the nearest

Carving records hot spring candidates where the game does: deep, wide
tunnel steps that pass the water check where geologic activity is
over 128. A candidate becomes a hot spring unless the surface over
twice its radius, after caves, is rough, below sea level + 1 or high
in the mountains, or a story location keeps hot springs away; carved
chunks are kept so their neighbours' heights come cheap. The Caves
overlay paints them as discs, and Find nearest looks for one.

Against the save, 173 of the 180 stored candidates match in centre and
radius; five differ only in the radius's last float bits, from a
rounding not yet found. Of the 102 hot springs placed, 84 hold the
save's sludgy gravel, and 94.8% of that gravel lies in one. Which edge
blocks are gravel or mat the game rolls each time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 18:24:10 +03:00
parent 82774445af
commit 40defbd367
9 changed files with 421 additions and 46 deletions

View File

@@ -90,6 +90,7 @@ Options:
| =--min-reading NAME= | Find nearest's least reading for minerals, e.g. =high= or =very-poor=, or an ore map band, e.g. =86-100%=; default =decent= |
| =--find-mineral= | find the nearest such reading on start |
| =--find-cave= | find the nearest cave entrance on start |
| =--find-hot-spring= | find the nearest hot spring on start |
| =--probe X Z= | probe the column at block X, Z on start |
| =--screenshot FILE.png= | wait until everything is drawn, save the window, quit |
| =--mouse X Y= | place the cursor, for screenshots |
@@ -189,10 +190,12 @@ when nothing is left to compute, the viewer sleeps.
- *Caves*: the caves the game carves.
- The Caves overlay colours each column by how far below the
surface its topmost cave starts, and marks entrances, where a cave
opens at the surface. The legend gives each band's share of the
view.
- /Find nearest entrance/ looks for the nearest cave entrance around
the centre of the view.
opens at the surface. Hot springs show over it as discs. The legend
gives each band's share of the view.
- /Nearest entrance/ and /Nearest hot spring/ look for the nearest
cave entrance or hot spring around the centre of the view.
- A hot spring's place and size come from the seed; which blocks at
its edge are gravel or bacterial mat the game rolls each time.
- Caves are carved a chunk at a time, every block of it, so the
overlay is slow to fill when zoomed out.
@@ -220,7 +223,7 @@ it is a cave.
the mod's defaults are assumed.
- Other mods that change worldgen are not modelled.
- Caves leave out what later passes put in them: stalactites, gravel,
hot springs, and the structures some of them hold. Of the blocks the
and the structures some of them hold. Of the blocks the
save has where caves are carved, 3.6% are such things.
- Prospecting readings come out a little higher than the game's: in
the readings checked, the game's was up to 12.5% lower, which can