Repository navigation
Conversation
Shots 457: the ship pictures wait for the far port with the game running Merge queue
Shots 457: the ship pictures wait for the far port with the game running Merge queue
Shots 457: the ship pictures wait for the far port with the game running Merge queue
…e is checked as a whole with its hull, a hull needs the air over its water The generator of the sea ports and voyages read the landscape alone. The road out of a town leaves the shore for its bridge at the very point the town's pier goes out, the ring road of a city crosses its bay over the pier, railways cross bays on viaducts: in 72 worlds 4 ports of 91 had a berth, a turning basin or a lane under a deck, and 7 voyages of 71 swung an end of the hull through the end of their own pier. The hull physics asked for water round the water line only, so the ship lay across the roadway. - Port.open: one question for every level that puts a ship somewhere: deep water with no deck over it (Terr.dk) and no pier in it. - Port.find (worlds since PORT_OPEN_GW, gw 90): the port looks along its shore for a place where nothing is built over its pier and its berths (as wide and as long as the biggest ship of its kind). - Port.swing asks the whole rim of the turning circle a step apart; Port.clear asks open water a step apart; Port.way: the berth, the water beside it and the run out to the basin for the very ship; a line is paired only where its ship has a berth at both ends. - Ships.sound: the passage plan checked as a whole with the hull of its own ship before anybody sails it (the route check of an ECDIS, IMO MSC.232(82)); a voyage that fails is not sailed, in the worlds made before too. - Hull.free / Hull.air: a hull lies only where the air over the water is clear to its own height (the decks of the landscape, and the loaded blocks over the water): every hull, whoever made its plan. - A home voyage is no faster than its turn round the ground allows (SHIP_BEND). voyage.test: six seeds and the world of the find at both versions; red before on three worlds. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
Shots 457: the ship pictures wait for the far port with the game running Merge queue
|
🚫 Out of the merge queue. It conflicts with main in:
Merge main into the branch and settle these. The build number, the notes' number, When it is fixed, queue it again: Merge queue (tools/queue.mjs) · its run |
⏱ Performance: this PR against mainScenarios of src/game/98_perf.js, the two builds by turns on one runner (tools/perf.mjs, CPU side, draws counted not drawn). ✅ No regression against main
Over budget (ms/frame, budget): drive Land.lightTick 20.58 > 1 · drive Land.gen 3.64 > 0 · tunnel Land.lightTick 4.23 > 1 · drive Land.meshChunk 2.83 > 1 · drive Town.update 2.72 > 1 · idle Town.update 2.58 > 1 · tunnel Town.update 1.96 > 1 · night Town.update 1.56 > 1 Generated by Claude Code |
Screenshots of build v457🚢 The island ferry under way: its helm keeps the timetable as a plan and sails the hull to it ⚓ Off its port the ship of the line turns round in the turning basin, clear of the shore, before it sails for the other port ⚓ At the other end it comes onto the berth stern first, bow out, under its helm through the same hull physics 🛸 A flying saucer between two stops: it pulls with its thrust and the disc tilts towards it All of them are assets of the v457 release. |
… a worker works out Main moved the ports and voyages into facts (Ships.spec in a worker, Ships.build arithmetic on the page), chose the ship of a voyage by the room at its berths (Port.room, Ships.fit) and paced a timetable by its tightest bend (Ships.pace). Joined with this branch: - Port.room asks Port.open (deep, nothing built over it, no pier in it) a step apart, the rim of the turning circle too; Port.way of this branch asked the same of the same water and is gone; a berth without a turning basin has no room. - Ships.fit takes the maker of the facts and accepts a ship only when the voyage planned from them is sound (Ships.sound on Ships.plan, the arithmetic Ships.build keeps): the check reads the ground, so it runs with the facts, and a voyage one ship fails goes to the next of its list. - SHIP_BEND gives way to Ships.pace; the pairing of a line no longer asks for the berths of one ship (Ships.fit chooses it). - PORT_OPEN_GW is 92 (90 is SIZE_GW, 91 QUAY_GW); notes and shots take 524 (517 is another build's). - voyage.test asks Ships.spec and Ships.build in every world of this branch's list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
… 46 to 54 home ships, 13 to 20 lines) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
… versions, a city port with its ships) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
…aits for the timetables of two ships of one port Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
…s' gate moves to world version 93 Main took world version 92 for the trunk lines, so PORT_OPEN_GW is 93 and the notes say so; the notes and the pictures of this change stand above main's (527, the queue gives the real number). On the merged tree: voyage (49 voyages of 33 ports), port, hull, ships, gen golden (1492 checks), seam, genv, undef, members, dupkeys, quotes, srclist, vmfast, conventions, swallow, layers green. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
…d 526 36 worlds, main (world version 92) against this change (world version 93): ports 54 to 68, lines 13 to 20, ships of the ports' own 46 to 55; in the worlds made before 2 voyages of 59 are no longer sailed (seeds 9 and 24: a railway deck over the lane, a shoal). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A




