============================ DOOM II FLATS BUG FIX PATCH! ============================ ------ UPDATE ------ This patch does not fix any SPRITES bug, because THE BUG DOES NOT EXIST! DOOM II allows SPRITES to be added in a PWAD as long as they are given NEW NAMES. They can then be made usefil be DEHACKED. The FLATS bug, which does exist, is fixed by the patch. The SPRITES fix has been removed, because it can couse DOOM II to hang if you replace ANYTHING! (Ignore anything I may have left in this file pertaining to S_ENDP.) --------------------------------- ASSUMPTIONS MADE IN THIS DOCUMENT --------------------------------- - You are using DEHACKED 2.2 or later. (If you are not, you can't merge from the command line.) - You are using DEUTEX (3.something, I think). (If not, just get it.) - You are developing PWAD files for DOOM II VERSION *1.666*. (If you are using DOOM I, you need version 1.666 for patch. The patch will NOT work with 1.7 of 1.7a!) - You understand basically how DOOM II works (WAD files, etc.) ------------------------------- HOW TO USE THIS WONDERFUL PATCH ------------------------------- If you design levels that use custom FLATS, you NEED this DeHacked patch. It FIXES the DOOM2.EXE file so that it allows FLATS to be put in a PWAD file, no DEUSF, etc. required! With this patch, I have supplied a batch file (DEH.BAT) that can MERGE this patch with any other. DEH [i] [f] [p] name of patch to load i (or I) to add infinite ammo! (requires INFIAMMO.DEH) f (or F) to add ultimate speed! (requires FASTGUNS.DEH) p (or P) PATCHES DOOM II SO THAT FLATS CAN BE ADDED/REPLACED IN A PWAD FILE. SOME BUILT-IN PICTURES CAN BE USED AS FLATS. MAKE A DEHACKED PATCH TO USE ONE NEW SPRITES. (requires FIXSPFL.DEH) + Adds in . (merge) NOTE: The INFIAMMO.DEH and FASTGUNS.DEH patches are not included (to save you download time), but are available with any of my ULTIMATE weapon patches. If you are not using another patch, just load the FIXSPFL.DEH patch with DeHacked. Probably, however, you will want to use another patch to access new SPRITES added. If so, you can merge my patch into yours, using the command: DEHACKED -LOAD FIXSPFL.DEH *OR* DEH P Then, you can save them as one patch: DEHACKED -SAVE You can distribute this patch with your level and/or graphics PWAD file. You may wish to make a DOS batch file to make life simpler for users of your PWAD. Here is a sample batch file that saves the current DOOM2.EXE, loads a DeHackEd patch, and runs DOOM II with a custom level: @ECHO OFF IF EXIST BACKUP.DEH DEL BACKUP.DEH DEHACKED -SAVE BACKUP.DEH DEHACKED -LOAD MYLEV.DEH DOOM2 -FILE MYLEV.WAD -WARP 01 -SKILL 4 DEHACKED -LOAD BACKUP.WAD DEL BACKUP.WAD After the player exits DOOM II, the normal state of the DOOM2.EXE file is restored. Note that if a PWAD that supports this patch is not loaded, DOOM II will freeze the system. Below is a sample text file for use with the newest version of DEUTEX. This can be used to create a "sprite/flat terminator" PWAD file. [SPRITES] ; SPRITES should be defined in this section, ; Format: = [FLATS] ; FLATS should be defined in this section. ; F_ENDP *MUST* be included of DOOM II will FREEZE! F_ENDP ; F_ENDP.BMP must be in FLATS subdir. The graphics can be any two "dummy" pictures. The only important thing is that the name F_ENDP is included AFTER all FLATS. If it is missing, DOOM II WILL FREEZE! Why will DOOM II freeze? It's simple. The DeHackEd patch makes DOOM II look for F_ENDP instead of the normal F_END to terminate the FLATS sections. Because they are NOT in DOOM2.WAD, DOOM II will keep looking. If it finds them in a PWAD file, everything is OK. If not... You may be wondering why this name is changed. It is because the normal name (F_END), which is in DOOM2.WAD, makes DOOM II stop looking for more FLATS. With my patch, ANY FLATS you add come before the F_ENDP. To add new ones, just put them in the [FLATS] section (in a DEUTEX text file). I have included a "terminator" PWAD (TERM.WAD), but it makes the most sense to put a terminator (F_ENDP) in your own PWAD, for ease of use by players. If you make a batch file to run your level, then it really doesn't matter. :-) By the way, please give me credit when distributing levels using this patch. I worked hard (partially in making this text file), so please don't claim the idea as your own. Dalias, the KING OF PATCHES CIS: 71614,3257 (71614.3257@compuserve.com for INTERNET people!)