Error code · a mistake in the document
dt::header-first
The header line must be the first node of the file.
What the program says
dt::header-first
× the header line must come first
╭─[example.dtile:4:1]
3 │ }
4 │ dharmatiles version=1
· ─────┬─────
· ╰── not the first node
╰────
help: move `dharmatiles version=…` to the top of the file
explain: https://dharmatiles.healtoletgo.com/e/header-first
offline: dharmatiles explain dt::header-first
dt::format-0
× this tile is format 0, and this dharmatiles reads format 1
╭─[example.dtile:4:21]
3 │ }
4 │ dharmatiles version=1
· ┬
· ╰── no header: format 0
╰────
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://dharmatiles.healtoletgo.com/e/format-0
offline: dharmatiles explain dt::format-0
What to do
Move dharmatiles version=… above everything else.
Broken, then fixed
dt::header-firsttile size="1x1" {
stack { dirt }
}
dharmatiles version=1dharmatiles 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