Error code · a mistake in the document
dt::header
The header line takes version= and nothing else.
What the program says
dt::header
× the header line has no children
╭─[example.dtile:2:5]
1 │ dharmatiles version=1 {
2 │ note
· ──┬─
· ╰── nothing goes inside it
3 │ }
╰────
help: the header is one line: `dharmatiles version=1`
explain: https://shawn-vincent.github.io/dharmatiles/e/header
offline: dharmatiles explain dt::header
dt::format-0
× this tile is format 0, and this dharmatiles reads format 1
╭─[example.dtile:1:21]
1 │ dharmatiles version=1 {
· ┬
· ╰── no header: format 0
2 │ note
╰────
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
Write just dharmatiles version=1, with no children and no other settings.
Broken, then fixed
dt::headerdharmatiles version=1 {
note
}
tile size="1x1" {
stack { dirt }
}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