PCX2WAL.EXE tool to create .wal textures for Quake2 (ver 2.0, DOS & Win32) by Iikka Keranen (c) 1997-1998 ikeranen@raita.oulu.fi Thanks to Carl "Zep" Frendzel for Win32 binary and help cleaning up the code :) NO TECH SUPPORT PROVIDED! Supports all features of .wal files, including default flags, contents and values for QE4. The source code is included and is trivial to compile. It compiles with DOS GCC (DJGPP) as is, and in LCCwin32 by one change (memory.h instead of mem.h). It should be easy to do any unix port with GCC. There are binaries for DOS and Win32 included (pcx2wal.exe and pcx2w32.exe). What's new: - Added -p option to speed up things when no need to convert palette - Output name is now optional (-o), uses the .pcx file's name by default. - Made possible to convert multiple textures at once. It should understand even wildcards. - Cleaned the source code a little... Ridded the dead savepcx etc. - The texture's name is now taken from the .wal file name... This might cause uppercase problems? - Wrote flags below. Usage: PCX2WAL [texture2.pcx] [texture3.pcx] ... [options] (Mass-op example: pcx2wal *.pcx -p) Options: -o : Set the output file. By default, it's made from the source file name, e.g. foo.pcx -> foo.wal -n : set next animation frame... like anim0, anim1, anim2.. -f : set default flags for texture (see qe4 for flags) -c : default contents (solid/water etc... again see qe4) -v : default value (for lights .. flags&1 is light) -p : Ignores palette, use if your .pcx has Q2 palette already. This makes it run 3 times faster. Surface flags (simply add together to combine effects... 8+16 for water etc): 1: Light - this makes the texture emit light. 2: Slick - sets the surface slippery. 4: Sky - show sky instead of a texture here 8: Warp - for liquids 16: Trans33 - transparent surface 32: Trans66 - transparent surface (less transparent than trans33) 64: flow - moving texture? 128: nodraw - makes the engine not draw the polygon. (use for skies with 4?) Content flags: 1: solid 2: window 4: aux (unused) 8: lava 16: slime 32: water 64: mist PCX2WAL requires a file "palette.pal" to run. It's a 768-byte piece that can be extracted from a 256c PCX file (e.g. game screenshot) with the included PCX2PAL.EXE. Place the resulting .wal files in quake2/baseq2/textures/mytex/ or something similar. Please use an UNIQUE dir name instead of "mytex" if you are going to distribute the textures, to avoid texture name collisions. You may use this program and source code for anything you want, if you give me the credit for doing it first. If you're a coder and doing another texture utility based on this, I might answer code-related questions if I find time.