Details on .ct files.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@154 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2002-10-26 21:54:29 +00:00
parent ea46c0c66d
commit 421e6dfe9e
+16 -4
View File
@@ -1,22 +1,34 @@
This is the format for resources of type STRTAB. It contains a number of This is the format for resources of type STRTAB. It contains a number of
entries of unspecified data (not necessarilly strings). items of unspecified data (not necessarilly strings).
This is used for game strings (extension .txt), colour tables (.ct), This is used for game strings (extension .txt), colour tables (.ct),
and colour translation tables (.xlt). and colour translation tables (.xlt).
Everything is stored MSB first unless otherwise specified.
position length meaning position length meaning
4 Unknown, always 0xffffffff 4 Unknown, always 0xffffffff
2 Unknown, always 0x0000 2 Unknown, always 0x0000
2 number of entries in the file (StringCount) 2 number of items in the file (StringCount)
Followed by: Followed by:
In file: In file:
4 Placeholder, always 0x00000000 4 Placeholder, always 0x00000000
numentries times: numitems times:
4 length of string 4 length of string
In memory: In memory:
numentries times: numitems times:
4 offset from &StringCount to the string 4 offset from &StringCount to the string
followed by: followed by:
4 offset from &StringCount until one char past the end 4 offset from &StringCount until one char past the end
of the last string. of the last string.
For .ct files an item is as follows:
1 Index of first clut in this item.
1 Index of last clut in this item.
For each item:
32 palette entries:
2 bits 0-4: blue value
bits 5-9: green value
bits 10-15: red value