From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Build ART (tile file)" |
|---|
| claim | "An ART file starts with four little-endian int32 (version, numtiles, tilestart, tileend) followed by (tileend - tilestart + 1) int16 widths, as many int16 heights and as many uint32 picanm words, then the pixel data." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Build ART version 1 (the only version the loaders accept)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ArtHeader" |
|---|
| size | 16 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "artversion" |
|---|
| notes | "must be 1 or the loader fails" |
|---|
|
| offset | 4 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "numtiles" |
|---|
| notes | "read but not trusted: jfbuild overwrites it per file and Ken says it is unused" |
|---|
|
| offset | 8 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "localtilestart" |
|---|
|
| offset | 12 |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "localtileend" |
|---|
|
| offset | 16 |
|---|
| size | 2 |
|---|
| type | "int16_t[]" |
|---|
| name | "tilesizx[]" |
|---|
| notes | "n = localtileend - localtilestart + 1 entries; then tilesizy int16[n], picanm uint32[n], then the tile pixels" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "loadpics reads version (must be 1), numtiles, localtilestart, localtileend, then tilesizx[], tilesizy[] (2 bytes each) and picanm[] (4 bytes each) for the range; the first tile's data offset starts at 4+4+4+4 + n*8" |
|---|
| repo | "https://github.com/jonof/jfbuild" |
|---|
| commit | "e06cbd005a8e6d5f38b5a7aa27ea597dd233c16e" |
|---|
| path | "src/engine.c" |
|---|
| lines | "8095-8122" |
|---|
|
| type | "documentation" |
|---|
| detail | "BUILDINF.TXT section on the ART format, items 1-8" |
|---|
| repo | "https://github.com/jonof/jfbuild" |
|---|
| commit | "e06cbd005a8e6d5f38b5a7aa27ea597dd233c16e" |
|---|
| path | "doc/buildinf.txt" |
|---|
| lines | "13-95" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ART file header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T09:33:09.186Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:55:51.482Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read engine.c loadpics (8085-8125) at the cited commit: int32 version (must be 1), numtiles, localtilestart, localtileend, then tilesizx and tilesizy int16 arrays and picanm uint32 array of (end-start+1) entries; first tile offset 16 + n*8." |
|---|
|
|
|---|