Sorry for the late reply. I went on my vacation some time after my last post and have been away for some weeks. I'm mostly interested in playing around with the textures for now so I guess I'll give it some tries just replacing those.
I tried to run the first pngpal2raw.exe-command but it says "This format supports only one input file name." and no output-file is created. Running with -v it shows a list of all the files in filelist_tmapa000.txt so it seems to be doing something.
Just what I get, I downloaded the KeeperFX tools, then created a folder called test and put the engine.pal- and filelist_tmapa000.txt-file from the gfx_sources_v9 there (I've also tried running it with a copy of the PNG-files in filelist_tmapa000.txt in the same folder as that file seem to be making relative references to those):
Spoiler
C:\David\Mods\DungeonKeeper\keeperfx_toolspkg>pngpal2raw.exe -b -o "test\tmapa000.dat" -p "test\engine.pal" -f raw -l 0 "test\filelist_tmapa000.txt"
This format supports only one input file name.
PNG and PAL to RAW files converter (PngPal2raw) 1.0.1.1
Created by Tomasz Lis; GNU General Public License
----------------------------------------
usage:
pngpal2raw.exe [options] <filename>
where <filename> should be the input PNG file, and [options] are:
-v,--verbose Verbose console output mode
-d<alg>,--diffuse<alg> Diffusion algorithm used for bpp conversion
-l<num>,--dflevel<num> Diffusion level, 1..100
-f<fmt>,--format<fmt> Output file format; RAW, HSPR, SSPR, JSPR
-p<file>,--palette<file> Input PAL file name
-r<num>,--range<num> Color values range in input PAL file, 1..255
-o<file>,--output<file> Output image file name
-t<file>,--outtab<file> Output tabulation file name
-b,--batchlist Batch, input file is not an image but contains a list of PNGs
-m,--framelist Batch, input file is a list of animations which consist of PNGs
C:\David\Mods\DungeonKeeper\keeperfx_toolspkg>
I checked the arguments for pngpal2raw.exe and the file "tmapa000.dat" is the output-file you copy to your data-folder in Dungeon Keeper, right? But is engine.pal/palette.dat all the packed PNG-images? How would you change a texture, is there another tool to convert the PNGs to DAT like png2bestpal.exe? I tried running it with filelist_tmapa000.txt as input-file but it just freezes without printing anything or creating an output-file.
It's a little confusing it says output-format RAW, but I want a DAT-file? I tried just changing RAW to DAT but then I get no error or output-file. Just typing "test" as output-format gives the same result so I guess it's just not supported.
Also, how do you generally change any texture in the game? I checked the files filelist_tmapa000.txt 1-7 and they seem to reference the PNG-files in the textures-32-folder. I'm assuming those PNG-files go in the DAT-files with the same names tmapa000.dat 1-7? For example if you want to replace a sprite can you use the file "/sprites/animlist.txt"? It seem to reference all the TXT-files that in turn reference the PNG-files for all sprites. However what would be the output-file? I can't find a DAT-file in the Dungeon Keeper-install folder with a name similar to sprite or animlist.