From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:PCX" |
|---|
| claim | "A 256-colour PCX ends with a 769-byte trailer: byte 0x0C then 256 RGB triples; DevilutionX rejects files where the byte at fileSize-769 is not 0x0C." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PCX" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "loading a 256-colour PCX palette" |
|---|
| effect | "palette read from the last 768 bytes after the 0x0C separator" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "PcxPaletteSeparator and PcxPaletteSize" |
|---|
| repo | "https://github.com/diasurgical/devilutionX" |
|---|
| commit | "a927236209828a1f1dcb7ef32bdd03a288710c29" |
|---|
| path | "Source/utils/pcx_to_clx.cpp" |
|---|
| lines | "197-217" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "palette trailer" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T18:42:33.979Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:30:48.380Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read devilutionX pcx_to_clx.cpp at a927236 lines 200-206: PcxPaletteSeparator 0x0C, PcxPaletteSize = 1 + 256*3 = 769, rejects when the byte at end-769 is not 0x0C." |
|---|
|
|
|---|