Requested by Anton · project thread
A ship lay across the roadway of a bridge. The first three commits of this PR (shots 457, the
seawashtest, the stale sign of loaded land) are already in main (#575); what is left is this fix, merged with main of build 526 (main took world version 92 for the trunk lines, so the ports' gate is world version 93).No ship under a bridge
The find. In a world of version 89 (seed 2718841, the port of Santa Branca) a 41 m trawler lay at its berth across the roadway of a road bridge 1.4 m over the sea.
The cause. The generator of the sea ports and voyages read the landscape alone (
Terr.atfor the depth, the field of the coasts), never what is built over the water (Terr.dk, the decks of35_span.js). The road out of a town leaves the shore for its bridge at the very point the town's pier goes out to sea; the ring road of a city crosses its bay over the pier; railways cross bays on viaducts. And the hull physics asked the blocks round the water line only (one cell under, one over), so nothing stopped the ship either. Measured before the change, in 72 worlds: 4 ports of 91 had a berth, a turning basin or a lane under a deck (road and railway alike), and 7 voyages of 71 swung an end of the hull through the end of the pier they had just left.The change, generator first, physics as the second layer:
Port.open(T, x, z): one question for every level that puts a ship somewhere: water deep enough, no deck over it (with the margin its piers, towers and cables stand in), no pier in it.Port.find, worlds sincePORT_OPEN_GW= world version 93): nothing is built over the pier and over the berths along both its sides (as wide and as long as the biggest ship of its kind of port,PORT_BM/PORT_LM, held to the catalog by the test). From the point of the shore nearest its town the port looks along the shore to either side. A port whose nearest point was no good for the land now finds a place beside it too.Port.room(has a hull room at its berth, on the way off it and in its basin) now asksPort.open, a step apart, the rim of the circle too.Ships.sound): before anybody sails it, the passage plan is checked with the hull of its own ship: lying still, the whole outline a step apart; under way, the bow, the stern and both sides a step apart along the track. The pieces were checked as pieces (a lane as a strip between the ends of two piers), but the ship sails from its own turning basin, rounded at the bends and to the right of the ship coming the other way. The check reads the ground, so it is part of the facts a worker works out (Ships.fit): a voyage one ship fails goes to the next ship of its list, and one that every ship fails is not sailed. This is runtime, so it holds in the worlds made before too: in the world of the find the trawler is gone from under the bridge.Hull.free,Hull.air), for every hull (rowing boats, kayaks, the island ferry, police boats, ships): a hull lies only where the air over the water is clear to its own height: the decks of the landscape (so it holds far from the player too), and where the blocks are loaded whatever hangs over the water. A ship stops at a bridge whoever made its plan; a kayak goes under any bridge it fits under.Numbers (36 worlds, main of build 526 → this PR, new worlds): ports 54 → 68, ships of the ports' own 46 → 55, lines 13 → 20, voyages under a deck or through a pier 0. In the worlds made before the ports stand where they stood; 2 home voyages of 59 there are no longer sailed (seeds 9 and 24: a railway deck over their lane, or a shoal the coarser sampling missed).
Known limit. The bay of Santa Branca is fenced by railway viaducts some kilometres long, so no voyage leaves it at either version: the port has its pier (in new worlds 70 m along the shore, clear of the bridge) and no ship. Navigation spans where a lane crosses a bridge are the work of another thread (ships under bridges), which builds on this one.
Found on the way, not in this change. The timetables of two voyages of one port are not checked against each other: in seed 70 a 61 m paddle steamer of a line sails through the water a 151 m destroyer moves over as it leaves its berth sideways (3 pairs among 6 ships in three hours of timetable). Near the player the one physics keeps the hulls apart (the mass rule of
Hull.free); far away the timetable alone places them. That is the next piece of work on the ships.Built on (searched before designing):
Port.swing).Rule in
docs/ARCHITECTURE.md("What is built counts as the land does"): a plan is checked against everything the world puts in its way (the land, what is built over it, the structures of its own kind), and as the thing that will move, not as the pieces it was put together from.Test first.
tools/voyage.test.mjswas widened and was red on three worlds before the fix (the world of the find, seeds 16 and 70): six seeds and the world of the find at version 89 and at the current one, every voyage the game sails (throughShips.specandShips.build, the bay cruises included); no point of a hull under a deck or in a pier on its whole voyage; no pier under a deck; a hull taller than the clearance has no place under the deck and stops at it full ahead, a low one passes; the ships of the catalog fit the berths kept open for them; and a floor on the count of ports and voyages, so a question too strict cannot pass with nothing to check.Checked
On the tree merged with main (build 526, gw 92):
voyage(49 voyages of 33 ports),port,hull(27 checks),ships,gen golden(1492 checks),seam,conventions,layers,genv,undef,members,dupkeys,swallow,srclist,vmfast,quotesgreen locally.Pictures of this change:
tools/shots/527.mjs(the world of the find by its code, as it was made and as the generator makes it now).https://claude.ai/code/session_01UiczdrPosRiH3jGwGMjb6A
Generated by Claude Code