This is the *.txt file for dshrink. ===================== DSHRINK - WHAT IS IT? ===================== Dshrink is a program for removing redundant sidedefs from PWADS. It turns out that PWADS don't need all the sidedefs they typically come with. If two sidedefs in the same sector are identical, DOOM2 can just as easily paint both walls using either sidedef, making the other redundant. Dshrink greatly reduces the size of PWADS, typically removing over 50% of the sidedefs. Also, since PWADS are examined dynamically as DOOM2 runs, smaller PWADS should mean a faster game. ============== *** CAVEAT *** ============== ************** Dshrink's output is useless as input to a level editor. ************** The editor (deu in our case) reads the PWAD just fine, but ************** if you change a sidedef, any other linedefs using it will ************** inherit the change. This makes editing very painful. ************** DO NOT MAKE THE MISTAKE OF WIPING OUT YOUR INPUT FILE BY ************** RENAMING YOUR DSHRINK OUTPUT (TMP.WAD) TO THE NAME OF THE ************** INPUT FILE. WE ARE NOT RESPONSIBLE FOR YOUR MISTAKES. ================== HOW TO USE DSHRINK ================== Dshrink was built using DJGPP (DJ's GCC port to DOS), and requires that GO32.exe is in the search path. If you have GO32 already, you're set. If not, a copy is included. After you've done binary space partitioning on your level (bsp, idbsp, etc.), (Assuming that dshrink.exe and go32.exe are present in your working directory...) > set GO32TMP=c:\ /* only needed once per session */ > dshrink /* doesn't change your pwad */ This creates the file tmp.wad, which you can then play. REMEMBER NOT TO RENAME IT BACK TO YOUR ORIGINAL PWAD NAME! THIS WILL MAKE LEVEL EDITING A BIT PAINFUL! ====== SOURCE ====== Source is included in the file dshrink.c. ===== NOTES ===== 1. This program is only to be used with wads designed to work with the registered version of DOOM2. 2. DOOM2 is a registered trademark of id Software, Inc. 3. If you have any problems with this program, please contact me at phares@dg-rtp.dg.com.