Kelly's Korner
USING THE PACK/UNPACK UTILITIES


 Kelly Get your copy of Corey Rueckheim's PACK/UNPACK utility here!

Say you have NR1999 in c:\sierra\nr1999 and want to change part of layout.dat. Here's what to do:

  1. Go to the layout directory:
        CD   C:\SIERRA\NR1999\LAYOUT
  2. Make a backup copy of layout.dat:
        COPY LAYOUT.DAT   LAYOUT.OLD
  3. Make a new, temporary directory and make that one the current:
        MD TEMP
        CD TEMP
  4. Copy layout.dat to the temp directory:
        COPY  ../LAYOUT.DAT
  5. Unpack layout.dat:
        (path_to_unpack.exe)\UNPACK  LAYOUT.DAT
  6. Replace one or more files by overwriting existing files. You cannot add new files, unless you really know the techniques.
  7. Create a new layout.dat:
        (path_to_pack.exe)\PACK  LAYOUT.PCK
    Note the filename here: ".PCK" and not ".DAT"!
  8. Move layout.dat back to its original directory, overwriting the old version:
        MOVE  LAYOUT.DAT  ..
  9. Clean up: delete all remaining files, go back to the layout directory and remove the temporary directory:
        DEL  *.*
        CD  ..
        RD  TEMP
Done.


What if the patch doesn't work or you don't like it?

  1. Go back to the layout directory:
        CD  C:\SIERRA\NR1999\LAYOUT
  2. Delete the new layout.dat (AFTER checking you still have the original!):
        DEL  LAYOUT.DAT
  3. Rename the original layout.dat:
        REN  LAYOUT.OLD  LAYOUT.DAT
And you're back to where you were at the top of this page! <g>


 Back