Error code · a mistake in the document

dt::seam

A line crosses a square's edge where no seam is, so it would not meet the next tile's.

What the program says

dt::seam

  × column 1, row 1, west side, at 0.4 is not a seam
   ╭─[example.dtile:3:25]
 2 │ tile size="1x1" {
 3 │     line edge { through "(0sq, 0.4sq)" "(1sq, 0.5sq)" }
   ·                         ───────┬──────
   ·                                ╰── not on a seam
 4 │     stack { dirt }
   ╰────
  help: did you mean `wnw`? the nearest seam of this square's edge is 1/3;
        `seams=free` on the tile lets its lines cross anywhere
        explain: https://dharmatiles.healtoletgo.com/e/seam
        offline: dharmatiles explain dt::seam

What to do

Move the point onto a seam: the message gives the nearest, by its word or as a point; seams=free on the tile lets its lines cross anywhere.

Broken, then fixed

Gives dt::seam
dharmatiles version="1.0.0"
tile size="1x1" {
    line edge { through "(0sq, 0.4sq)" "(1sq, 0.5sq)" }
    stack { dirt }
}
Mended, it reads clean
dharmatiles version="1.0.0"
tile size="1x1" {
    line edge { through "(0sq, 0.5sq)" "(1sq, 0.5sq)" }
    stack { dirt }
}

The rule

A line may cross the edge of a square only at a seam: the same few places on every square edge, listed in the edge contract (library/parts/edges.dtile) and shown on the tile system page: the corners, a third, a half and two thirds. A point on a tile side that is not a seam is dt::seam, naming the square (column 2, row 1, north side, at 0.45 is not a seam) with a fix that moves it to the nearest seam on that square. Squares are named column then row, counted from 1: C1 R1 is the north-west square. Positions measure from each square’s own corner, so a 2×2’s north side has two sets of seams, one for column 1 and one for column 2. A third is written exactly, 1sq/3, never 0.33; the point partway along a side where two squares meet is not a seam, only the tile’s own corners are. A tile that must cross an edge elsewhere writes seams=free.

Read it in context: Seams · A line crosses a square’s edge only at a seam