Difference between revisions of "Nif Optimization"

Jump to navigation Jump to search
18 bytes added ,  11:09, 15 September 2008
no edit summary
imported>Qazaaq
imported>Sproaty
Line 78: Line 78:
followed by enter, to tell the Windows shell to go to your Python install folder. If you did not install Python in the default location then just replace the folder with your Python install folder. If you are unsure about where Python is installed, open the start menu then go to "Programs > Python 2.5", right-click any of the shortcuts and choose properties. Open the Shortcut tab, where the Python path is displayed in the "Target:" textbox. Write that url in your DOS window in the same format as the example.
followed by enter, to tell the Windows shell to go to your Python install folder. If you did not install Python in the default location then just replace the folder with your Python install folder. If you are unsure about where Python is installed, open the start menu then go to "Programs > Python 2.5", right-click any of the shortcuts and choose properties. Open the Shortcut tab, where the Python path is displayed in the "Target:" textbox. Write that url in your DOS window in the same format as the example.
*Next, type
*Next, type
  python.exe Scripts\nifoptimize.py C:\nifoptimize
  python.exe Scripts\niftoaster.py optimize C:\nifoptimize
followed by enter, to run the nifoptimize.py script, which will process all nif files in the folder <tt>C:\nifoptimize</tt> '''including the nifs in all subfolders, subsubfolders, ...''' If you optimize a lot of nif files at the same time, it may be useful to store the output in a file instead of having to browse through the console. You can do this using the following command:
followed by enter, to run the niftoaster.py script, which will process all nif files in the folder <tt>C:\nifoptimize</tt> '''including the nifs in all subfolders, subsubfolders, ...''' If you optimize a lot of nif files at the same time, it may be useful to store the output in a file instead of having to browse through the console. You can do this using the following command:
  python.exe Scripts\nifoptimize.py C:\nifoptimize > C:\log.txt
  python.exe Scripts\nifoptimize.py C:\niftoaster.py optimize > C:\log.txt
which will store all output in the file <tt>C:\log.txt</tt>.
which will store all output in the file <tt>C:\log.txt</tt>.
*If everything works like it should, you should get a warning and a confirmation prompt. Write the letter Y and hit return. Now the program will work it's way through all the nifs in the folder.
*If everything works like it should, you should get a warning and a confirmation prompt. Write the letter Y and hit return. Now the program will work it's way through all the nifs in the folder.
Anonymous user

Navigation menu