PACKWAD2

Wad2 Repacker

PACKWAD2 is a litle program that takes any WAD2 file, and rebuilds it
using the WAD's index as a guide.  During the process, it also removes
duplicate entries in the wad, and consequentally saves a lot of space in
texture wads generated by programs that pull the MIPS textures out of groups
of bsp files.  This is only suitable for Quake WAD2 files.  It doesn't work
with DOOM wads, and if it did, it would do more damage than good. (DOOM uses
a lot of repeated names)

PACKWAD2 is a DJGPPv2 DOS executable.  It requires that DPMI services be
available.  CWSDPMI is included for execution under DOS.  Under Windows
(All three of them) DPMI services are available, so CWSDPMI is not needed.

PACKWAD2 was written in under a hour inorder to fix a specific problem with
WAD2 files generated by a program called "MKWAD2".  However, due to the
simplicity of the task, there is very little chance of bugs in the code,
(And those that there were have been removed....) but still, should you find
any, email me.

Should you get SEGV errors (Segment Violation) whilst running PACKWAD2,
try runinng CWSPARAM to set CWSDPMI to use another disk for swap, or
stop using Windows - Windows will not actively swap memory for DPMI
programs.  This should fix it as the majority of SEGVs are caused
by running out of memory, when a program is not checking for memory
allocation successes... but that's elementary C programming....

(Also why the DJGPPv2 QBSP crashes on some machines sometimes)


Christopher Collins
ccollins@pcug.org.au
