Guide:DDSopt/Batch Files/03 Readme-Compress
From Step Mods | Change The Game
< Guide:DDSopt | Batch Files
The Vanilla Folders Archive batch file will automatically compress the folders with optimized textures in "Vanilla Optimized". This step is done after the textures are optimized; details of the steps are in the DDSopt guide (https://stepmodifications.org/wiki/Guide:DDSopt) The archive file names are the same as the names of the folders in the Vanilla Optimized directory (e.g., STD.7z). If desired, the user can change these names after the optimization is completed. For example, if a user prefers a single file with all of the HRDLC resources, the HRDLC1, HRDLC2, and HRDLC3 folders can be combined into a single folder prior to archiving. The files are archived into non-solid 7zip archives. The files are at the root of the 7zip archive to avoid an additional unnecessary subdirectory in the archive. LZMA2 compression is used, and multiple CPU cores are used for archiving if they are available. The resulting 7zip files will be in the working directory. From here they can be copied or moved to the installer directory used by a mod manager (Wrye Bash or Mod Organizer). There are two versions of this batch file * one version for use when the directory containing the 7zip executable (7z.exe) is in the command path (3_Compress_7z_in_path.bat) * one version for use when 7z.exe is copied into the working folder (3_Compress_7z_in_folder.bat). It is preferable, since it saves additional steps in other processing, to have 7z.exe in the command path However, some users will prefer not to do this. There are multiple websites that describe how to do this; one example with menu pictures is (https://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/) The steps to adding 7z.exe to the Path environmental variable are as follows: First, determine where 7zip is installed on the computer. The directory name is 7-zip . Right click on Computer on the desktop , or open the Control Panel and select "System". Click "Advanced system settings" On the resulting popup box click "Environmental Variables" In the "System Variables" portion of the box, scroll and select "Path" then click "Edit" At the end of what is there add a semicolon ";" then add the directory where 7x.exe is stored (e.g. "D:\7-zip") Make sure not to have any spaces betrween the semicolon and the directory name. When finished click OK, then click OK again, and click OK once more. When the batch file runs it makes some initial tests to ensure the batch file and optimized texture files are in the correct folder