Repository navigation
Conversation
…een settlement cells, town gates; a seam test over 12 worlds A border between two chunks is a record made before both from the levels above (Lv.edge, Lv.side: one object for both neighbours, audited). Edge (39_edge.js) is that record for today's world: the lines of the network that cross (Roads.all, the list a cell also draws from) with their heights, and the natural water along the border with its level. tools/seam.test.mjs walks 600 borders of 12 worlds and holds the built columns to the records; what it finds is counted down in tools/seam.known.json. Found by it and fixed: Rail.make laid the same line for ever in a region whose only town was left out (seed 271828); tools/rail.mjs test catches it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
…-pafmdj # Conflicts: # build/notes.mjs # src/game/99_main.js
…s branch's; notes move to 488 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
…no wall of land across the platform by a station hall - Found by tools/seam.test.mjs on the merged main: in worlds of gw 77 Span.apply took the height along a line from the next segment (Span.along) and Span.lay took the width of the bed from it too, while the distance stayed the one to the nearest segment. Beside the ends of every station hall the hill stayed (39 halls of 39 in four worlds, up to 98 cells off the line). - Span.lay takes the width of the segment the distance was measured to (SPW_GW = 78); the height still runs along the line. - tools/bed.test.mjs: every column the line's own rule calls bed stands at the height of the line (red at GW=77, green at 78). - Golden world for gw 78 (seed 5, town + lake); notes and the shot list of build 488 (the same station by gw 77 and by gw 78); the rule in docs/ARCHITECTURE.md names the finding. - The seam ratchet is back at its floor: new 15, port 16, gate 6. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
…eue's to set) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdsWP38p6ohAsRYayXG
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Anton · project thread
Anton saw a lake cut along a straight line by a wall of earth and asked for requirements on the borders of regions (water, roads and the rest), so that neighbours cannot disagree. This makes the border a first-class record of the hierarchical generator and adds a seam test over many worlds.
What it does
A border is a record both sides read (
Lv.edge,src/game/30_lv.js). A border between two chunks of a level is made before both chunks, from the levels above only (an edge that reads its own level is refused).Lv.side(T, id, i, j, d)gives the two neighbours the same object; the audit records a chunk that reads any border but its own four.The record of today's world (
Edge,src/game/39_edge.js). For every border between two settlement cells (320 m):Span.apply);Terr.natC);Edge.gates(T, s): where each road hands over to the streets of a settlement.The lines come from
Roads.all, the one list a cell also draws from (Roads.cellnow calls it; golden bytes unchanged).The seam test (
tools/seam.test.mjs, ~75 s). The frame first (one record per border, the audit), then 600 borders of 12 worlds (cliffs, seas, rivers, an island, canyons, volcanoes) against 1.9 million built columns: the same records in any order and copy and from both cells' lists; a surface at every port's height on both sides; no line across a border beside the ports; water at one level on both sides, none where the natural land is dry; a way without a step from the end of every road into its settlement. What it finds is counted per kind againsttools/seam.known.json, ceilings that only fall.What the test found
Span.along), which may be the next segment, and the width of the bed came from that segment too, while the distance stayed the one to the nearest. Beside the ends of every station hall the hill stayed: a wall of up to 20 m across the platform, or a pit (39 halls of 39 in four worlds).Span.laynow takes the width of the segment the distance was measured to (SPW_GW = 78); the height still runs along the line. Test written first:tools/bed.test.mjs(red withGW=77, green at 78). Golden world added for gw 78; the old hashes are unchanged (1088 checks).The straight wall across the lake itself is a threshold of the water level in cliff worlds (
Terr.nat); it belongs to #512 and is not duplicated here.Rule
docs/ARCHITECTURE.md, World generator: a meeting of two things made apart is a record both read; nothing crosses beside it.docs/WORLDGEN.mdrule 9 (edges before faces) and the seams bullet.Sources
Checked
seam(new 15, port 16, gate 6: at the ceilings),bed,lv,gen golden roads(1088 + 1777 checks),genv,undef,conventions,quotes.cone.testis red on main already (a ratchet of another change) and is not touched here.Screenshots (the same station by gw 77 and by gw 78) are taken by the release workflow from
tools/shots/488.mjs.Generated by Claude Code