carve caves as GenCaves does, and check them block by block
A cave's course depends only on the seed and the chunk it starts in, so each source chunk's tunnels are traced once, in its own coordinates, as the ellipsoids they carve. A chunk is carved as the game carves it: its eleven by eleven sources in order, each ellipsoid skipped where the terrain's water or earlier lava is near, lava and basalt below y 12 by geologic activity, the height map lowered where a cave opens. The terrain now keeps whether each block is solid, which makes the water exact; story locations keep caves away as theirs do. vsmv verify compares every stored block below our surface: 96.1% of the 18.5 million carved blocks agree, and of the rest all but 0.28% are what later passes put in caves or made of air themselves, the vugs and the block layers above all. Carving lifts the columns matching the stored height by 71,379. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
17
Readme.org
17
Readme.org
@@ -22,6 +22,7 @@ against a real save, and matches it:
|
||||
| Terrain height | 98.2% of 11.7 million columns |
|
||||
| Rock at the surface | all but 14 of 11.7 million columns |
|
||||
| Rock below the surface | 99.91% of 1.38 billion blocks; see below |
|
||||
| Caves | 96.1% of 18.5 million carved blocks; see below |
|
||||
| Ore maps, 31 minerals | every pixel of 118 regions |
|
||||
| Prospecting pick readings | 38 of 42 in the game's category; see Limits |
|
||||
|
||||
@@ -30,7 +31,9 @@ the strata are laid: caves that open the surface, and the raise of dry
|
||||
seabeds. Neither changes which rock is where. Below the surface, all
|
||||
but 0.0011% of the other rock comes from later passes too: lava in deep
|
||||
caves turns the rock around it to basalt, and cave walls and
|
||||
underground structures are built of granite.
|
||||
underground structures are built of granite. Where the caves differ,
|
||||
it is nearly all what later passes put in them, or air the structures
|
||||
and the block layers make; 0.28% is not explained.
|
||||
=Plan.org= has the details.
|
||||
|
||||
** Building
|
||||
@@ -191,16 +194,20 @@ save:
|
||||
| =vsmv dump SAVE.vcdbs OUT= | PNGs of the maps the save stored |
|
||||
| =vsmv verify SAVE.vcdbs DIR OUT= | regenerates everything the save stored and compares it; diff images go to OUT |
|
||||
|
||||
=verify= takes about five minutes, most of it on the terrain heights of
|
||||
every stored chunk. It also compares the ore maps, the prospecting
|
||||
pick readings players took in the save, if there are any, and the rock
|
||||
of every stored block below the surface.
|
||||
=verify= takes about eight minutes, most of it on the terrain heights
|
||||
of every stored chunk and on the caves. It also compares the ore maps,
|
||||
the prospecting pick readings players took in the save, if there are
|
||||
any, and every stored block below the surface: its rock, and whether
|
||||
it is a cave.
|
||||
|
||||
** Limits
|
||||
- Only the /realistic/ world climate is supported, not /patchy/.
|
||||
- Rivers' settings are not stored in a save. Without a =rivers.json=,
|
||||
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
|
||||
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
|
||||
move one across a category edge. The game's column already holds the ore of the
|
||||
|
||||
Reference in New Issue
Block a user