From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:NewGRF" |
|---|
| claim | "NewGRF record type byte: 0xFF pseudo-sprite (first data byte is the action), 0xFD data-section reference (container v2, length 4, u32 sprite id); other values are real sprites (v1 only inline); bit 1 (value 2) set means uncompressed data." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NewGRF" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "GrfRecordType" |
|---|
| values | | 0xFF | "GRF_PSEUDO_SPRITE" |
|---|
| 0xFD | "GRF_DATA_SECTION_REF" |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "LoadNewGRFFileFromFile record loop" |
|---|
| repo | "https://github.com/OpenTTD/OpenTTD" |
|---|
| commit | "364d9b12b082b424de46423219188a52baf4e529" |
|---|
| path | "src/newgrf.cpp" |
|---|
|
| type | "source" |
|---|
| detail | "LoadNextSprite and SkipSpriteData" |
|---|
| repo | "https://github.com/OpenTTD/OpenTTD" |
|---|
| commit | "364d9b12b082b424de46423219188a52baf4e529" |
|---|
| path | "src/spritecache.cpp" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "record types" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T18:42:33.493Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:50:09.029Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read spritecache.cpp at 364d9b12: LoadNextSprite line 618-649 branches on grf_type == 0xFF (pseudo-sprite), container version >= 2 && 0xFD (data section reference), otherwise SkipSpriteData(file, grf_type, ...) where 'type & 2' (line 106) skips raw bytes, else RLE-style compressed. Matches the claim." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:41:10.207Z" |
|---|
| summary | "Mark complete: the LoadNewGRFFile record loop special-cases only 0xFF and 0xFD; every other type byte is a real sprite (already in the claim)" |
|---|
| changed | |
|---|
|
|
|---|