if you want to use the file ids, then you'll need to make a lookup table like the one you linked. I'm pretty sure that data is stored in /dbfilesclient/texturefiledata.db2 (could be wrong, just guessing), you can extract it using CASCExplorer and a db2 reader, you'll probably have to figure out how it's formatted, or find someone who has done it already.
|