                                 Create WAD2
                                    v 1.1

                   Copyright (c) 1996, 2000 Alexander Malmberg
                           <alexander@malmberg.org>

Credits
-------
 Authors of the Unofficial Quake Technical Specification

 Quake is a trademark of Id Software Inc., Mesquite, Texas. Id software
 doesn't have anything to do with this program, and shouldn't be
 bothered about it.

Legal
-----
 Distributed under the GNU General Public License. See legal.txt for more
 information.

About
-----
 cwad2 is a program that creates .wad texture files from .pak files for use
 with editors and utilities like Quest and qbsp.

 Features:
 - Requires no temporary disk space and very little memory
 - Automatically sorts out duplicates (based on name)
 - Can extract to a single or multiple WAD files

 It was written by Alexander Malmberg. For any newer versions and other map
 related stuff, you can visit the Quest site:
 http://quest-ed.sourceforge.net/

Installing
----------
 If you got the DOS/Windows binary, just unzip the .zip file. If you got the
 source, unzip it to a directory and run 'gcc -o cwad2 cwad2.c' (or something
 equivalent on your system). (On non-i386 systems, you'll probably have to fix
 the structures for type sizes and endian issues.)

How
---
 You can run cwad2 with two or more parameters. The first parameter is the
 name of the .wad file you want to extract textures to, or '-' if cwad2 should
 extract textures to different .wad files depending on what category the
 texture belongs in (sort of). cwad2 will create the .wad file if it doesn't
 already exist. The rest of the parameters are .pak files to extract textures
 from.

 Thus, to extract all textures from Quake I's normal .pak files, go to the
 .../quake/id1 directory and give the commands:

   cwad2 tex.wad pak0.pak pak1.pak

 tex.wad will now contain all normal Quake I textures. If you want the textures
 in several .wad files, run:

   cwad2 - pak0.pak pak1.pak

 If you got a .pak file from a mod or something, you can use cwad2 on those,
 but you'll probably have to explicitly tell cwad2 what .wad file to place
 textures in.

Bugs
----
 Non known. If you do find one, contact me. My e-mail address is
 'alexander@malmberg.org'.

Limitations
-----------
 Only works with BSP version 29 (the current version).

Todo
----
 Can't think of anything right now. If you can, tell me about it (or even
 better, do it).

History
-------
 Version 1.1:
   Converted to C and GPL'ed it. Generalized the syntax a little. General
   cleanup.

 Version 1.0:
   Original version. I made it when the texture-extract program I
   downloaded (no names mentioned) created a 14mb .WAD file with
   500 textures and 1400 duplicates and required about 80mb temporary
   space (and it was slow).

