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

@@ -737,8 +737,24 @@ and what the deposits phase can be checked against.
- *Terrain solidity.* =terra/chunk-solidity= keeps every block's solid
or open from the height scan, so the water check is exact, overhang
pockets below sea level included.
- *Not ported.* Hot springs, which a later pass puts where caves
flagged them.
- *Hot springs* (=GenHotSprings=, terrain features pass).
- Candidates: a tunnel step at -5 < y < 16 with radii over 4 and 2
flags its ellipsoid. Carving it, if it passes the water check, the
region's geologic activity is over 128, and its centre is in the
chunk, records it in the chunk's "hotspringlocations": keyed by
its whole centre, a later one at the same key taking its place.
- Placement: over a disc of twice the radius, the surface after caves
of the 3 x 3 chunks around (carved on demand, and kept, 512 chunks
a carver). Rejected when the surface varies by 4 or more, dips
below sea level + 1, or is above 88% of the world height, and
where a story location's "hotsprings" radius covers the chunk.
The game also rejects water standing at the surface; above sea
level that can only be a pond, which comes later, or a neighbour's.
- The disc sits at the average surface, rounded half to even:
boiling water in the middle (=xzdist= under 0.1), sludgy gravel a
base 3 deep and walls beside liquid, bacterial mats by distance.
The game jitters each column's distance with its unseeded random
generator, so the edges of those rings vary from run to run.
Validation (=vsmv verify=, every stored chunk, blocks below our
terrain height):
@@ -755,6 +771,13 @@ terrain height):
25,388 otherwise. The 52,137 unexplained are 0.28% of what we carve;
the check fails over 0.5%.
- The terrain's own pockets: 334,438 air blocks, 99.4% matching.
- Hot spring candidates against the 44 map chunks that store some: 173
of 180 the same, centre and radius. Five differ in the radius's last
bit or two, four of those from one tunnel, so some float step
somewhere rounds differently; not found yet. Two differ more.
- Hot springs: 102 placed, 84 with the save's sludgy gravel in them;
18,973 of the save's 20,024 sludgy gravel blocks lie in one (from 2
below the disc to 4 above, base and walls).
- Terrain height after carving: 11,552,740 of 11,687,936 columns match
the stored height, against 11,481,361 before. The caves make up most
of the "stored lower on land" columns of the height check.
@@ -766,7 +789,9 @@ Viewer:
whole, so a view takes some 30 s to fill on all cores.
- *Caves panel.* The legend with each band's share of the view, and
Find nearest entrance (search mode 5, every column of each chunk it
carves).
carves) or hot spring (mode 6).
- *Hot springs* are painted over the caves as discs, from the chunks of
the tile and one ring around it, whose discs can reach in.
- *Cursor label and Probe.* The column's cave runs, air or lava, top
down, and whether a cave opens there.