Done. These 2 files will need to be put together, PNG.EXE is a quickbasic program that grabs the PNG dimensions right out of the file. If the file does not conform to standards (and by darn well it should!) this program will fail. The program is DOS, and as a result requires shortened file names - you don't have to worry about this, the batch file automatically shortens them for you.
The program that does the magic is process.cmd - this is the file that you will use. Be sure to edit it, first. Of particular importance are lines 3 & 4:
Code: Select all
set OutFile=textures.auto.txt
set Process=patches\*.png
Outfile is your textures lump - you can specify an absolute path, or one relative to the script. In its current form it outputs to "textures.auto.txt" in its current directory. You can replace that with "C:\games\doom\project\textures.txt" if you want - however, make sure the file does not exist, or it will exit with an error. (It will not let you overwrite an existing file)
Process is almost the same thing, except it specifies where and what files to find. This particular batch program will only read .png files, so don't try and get it to read .lmp's, it won't work. Again, absolute path, or relative, both are accepted.
Afterward, double click the process.cmd file, and boom, there's your textures lump.
You can edit the code in the :maketexture routine of process.cmd file to affect how it outputs the file, so if you need to change something later on, you should be able to.