Daggerfall:Texture files
The UESPWiki – Your source for The Elder Scrolls since 1995
See also Image Formats for more information on all the image/texture file formats.
I wanted to change images of weapon,armor and clothes, and I found some items in the texture files. Most work has been done on women clothes texture.235-238 and armor 245-248. The strange thing is that the 4 files are almost equal and I have the same clothes who look the same but are from diferent files. I don't know the reason. it my be different race, province or season.
To the hack. This is about texture.236 which is my current texture. From shop's in Daggerfall City in the winter with a high elf girl.
First byte is the number of pictures. Then you have numbers with 16 bytes between them, this is the start of the different pictures. After this the pictures starts.
[edit] The Picture File
The pictures are run length encoded in a strange way. First you have a 28 byte header:
aa,00,bb,00,xx,00,yy,00,08,ll,L1,L2,00,00,1c,00,00,00,00,00,01,00,47,00,00,00,00,00
| aa | offset x |
| bb | offset y |
| xx | width x |
| yy | height y |
| L1,L2 | the total length of the image from aa to the end of image. |
08,11,1c,1,47 are unknown constants in most (all?) pictures in texture.235-248, it may be pallette information.
Then we have a strange field: for every line in the picture it's a field (one for every yy)
aa,bb,00,cc
aa,bb is the starting point of the line relative to start of header. cc is 00 for none RLE code lines and 80 for RLE code lines. Then, finally, the pictures start.
The non RLE lines are pretty equal to .IMG files, but the pallete have some diferencess.
[edit] The RLE Lines
The RLE line starts with xx,00 where xx is the image width. One RLE string: FF-(number of pixels (3=FcE),FF,color One Non-RLE string: xx(number of Non-RLE pixels),00,(xx bytes with pixels) A RLE string can not cross a linebreak like Non-RLE lines. I don't know if the RLE settings are correct, because I don't need them.
[edit] Palette
| 00 | transparant, show background, body and face |
| FF | Wipe body and face but transparant for background, used by robes and cloak. |
| 60-6f | This is the main color for clothes, it changes randomly between the 10 clothes color, Equals blue in screenshot |
| 70-7f | This is armor color |
| f0-fd | Blue |
| A0-AF | Green |
| 90-9F | Yellow |
I have not tested any others.

![[Content is available under Attribution-ShareAlike]](http://www.uesp.net/w/images/Somerights.png)