Commit Graph
5452 Commits
Author SHA1 Message Date
Brian Neumann-Fopiano e15dcceca0 Rafts keep their deck
- IrisObjectPlacement.entersWater is true for underwater, onwater and an object's own forcePlace, not for forced structure pieces
- Object placements pass entersWater to the destination transaction, so onwater and self-forced objects keep solid blocks in channel and pond water
- The water surface support gate reads the same predicate
- The mutation log and source plans carry the flag as entersWater
- Tests cover a one-block onwater raft and a self-forced block kept on a river, a forced structure piece still vetoed, and replay
2026-11-02 06:21:42 -05:00
Brian Neumann-Fopiano 6041077c8a Structure place waits for plans
- Bukkit structure place catches ProvisionalAnswerException around the piece loop
- Pieces already written are recorded for /iris object undo, as the modded command does
- The player gets a retry message with the placement position
- The new message is translated in every bundled language
2026-11-02 06:08:09 -05:00
Brian Neumann-Fopiano 9f0615a975 Explicit Y below zero
- Automatic placement is a context flag set by the IrisObject x,z overloads instead of any negative Y
- An explicit world Y below zero places at that Y and skips the provisional guard, so saplings, pastes and structure pieces in -64 worlds land where asked
- Mantle surface, procedural, floating and single-piece structure placements call the automatic overloads
- A structure piece at world Y -1 places at its own height instead of a sampled one
- Tests cover explicit negative Y, the provisional guard on automatic placements only, and saplings growing below zero
- The sapling provisional test throws from the tree placement since explicit growth never reaches the guard
2026-11-02 06:06:09 -05:00
Brian Neumann-Fopiano 7574e39f39 Copies keep structure force
- IrisObjectPlacement.toPlacement copies forcedByStructure, so slope-turned structure pieces keep the river and pond exclusion
- Tests cover the copied marker and a slope-turned forced piece over a river
2026-11-02 05:49:25 -05:00
Brian Neumann-Fopiano 0c7b0b7b80 Objects stop filling channels
- Wet hydrology columns reject solid object blocks between the bed and the surface unless the object is underwater
- The column role, head and bed come from the water role, water head and height streams
- Object placements tell the destination transaction whether they are underwater
- The mutation log and source plans carry the underwater flag so destination replay applies the same rule
- Tests cover canopies over channels and ponds, underwater exemptions, replay, piers and sea inlet slots
2026-11-02 05:46:52 -05:00
Brian Neumann-Fopiano 65d06ae83c Water objects need flat water
- Single-piece structures stay forced but keep the river and pond exclusion
- Water-flagged objects skip footprints on dams, cascades, waterfalls or water at another head
- The provisional guard runs before any bore and throws an engine failure
- Saplings stay when a tree override is rejected or the terrain is still being planned
- Object paste reports a retry when the terrain is still being planned
- Tests cover structures over rivers, flat water, lava, bore ordering, explicit Y and saplings
2026-11-02 05:19:02 -05:00
Brian Neumann-Fopiano 2d52cc409e Water objects use hydrology
- Hydrology support gate applies only to land placements; underwater, onwater and forcePlace skip it
- Underwater and onwater anchors use the hydrology bed and head through the existing sea checks
- Automatic placements throw when any height or water answer before the block pass was provisional
- PlacementModuleSurfaceSupportTest covers ponds, rivers, forcePlace, dry columns and provisional water
- Drop the test that kept forcePlace out of river water
2026-11-02 04:43:11 -05:00
Brian Neumann-Fopiano 217da03ef6 Descriptions match behaviour
- Policy fluid describes the per-stretch rule keyed on the upstream end, cave pools and the seam limit
- Policy class description covers region inheritance, whole-object wetness and cave-pool fluid order
- Wetness descriptions state that the bounded wetness also sets pond and lake drawdown
- Cave pool radius describes the square box around the site column
- Lake-borrowed pond fields name lakes: freeboard, climateDrawdown, materials, shore roundness, natural minDepth
- Lakes and ponds class descriptions list the pond settings lakes share
- Structure FLATTEN and SOURCE cuts beneath water or lava keep that fluid
- Studio Rivers view lists the water it draws instead of grottos
- Recapture the schema digest
2026-11-02 04:14:23 -05:00
Brian Neumann-Fopiano 408ac5e6b0 Fingerprint skips scheduling knobs
- prefetchRings and persist leave the hydrology settings fingerprint, since they only choose which windows are prepared ahead and whether plans are saved
- Compile checks drainage.fillEpsilon as the compiled float, rejecting values that round to 0 or overflow to infinity
- DEFAULT_FINGERPRINT recaptured
2026-11-02 04:00:20 -05:00
Brian Neumann-Fopiano ca431452fe Shore lists need a width
- Warn in pack validate when a hydrologyPolicy.shoreBiomes list has no shoreBiomeWidth above 0 applying to it, naming the dimension, region or biome that lists it
- Resolve the shore band through IrisHydrologyPolicy.shoreBand for both runtime placement and reachability
- Walk region biome lineages in ShoreBiomeLineages so reachable biomes include only shore biomes a width places
- Make HydrologyShoreTargets.placesAny use the placed shore biomes, so the locator ignores lists without a width
- Take the dimension in IrisRegion.getAllBiomeIds and getAllBiomes and gate their shore biomes on hydrology
- Drop region biome additions the package compilers already get from the dimension's reachable biomes
- Seed unset region colours from the natural biome ids
- State in the shoreBiomes description that a width is required, and recapture the schema digest
2026-11-02 03:43:29 -05:00
Brian Neumann-Fopiano 5ef47f016e Enforce hydrology ranges at compile
- Compile rejects prefetchRings outside 0..4, fillEpsilon not above 0 and seeded cup density outside 0..64
- Compile rejects negative tier widthFactor and depthRatio, waterfallMinimumDrop below 2 and shoreDepth below 1
- Compile rejects negative maxFill, lakes.maxArea above 2048 squared and seaInlets.spacing below 1
- Compile rejects enabled cave pools whose freeboard max reaches maxDepth or whose maxArea exceeds 961
- Lake and cave pool area schema maxima match the compiled bounds; schema digest recaptured
- Engine start checks dimension, region and biome policy fluids whether or not cave pools are enabled
- Pack validation warns on written tiers without halfWidth or bankBand and on useMantle false or RIVER_HYDROLOGY disabled
2026-11-02 03:05:32 -05:00
Brian Neumann-Fopiano 720b9ac967 Drawdown follows zone wetness
- Carry each column's bounded zone wetness and whether climate zones apply to it as wetness and climateZoned sample channels, copied by HeightLattice
- Draw pond and lake surfaces down by climateDrawdown times one minus the bounded zone wetness at the floor inside climate zones, and by one minus rainfall where the zones are off or climateZones is false
- Test the drawdown in wet, dry and transition zones and outside them, and that two windows give a pond the same level
- Test that a policy wetness min keeps a dry-zone pond from drawing down, from the terrain source through the planner
- Describe the rainfall policy as lowering ponds only where the climate zones do not apply
- Recapture the schema digest
2026-11-02 02:38:59 -05:00
Brian Neumann-Fopiano fa43b276f4 Bound policy multipliers
- Reject a policy rainfall or pondDensity outside 0..16 when a column resolves it, naming the biome and region
- Report a policy rainfall or pondDensity outside 0..16 at every scope in pack validation
- Share the 0..16 bound between the schema, the terrain source and the validator through IrisHydrologyPolicy.MAX_MULTIPLIER
- Size the window cup grid from a double product of seeded density and peak pond density
2026-11-02 02:15:34 -05:00
Brian Neumann-Fopiano 4000dfe659 Pond density scales cups
- Size each window's seeded cup grid from ponds.seeded.density times the window's peak pondDensity
- Give each site the chance density times its column's pondDensity over the grid area, so cup counts follow pondDensity above 1
- Key site jitter and rolls on the grid split, and cup radius and depth on the site position, so grids of different sizes stay independent
- Test that pondDensity 3 seeds more ponds than 1.6 and that cups agree across overlapping windows where pondDensity varies
- Slope pond test plans a margin around its window and checks the ponds the window owns
2026-11-02 01:59:47 -05:00
Brian Neumann-Fopiano 0245a10c95 Per-area wetness clamp
- Add hydrologyPolicy wetness with min and max bounds, inherited like the other policy fields
- Clamp the climate zone wetness to the area's bounds before it scales rainfall and pond density
- Reject wetness bounds outside 0..1 or with min above max at sampling and in pack validation
- Report non-neutral wetness bounds as a RIVER_CLIMATE export limit on the owning policy
- Recapture the schema digest
2026-11-02 01:35:10 -05:00
Brian Neumann-Fopiano f7ddd68d26 Child lineage review fixes
- Terrain source test samples a self-cycle and a two-cycle child graph and checks every lineage link and inherited value
- Shore biome lookups skip the lineage unless some policy sets a positive shoreBiomeWidth
- IrisBiome.CHILD_HOPS is the one child hop limit for implosion and datapack river areas
- A missing shore biome error names the biome, region or dimension that lists it
2026-11-02 01:15:37 -05:00
Brian Neumann-Fopiano ff0a95a6fd Inherit parent biome policy
- IrisHydrologyPolicy.inherited walks the column's biome lineage (child, then the parents it grew inside), then region, then dimension
- IrisComplex.baseBiomeLineage recovers the per-column child chain from the implosion and fails closed if it disagrees with the base biome
- BiomeLineages limits chain recovery to biomes a policy-bearing biome can implode into and interns lineages for identity caches
- Terrain source, shore biomes and water decorators resolve by lineage; cave pools keep the cave biome alone
- Datapack river areas enumerate each region's child chains and RiverLimits attributes inherited values to the parent
- Policy description names the parent step; schema digest recaptured
2026-11-02 00:57:34 -05:00
Brian Neumann-Fopiano 95fa3ce105 Resolve medieval engine late
- MedievalPregenMethod re-resolves its engine on each call until one exists, then caches it
- Hydrology prefetch opens its epoch at the first prepare that sees the engine, with the stored region bounds
- MedievalPregenMethodTest covers a null first prepare followed by concurrent prepares opening the epoch once
2026-11-02 00:18:58 -05:00
Brian Neumann-Fopiano 6cbe4b2c09 Remove studio render paths
- Drop IrisRenderer.renderStudio, renderStudioBase and refineStudioBiome with their adaptive, height and river atlases
- Drop RenderType.RIVER and the test-only WaterMap.draw
- Port the river renderer tests to the live WaterTile path
- Use a settled WaterTile as the map overlay test oracle
2026-11-02 00:00:10 -05:00
Brian Neumann-Fopiano 490016b56a Remove transition hydrology weight
- Drop test-only TransitionGenerationPlan.hydrologyWeightAt
- Drop TerrainSample.hydrologyWeight and its validation
2026-11-02 00:00:10 -05:00
Brian Neumann-Fopiano df7aa2ef16 Remove dead cave cell code
- Drop HydrologyCaveAction.FALLING_FLUID; saved code 2 stays reserved and loads as WET_SOURCE
- Drop the flooded biome key from cave cells, Engine.floodedCaveBiome and the sea inlet rasterizer argument
- Write the retired biome slot empty and skip it on read so saved plates keep loading
- Drop the constant protectsPlacement check from every caller
- Drop the test-only of() factories and the default fluid key; tests use real keys
- Drop the unused falling-fluid carve state and isFalling
2026-11-02 00:00:10 -05:00
Brian Neumann-Fopiano b195582259 Unplanned single reads unavailable
- Return the unavailable result from single-column reads that read a provisional answer
- Share the provisional revision check between single reads and sampleColumns
- Test each single-read family before and after its column is planned
- Test that a final column after a provisional one is final
- Test that a sink that reads provisionally does not mark later columns
2026-11-01 23:30:23 -05:00
Brian Neumann-Fopiano 2b6612501a Mark provisional column samples
- Add a provisional component to IrisColumnSample
- Set it in sampleColumns when a column read a provisional answer (ProvisionalSampling revision changed)
- Test server-thread unplanned columns are provisional and planned columns are final
2026-11-01 23:19:38 -05:00
Brian Neumann-Fopiano 549eaa7e20 Report seams and defer areas
- RIVER_FLUID reports the seam of a river fluid whose blocks match the exported dimension fluid
- River export areas are built only after the hydrology enabled and density checks pass
- Tests cover matching-fluid seams, an unknown policy fluid failing the export, deferred area building, and the stage's exported-biome filter with child traversal
2026-11-01 23:09:43 -05:00
Brian Neumann-Fopiano 8e048944ec Report datapack hydrology limits
- Datapack export warns with RIVER_FLUID when a tier or hydrology policy fluid differs from the dimension fluid, naming its seam
- Hydrology policy rainfall and streams BLOCK report RIVER_POLICY on the dimension, region or biome that sets them
- Wet and dry climate zones report RIVER_CLIMATE unless every exported area opts out
- Shore biomes with a width report RIVER_SHORE_BIOME, and tier or policy water decorators report RIVER_DECORATOR
- Enabled sea inlets and cave pools report SEA_INLET and CAVE_POOL
- River stage resolves policies per region and exported surface biome, reporting each limit once per scope in a fixed order
- Dimension stage shares its fluid block resolution with the river limits
2026-11-01 22:54:48 -05:00
Brian Neumann-Fopiano 81b47a8f9b Refresh recorded cave pools
- Generation history keeps a river revision that moves after recorded river features or cave pools become readable
- Studio water tiles reload cave pools when that revision moves instead of the hydrology preview revision
- Water tiles at 4 blocks per pixel or closer keep their water state and base colors after completion, counted in the cache weight
- The Vision controller re-renders those completed tiles when the river revision moves, after the first retry delay, redrawing only their water
- Tests cover the revision counter, completed and coarse tiles through the controller and pools recorded after a raster lands
2026-11-01 22:27:50 -05:00
Brian Neumann-Fopiano 0c59e698cd Rank studio water features
- Plan-mode pond and lake masks keep the strongest feature per pixel instead of overwriting channels and falls
- Water map ranks come from an explicit switch per feature type, with ponds above lakes
- Studio water tiles redraw recorded cave pools when the hydrology preview revision changes
- Tests cover channels over ponds, ponds over lakes and cave pool refresh on a completed tile
2026-11-01 22:11:42 -05:00
Brian Neumann-Fopiano c0169d6dcd Bound planned search by recorded
- nearestRiver limits the planned search to the recorded water's distance, rounded up, when generated chunks hold a match
- Explored areas end with a confirmed Found instead of waiting out the 30 s timeout; nearer planned water inside the bound still wins
- Tests cover the bounded radius in queries and a bounded search that finishes under a short timeout when nothing near is eligible
2026-11-01 21:57:14 -05:00
Brian Neumann-Fopiano 9afd70e69f Report stopped river searches
- A timed-out hydrology search throws HydrologySearchTimeoutException carrying the nearest feature found so far
- nearestRiver answers RiverSearch.Stopped with the nearer of that feature and recorded water, and a message saying a nearer one may exist
- Bukkit and modded find river print the stopped message and never teleport on a stopped search
- Both commands catch every throwable while delivering a result and log it before telling the player
- Modded logs a result that cannot reach the server thread instead of dropping it
- The four-argument nearestFeature is removed; tests call the six-argument form
2026-11-01 21:48:10 -05:00
Brian Neumann-Fopiano 474b1e873a Bound find river search
- HydrologyFeatureSearch stops after its timeout or when the caller cancels, waiting on plans in 50 ms slices
- Types the dimension cannot form answer at once without planning, naming the setting that turns them off
- channelType reads the tier name (stream, river, major or major_river) and falls back to rank, so one-tier packs match stream
- HydrologyRuntime adds unavailable(type) and passes FEATURE_SEARCH_TIMEOUT (30 s) and a running check to the search
- nearestRiver returns a RiverSearch outcome, reports disabled and timed-out searches, and keeps recorded water on timeout
- startRiverSearch keeps one search per player; a new search cancels the previous one without a message
- Bukkit and modded find river run through the shared per-player search
- Tier name description and schema digest follow the new tier naming
- HydrologyFeatureSearchTest plus new query, Bukkit and modded cases cover the bounds
2026-11-01 21:27:50 -05:00
Brian Neumann-Fopiano 75d28d16b2 Gate pool and inlet leaks
- Count sea inlet added leaks as leak cells present only with inlets on
- Fail the cave pool gate on pool cells that are not still sources of their fluid
- Compare pool sources against the fluid each cell resolves to
2026-11-01 20:42:33 -05:00
Brian Neumann-Fopiano 1ae68646b4 Seal inlets and headroom
- Seal covered inlet passages with rock where they come within two blocks of a historical chunk
- Add inlet headroom bands from the water up to the passage ceiling plus roofClearance to CaveCeilingMask
- Join the headroom bands into the carver and orphan sweep protection
- Keep subterrain cells out of the headroom bands in carving, the carve resolver and preserveSubterrain
- Apply seal guards inside upper-dimension and dimension-stack protected ranges
- Add old-chunk seal, headroom mask, carving wiring, subterrain and protected-range tests
2026-11-01 20:42:33 -05:00
Brian Neumann-Fopiano 0ca3a61046 Resolve cut-off inlet competitors
- Let a cut-off inlet still make a later conflicting inlet yield, and never list it
- Throw when a window's own inlet reaches the edge of its planning span
- Check the planner's chamber and step lookups against the sea-inlet extent guard
- Remove the reach ownership filter, which never removed a span reach
- Plan inlet tests on window spans and add bay, guard, edge and fail-closed tests
2026-11-01 19:56:27 -05:00
Brian Neumann-Fopiano 21ed677bf4 Agree sea inlets across windows
- Pass the planning window to SeaInletPlanner from WindowPlanner
- Mark a site clipped when its candidate area or any trace, cover, mouth or chamber lookup reaches the span edge
- Keep clipped inlets out of separation and the planned list unless the planning window owns them
- Avoid only reaches owned by the planning window or its 8 neighbours
- Add InletTerrain span views and an open-coast 3x3 window agreement test
2026-11-01 19:07:41 -05:00
Brian Neumann-Fopiano 9c95e7901c Pin persisted enum codes
- Give HydrologyFeatureType, ReachStyle and PondKind explicit codes equal to their old ordinals
- Add PersistedCodes lookup tables that reject duplicate, out-of-range and unknown codes
- Write and read codes in HydrologyPlanCodec; unknown codes decode as malformed plans
- Write and read codes in GenerationSemanticIndex shard records and region summaries
- Order summary river types and the river feature comparator by code
- Pin the code tables and a captured plan byte fixture in tests
2026-11-01 18:31:01 -05:00
Brian Neumann-Fopiano f6fbf9147f Keep reserved subterrain over transforms
- Let reserved subterrain cells without hydrology answer before a transformed column in every post-transform reader
- Move the transformed override into CarveOwnership.carved so the five readers share one order
- Read the natural opening and the cavern only when hydrology and subterrain leave the cell open
- Cover reserved passages and the reserved-solid transform case in the ownership tests
2026-11-01 18:15:28 -05:00
Brian Neumann-Fopiano b11ff94737 Restore transformed carve override
- Rank CarveOwnership as hydrology over subterrain over natural opening over cavern
- Share the subterrain claim predicate and the carved answer through CarveOwnership
- Let a transformed column override MantleWriter point and column readers and EngineMantle.isCarved again
- Resolve the untransformed MantleWriter column readers per block through CarveOwnership
- Keep IrisCarveModifier.carveOwner package-private and test it in its own package
2026-11-01 18:04:26 -05:00
Brian Neumann-Fopiano ccd5551854 Share carve ownership rule
- Add CarveOwnership, ranking hydrology over subterrain over transformed over natural
- Resolve IrisCarveModifier cell ownership through IrisCarveModifier.carveOwner and CarveOwnership
- Let hydrology win over subterrain rooms and transformed columns in MantleWriter isCarved and isPrerequisiteCarved
- Check subterrain rooms in EngineMantle.isCarved and let hydrology win over transformed columns
- Add CarveOwnershipTest running every reader over every flag combination
2026-11-01 17:48:15 -05:00
Brian Neumann-Fopiano 6f38d98e9e Check reachable biome fluids
- Engine start validates every reachable biome policy fluid while cave pools are enabled
- caveFluidPolicies stays computed from cave biomes, regions and the dimension only
2026-11-01 17:30:19 -05:00
Brian Neumann-Fopiano 1e41c9eca0 Inherit cave pool fluids
- Cave pools resolve fluid from the cave biome, then region, then dimension
- Engine.getCaveBiomeBelowSurface returns no biome where caves fall back to the surface
- caveFluidPolicies turns on only for cave biome, region or dimension fluids
- IrisDimension.getReachableCaveBiomes lists region cave biomes and carving bands
- Recapture the schema digest for the cavePools.fluid description
2026-11-01 17:19:24 -05:00
Brian Neumann-Fopiano 701b3191eb Supply structure sea surface
- GenerationWritePolicy.seaSurface returns minHeight + fluidHeight and the first fluid of the dimension fluidPalette
- Dimensions with no sea fluid or a sea at the world floor return StructureSeaSurface.NONE
- Bukkit and modded structure stage policies supply the sea surface to native structure fitting
- Native fitter tests pass SeaSurface.NONE to keep their expectations
- FLATTEN descriptions state the sea-surface clamp and sea-fluid fill
- Schema digest recaptured for the description change
2026-11-01 16:50:57 -05:00
Brian Neumann-Fopiano 8bc1ed760e Key cave pool walls
- Cave pool walls carry the pool's fluid key instead of the unknown default profile
- A wall shared by two pools keeps the lowest fluid key, whatever the chunk order
- The carve waterlogging pass resolves a fluid only for wet hydrology cells
- Tests cover unknown-fluid logging for pool walls and shared-wall chunk-order independence
2026-11-01 16:25:32 -05:00
Brian Neumann-Fopiano bb6f3ca40b Gate hydrology probes
- Count roof breaches as sea inlet check failures
- Count raised berms over the fill cap as hydrology probe failures
- Exit the sea inlet gate with 1 on failed checks, order mismatches, inlets off sea level or leaks the inlets add
- Exit sea inlet inventory with 1 when a window fails to plan
- Exit the cave pool probe with 1 on containment failures or order mismatches
- Print a gate status line for both probes
- Cover the failure counting in the probe unit tests
2026-11-01 16:02:46 -05:00
Brian Neumann-Fopiano 30c7492679 Keep Engine API in release shrink 2026-11-01 14:58:37 -05:00
Brian Neumann-Fopiano 8734c38361 BTA 2026-10-31 22:42:16 -04:00
Brian Neumann-Fopiano 2d4ede41dd Merged pack authoring features
- Biome effects choose their sound category on every platform
- Hanging vines keep supported authored side faces on every platform
- Inland water above sea level keeps its land biome
- River reaches take the policy fluid of their upstream end
- Fluid profiles can name a seam that lines their edge against other fluids
2026-10-31 22:27:31 -04:00
Brian Neumann-Fopiano bd44272802 Schema digest
- Studio schema digest covers seam and sound category fields
2026-10-31 22:07:15 -04:00
Brian Neumann-Fopiano 31da551c04 Merged effect sound and vine fixes 2026-10-31 22:03:58 -04:00
Brian Neumann-Fopiano 067fffe066 Ceiling vine curtains
- A vine under a sturdy ceiling keeps its authored side faces
- Vines below it hold those faces through the vine above
- The vine-above check reads the facing before the material key
2026-10-31 22:03:49 -04:00
Brian Neumann-Fopiano c2eb8b5f42 Fixed effect sounds and vines
- Store the effect sound category as a vanilla category name
- Resolve the sound category to a Bukkit category when an effect plays
- Send modded effect sounds on the authored category
- Skip the sound and warn once for an unknown sound category
- Keep authored vine side faces only where a sturdy block or the vine above holds them
- Attach kept vine faces upward under a sturdy block
- Reattach multi-face blocks with no holdable side face to sturdy neighbours
- Cover sound category and vine face rules on Bukkit and modded
- Repin the studio schema digest
2026-10-31 21:58:58 -04:00