Utility for optimizing NIF files

Post » Wed May 09, 2012 5:42 am

I'm about to release an update for my Armory Clutter and Tool Belt resources, but was thinking maybe I should optimize the NIF files first to reduce overall size and such. I've kind of poked around a little for easy answers but haven't found any so far. That said, I have the following questions:
  • What is the best way to optimize NIFs prior to release? (or should I bother)
  • If running a utility like NIFopt, what are the gotchas I need to be aware of?
  • Is there already a well-tested guide or article for this sort of thing?
I'm sure this question has already been answered numerous times, but a quick run through the CS wiki and the stickies here (plus a couple google searches) basically just showed me that there are multiple ways to do it. What I'm looking for is the best way to do it without much chance of messing up my NIF files.

Thanks in advance to anyone who responds. I really appreciate you guys.
User avatar
Shelby McDonald
 
Posts: 3497
Joined: Sat Jan 13, 2007 2:29 pm

Post » Wed May 09, 2012 4:58 am

I just run each NIF through PyFFI after I've finished modifying it and such.
User avatar
Princess Johnson
 
Posts: 3435
Joined: Wed Feb 07, 2007 5:44 pm

Post » Wed May 09, 2012 12:20 am

I'll look into that - I've heard of it but never used it. Thanks!

UPDATE: I just did a quick google for "oblivion pyffi" and like the third one down was a forum post in which someone stated you shouldn't use it on helm meshes. Is that really the case? The armor dummies by Meo all have helm nodes in them, although it's possible Meo has already optimized though somehow.
User avatar
No Name
 
Posts: 3456
Joined: Mon Dec 03, 2007 2:30 am

Post » Tue May 08, 2012 9:12 pm

I basically have no interest in helmets at all, so I can't say. Never messed with one even in Blender.
User avatar
chirsty aggas
 
Posts: 3396
Joined: Wed Oct 04, 2006 9:23 am

Post » Tue May 08, 2012 9:37 pm

I just run each NIF through PyFFI after I've finished modifying it and such.

Perhaps this site will answer your question: http://tescosi.com/wiki/Oblivion:Python_File_Format_Interface :biggrin: :biggrin:
User avatar
Britney Lopez
 
Posts: 3469
Joined: Fri Feb 09, 2007 5:22 pm

Post » Tue May 08, 2012 5:21 pm

Perhaps this site will answer your question: http://tescosi.com/wiki/Oblivion:Python_File_Format_Interface :biggrin: :biggrin:

Thanks - I'll give this a shot. The instructions seem pretty clear, I'll just check my stuff in-game afterward.
User avatar
Ernesto Salinas
 
Posts: 3399
Joined: Sat Nov 03, 2007 2:19 pm

Post » Tue May 08, 2012 4:31 pm

The helmets thing is old news. PyFFI should be perfectly safe as long as you're not using a 2 year old version :P
User avatar
John N
 
Posts: 3458
Joined: Sun Aug 26, 2007 5:11 pm

Post » Wed May 09, 2012 4:47 am

Yep, what Arthmoor said. Older versions had problems with meshes that could scale, such as helmets (they have to be bigger to work on the beast races, for example). Other meshes with translucent effects, such as hair, also caused issues.
User avatar
Kelly Tomlinson
 
Posts: 3503
Joined: Sat Jul 08, 2006 11:57 pm

Post » Tue May 08, 2012 4:45 pm

Ok, guess I'm hitting a snag here (probably doing something wrong). Here's the skinny:
  • I've installed Python 2.7 and PyFFI 3k 2.2.0. I previously had Python 2.5 installed for WryeBash, but uninstalled it before installing 2.7.
  • After installing both, I still don't have the "Optimize with PyFFI" option referred to by the instructions when you right-click on folders or NIF files.
  • I copied about a dozen NIF files into the /utilities/toaster/in folder under PyFFI's install location
  • There is no oblivion_optimize.ini as referred to in the instructions, but there IS oblivion_optimize01.ini, oblivion_optimize02.ini, and oblivion_optimize03.ini. Right-clicking on those files only gives me my standard options - nothing specific to PyFFI
  • I looked at the batch files and the one called oblivion_optimize.bat seemed to be what I wanted. I double-clicked it, DOS window popped up, and immediately I had the comments from the batch for Pass 1/2/3 with "press any key to continue" (which then closed the window naturally)
  • Fifteen minutes later I still don't have anything in the /utilities/toaster/out folder, and the ones in the /utilities/toaster/in folder haven't been modified
The instructions page was updated November 2011, so I assume I'm doing something wrong...
User avatar
laila hassan
 
Posts: 3476
Joined: Mon Oct 09, 2006 2:53 pm

Post » Wed May 09, 2012 4:04 am

Python 2.7 and PyFFI 3k 2.2.0
The PyFFI 3k series is designed for Python 3+

If you need to used PyFFI on Python 2.7, you're forced to use the older PyFFI 2.10.0 (downloads at the same place)
User avatar
Colton Idonthavealastna
 
Posts: 3337
Joined: Sun Sep 30, 2007 2:13 am

Post » Wed May 09, 2012 7:10 am

That seems to have done the trick. I was wondering what the 3k was for - thanks!
User avatar
DarkGypsy
 
Posts: 3309
Joined: Tue Jan 23, 2007 11:32 am


Return to IV - Oblivion