Note: This page has been moved to the new UESP-Wiki. The same content, just a different presentation.
This page very likely contains outdated information (last updated in 2005).
[the Unofficial Elder Scrolls Pages, 227x71, 4.2kb] UESP Main Page
Arena
Daggerfall
Battlespire
Redguard
Morrowind

Daggerfall Texture Hacking

19 February 2011

See also Image Formats for more information on all the image/texture file formats.

Written by Magne Moe - magne@vrct.no

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.

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.

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.

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.


[Print] Display this document for printing (some pages may not display properly).

If you have any problems, suggestions or comments on this page or website, please feel free to use the Contact Form to send a message to the WebMaster.
This document was last modified on: Saturday, 19 February 2011, at 09:55:05 and has been accessed 6727 times ( /dagger/dagtex.shtml ).

Please note that this site is Completely Unofficial and is in no way connected to Bethesda softworks or Zenimax. Bethesda Softworks, Battlespire, XnGine, Morrowind, Redguard, Daggerfall, Arena and The Elder Scrolls are trademarks of Media Technology Limited, Copyright © 1994-2001 Media Technology Limited.