Technical help and questions


#1

Hi,

i just have a small question. Since it’s only a small question, i htought, this thread might be reused for similar questions :slight_smile:

So here is the question. Does anyone have exact information about the .def format? I got the info from the wiki, which was quite useful. I could read a def up to the sequence (frame?) header. After that there is supposed to be image data. But i have no idea how to interpret them. Here are the first bytes of image data i found:

80 01 81 01 82 01 83 01 84 01 85 01 86 01 87 01 88 01 89 01 8A 01 8B 01 8C 01 8D 01 8E 01 8F 01
90 01 91 01 92 01 93 01 94 01 95 01 96 01 97 01 98 01 99 01 9A 01 9B 01 9C 01 9D 01 9E 01 9F 01
A0 01 A1 01 A2 01 A3 01 A4 01 A5 01 B0 01 B1 01 B2 01 BD 01 BE 01 BF 01 E0 01 E1 01 E4 01 05 02
08 02 0D 02 2E 02 33 02 39 02 5A 02 60 02 68 02 89 02 91 02 9B 02 BC 02 C6 02 D2 02 F3 02 FF 02
0B 03 2C 03 38 03 44 03 65 03 71 03 7D 03 9E 03 AA 03 B6 03 D7 03 E3 03 EF 03 10 04 1C 04 28 04
49 04 55 04 61 04 82 04 8E 04 9A 04 BB 04 C7 04 D3 04 F4 04 00 05 0C 05 2D 05 39 05 45 05 66 05

The part that puzzles me most is the beginning. A very regular pattern. The image should start with the transparent color, which is color 1. Every second byte is 01. But what about the other byte? I read something about RLE compression. But then why this strange bytes? If this would be PCX RLE compression (old format, with 1 bit identifier), this would mean 0 times color 1 (first two bytes), which would be nonsense.

So can anyone help me? How to interpret these data?
Thanks.


#2

Try to contact with this guy: https://grayface.github.io/wog/ he knows everything about def format - he’s author of defmaker.


#3

Thanks. I try.