Error code · a mistake in the document

dt::format-0

A document with no header line is format 0, which this program does not read.

What the program says

dt::format-0

  × this tile is format 0, and this dharmatiles reads format 1
   ╭─[example.dtile:1:1]
 1 │ tile size="1x1" {
   · ──┬─
   ·   ╰── no header: format 0
 2 │     stack { dirt }
   ╰────
  help: release 1.0.0 (tag `v1.0.0`) carries a document to format 1 with
        `dharmatiles migrate FILE`: run that release once on the file, then
        use this one
        explain: https://shawn-vincent.github.io/dharmatiles/e/format-0
        offline: dharmatiles explain dt::format-0

What to do

Start the document with dharmatiles version=1; release 1.0.0 carries a file to format 1 with dharmatiles migrate.

Broken, then fixed

Gives dt::format-0
tile size="1x1" {
    stack { dirt }
}
Mended, it reads clean
dharmatiles version="1.0.0"
tile size="1x1" {
    stack { dirt }
}

The rule

A document of any kind (a tile, a parts file, a printer profile, a palette) starts with one line that says which version of the language it is written in:

Read it in context: The tile document · A document starts with a header line