[RELZWIPZ]PyFFI: Python File Format Interface

Post » Tue May 08, 2012 5:47 pm

When I install PyFFI 2.1.9 manually I don't get the context menu entrys ("Optimize with PyFFI" for folders and "Run PyFFI" for .ini files).
However when I install via the installer it tells me the Setup didn't find a Python installation so no shortcuts have been created, batches won't run, etc...
I'm using Python 2.7.1 32bit.
User avatar
Catherine Harte
 
Posts: 3379
Joined: Sat Aug 26, 2006 12:58 pm

Post » Wed May 09, 2012 2:20 am

Notepad++ is known to interfere with PyFFI's INI entries, so uninstall that if you use it.

Also, PyFFI was written on Python 2.6, so try installing 2.6 and trying again. There is no danger with installing multiple versions of Python, they won't overwrite each other.
User avatar
Lew.p
 
Posts: 3430
Joined: Thu Jun 07, 2007 5:31 pm

Post » Tue May 08, 2012 12:33 pm

Notepad++ is not the issue, I have .ini associated with windows editor and the context menu is not there for folders as well (the "Optimize with PyFFI" entry).

Didn't know that I could install multiple versions of Python so I'll just do that. Thanks for the help.
User avatar
Antony Holdsworth
 
Posts: 3387
Joined: Tue May 29, 2007 4:50 am

Post » Tue May 08, 2012 10:37 pm

PyFFI supports Python 2.7 as well as 2.5 and 2.6. The installer will ask you which versions you want to install for. It may even support Python 3 but I don't remember. I do know the context menus showed up fine when I reinstalled it after updating Wrye Python to the 04 package. The only thing that broke were my precious batch files that are in the OP. I don't know why, but with the updated Python they just do nothing. No errors, no log output, just nothing.

That one guy's optimization kit works just fine though, with some adjustments.
User avatar
Marie Maillos
 
Posts: 3403
Joined: Wed Mar 21, 2007 4:39 pm

Post » Wed May 09, 2012 4:08 am

Well the context menu only doesn't work for me with the manual installation method. Using the installer I got it working fine now, so everythings ok.

Quick question: Would it be more stable / efficient to use QTP3 original PyFFIed or QTP3:R PyFFIed? I think running PyFFI on the original meshes would be better, but I don't know to which extent the meshes were optimized in QTP:R or if there were even manual fixes :mellow:
User avatar
Cccurly
 
Posts: 3381
Joined: Mon Apr 09, 2007 8:18 pm

Post » Tue May 08, 2012 6:23 pm

Arthmoor, would you mind uploading those fixed batch files for the rest of us? I'd greatly appreciate that.
User avatar
Ann Church
 
Posts: 3450
Joined: Sat Jul 29, 2006 7:41 pm

Post » Tue May 08, 2012 8:31 pm

The meshes are no different in QTP3 vs QTP3-R. Only the textures are different.
User avatar
BEl J
 
Posts: 3397
Joined: Tue Feb 13, 2007 8:12 am

Post » Wed May 09, 2012 12:55 am

Nevermind.
User avatar
GPMG
 
Posts: 3507
Joined: Sat Sep 15, 2007 10:55 am

Post » Wed May 09, 2012 1:32 am

Well I did a checksum check and there are 33 different meshes. Didn't see what's changed, but I guess I'll just run PyFFI on QTP3:R in case there were fixes or something.

Regarding your batch files maybe you forgot to change
"C:\Python26\python.exe" "C:\Python26\Scripts\niftoaster.py"
to
"C:\Python27\python.exe" "C:\Python27\Scripts\niftoaster.py"
:laugh:

Because for me they are working.
User avatar
Teghan Harris
 
Posts: 3370
Joined: Mon Mar 05, 2007 1:31 pm

Post » Tue May 08, 2012 12:36 pm

No, I changed that. Mainly because I did forget at first and was rudely told the Python26 path didn't exist anymore. :P

They just flat out refused to work and I couldn't see why, especially when they weren't throwing errors.

Also, yes, I can upload the modified files for the optimization kit. It would be preferable if the guy who originally wrote them updated the Nexus entry with them obviously.
User avatar
KU Fint
 
Posts: 3402
Joined: Mon Dec 04, 2006 4:00 pm

Post » Tue May 08, 2012 4:11 pm

Using Python 2.6 with PyFFI 2.1.9 I could run both "optimize" and "opt_cleanfarnif" on _far.nifs. Now using Python 2.7 I can only run one. Running both in whatever order I always get the message "(already done)" for the second spell. However running "opt_cleanfarnif" first gives different files as "optimize" first.
I'm confused :&

Edit: Also "opt_cleanfarnif" on _far.nifs seems to cause a CRT for me.
User avatar
Taylor Bakos
 
Posts: 3408
Joined: Mon Jan 15, 2007 12:05 am

Post » Wed May 09, 2012 3:25 am

I'm hoping someone can quickly tell me the size of their uncompressed Oblivion - Meshes.bsa.

I'm unsure if I successfully optimized those files, here was the procedure: unpacked the BSA with obmm, placed the meshes folder in the ...toaster/in folder. Hit Run Pyffi by right clicking on the ini. And then once complete dropped the new meshes folder in the 'out' back into the folder I had extracted the contents to.

Here's the thing, the new meshes folder size was ~1.17 as compared to the original ~1.27. I thought that the file sizes were supposed to remain same or increase in size, not decrease? Should I be concerned?

Thanks :)
User avatar
Carolyne Bolt
 
Posts: 3401
Joined: Mon Jul 10, 2006 4:56 am

Post » Tue May 08, 2012 9:42 pm

Nope. Reduced file sizes are fine, and expected to some degree given how much info might get pruned.
User avatar
Rebecca Dosch
 
Posts: 3453
Joined: Thu Jan 18, 2007 6:39 pm

Post » Tue May 08, 2012 2:11 pm

My worries are relieved, thanks!
User avatar
Chris Guerin
 
Posts: 3395
Joined: Thu May 10, 2007 2:44 pm

Post » Tue May 08, 2012 11:56 pm

I don't know if this has been discussed before:
I pyffied my Oblivion - Meshes BSA long ago with version 2.1.7, and everything was neat, except that recently I started a new game and was completely unable to enter the Kvatch Oblivion gate. Upon activating the gate, the game crashed in the loading screen, always with offset 30c75 or similar (I should have noted it down). I deactivated all my mods, turned off OBSE, turned off all interference from the nVidia control panel in Oblivion (I was forcing AA and anisotropic filtering), even uninstalled some graphic mods I suspected affected the Oblivion planes, but the problem became even worse: I could not even get close or fast travel to the gate without crashing with that offset. Maybe I should have tried turning off HDR and lowering the texture detail, but the problem went completely away after I reverted to the original BSA, which I had conveniently backuped.
I guess I could try again with 2.1.9, but since my problem is so vague (I believe it had to do with the gate itself though) I fear whatever the problem was might not be solved, or that it is exclusive to my system setup.
User avatar
Robyn Lena
 
Posts: 3338
Joined: Mon Jan 01, 2007 6:17 am

Post » Wed May 09, 2012 2:30 am

You sould try to isolate the problem. Just use the original BSA and extract the PyFFIed BSA into your data folder, then rename the meshes subfolders (e.g. Oblivion to _Oblivion) a few at a time to see if the problem persists. Eventually you'll find the faulty meshes.
User avatar
Devin Sluis
 
Posts: 3389
Joined: Wed Oct 24, 2007 4:22 am

Post » Tue May 08, 2012 6:06 pm

I extracted the 80 something Mb of files from meshes\oblivion folder, pyffied it with 2.1.9, installed them with BAIN as the first package (the UOP overwrites some of those meshes), and everything seems fine in the Kvatch gate. So I guess its time to pyffi the whole Oblivion + SI files again since 2.1.9 seems to have getting rid of the issue.
The good thing is that my PC has a very good and updated AMD dual-core processor, so I couldn't believe those tales I read here about the process taking a full 24 hours or more after I did it myself. The bad thing is that it takes me something like 12 hours and I can't even browse the internet due to the 100% memory resource drain... I think its time I started reading another book, last one was something like one year ago...
User avatar
gemma king
 
Posts: 3523
Joined: Fri Feb 09, 2007 12:11 pm

Post » Tue May 08, 2012 3:23 pm

This might sound like a stupid question, but what does "run PyFFI from the oblivion_optimize.ini" mean? It's a text file - it doesn't activate anything. Am I supposed to create a batch file? If so, how? Why isn't there a readme with all this information included with the file?
User avatar
Austin Suggs
 
Posts: 3358
Joined: Sun Oct 07, 2007 5:35 pm

Post » Wed May 09, 2012 12:10 am

It's in the context menu. Just right-click oblivion_optimize.ini and you should see it. If you don't than you probably have another text editor associated with .ini files and should change that back to standard.
User avatar
Trey Johnson
 
Posts: 3295
Joined: Thu Oct 11, 2007 7:00 pm

Post » Tue May 08, 2012 1:51 pm

The manual version doesn't work on Seven 64bit, this is the Optimization Kit complaining on a missing file:

Traceback (most recent call last):  File "C:\Python26\Scripts\niftoaster.py", line 48, in     from pyffi.formats.nif import NifFormat  File "C:\Python26\lib\site-packages\pyffi\formats\nif\__init__.py", line 367, in     class NifFormat(FileFormat):  File "C:\Python26\lib\site-packages\pyffi\object_models\xml\__init__.py", line 98, in __init__    xml_file = cls.openfile(xml_file_name, cls.xml_file_path)  File "C:\Python26\lib\site-packages\pyffi\object_models\__init__.py", line 120, in openfile    % (filename, filepaths))IOError: 'nif.xml' not found in any of the directories [None, 'C:\\Python26\\lib\\site-packages\\pyffi\\formats\\nif\\nifxml']

Windows 7 Home Premium 64bit, UAC disabled, Python 2.6.6 installed in C:\Python26, python.exe registered in the system enviroment variables. I ran python setup.py install from c:\PyFFI and it turned out that some directories in C:\Python26 didn't populate correctly.

The PyFFI 2.1.9 windows installer is nowhere to be found at the link provided, I am using PyFFI-2.1.10-beta1.1346017.win32.exe which is working as intended, the Optmization Kit is working flawlessly [and it's bringing my computer to its knees, I guess I'll just stop the optimization process and run it later in the night].
User avatar
Anthony Santillan
 
Posts: 3461
Joined: Sun Jul 01, 2007 6:42 am

Post » Tue May 08, 2012 9:15 pm

The manual version doesn't work on Seven 64bit, this is the Optimization Kit complaining on a missing file:

Traceback (most recent call last):  File "C:\Python26\Scripts\niftoaster.py", line 48, in     from pyffi.formats.nif import NifFormat  File "C:\Python26\lib\site-packages\pyffi\formats\nif\__init__.py", line 367, in     class NifFormat(FileFormat):  File "C:\Python26\lib\site-packages\pyffi\object_models\xml\__init__.py", line 98, in __init__    xml_file = cls.openfile(xml_file_name, cls.xml_file_path)  File "C:\Python26\lib\site-packages\pyffi\object_models\__init__.py", line 120, in openfile    % (filename, filepaths))IOError: 'nif.xml' not found in any of the directories [None, 'C:\\Python26\\lib\\site-packages\\pyffi\\formats\\nif\\nifxml']

Windows 7 Home Premium 64bit, UAC disabled, Python 2.6.6 installed in C:\Python26, python.exe registered in the system enviroment variables. I ran python setup.py install from c:\PyFFI and it turned out that some directories in C:\Python26 didn't populate correctly.

The PyFFI 2.1.9 windows installer is nowhere to be found at the link provided, I am using PyFFI-2.1.10-beta1.1346017.win32.exe which is working as intended, the Optmization Kit is working flawlessly [and it's bringing my computer to its knees, I guess I'll just stop the optimization process and run it later in the night].
I'm running Windows 7 64-bit, and everything PyFFI is working fine.

Download the stable 2.1.9 at the main download location: http://sourceforge.net/projects/pyffi/files/ <-- You want the top, advertised link in blue...
User avatar
Max Van Morrison
 
Posts: 3503
Joined: Sat Jul 07, 2007 4:48 pm

Post » Tue May 08, 2012 11:06 pm

Thanks. Thomas might want to update that link, github.com doesn't host the stable 2.1.9 or at least it's really not clear where it is supposed to be.
User avatar
katie TWAVA
 
Posts: 3452
Joined: Tue Jul 04, 2006 3:32 am

Post » Tue May 08, 2012 1:54 pm

Thanks. Thomas might want to update that link, github.com doesn't host the stable 2.1.9 or at least it's really not clear where it is supposed to be.
It's listed as the first ZIP under all the beta downloads...??? It's a repository, so the newest stuff is listed first. :/


--Tomlong75210


Edit: The Sourceforge page is linked from the PyFFI home site, so you can stick to that location for downloads until they change it I guess. :L
User avatar
courtnay
 
Posts: 3412
Joined: Sun Nov 05, 2006 8:49 pm

Post » Wed May 09, 2012 12:17 am

I was talking about the installer version, which is not listed in that page. The setup.py which comes in the manual .zip version doesn't populate the directories correctly in the main Python directory, hence the errors thrown in the optimization kit logs.
User avatar
Nitol Ahmed
 
Posts: 3321
Joined: Thu May 03, 2007 7:35 am

Post » Tue May 08, 2012 2:44 pm

I was talking about the installer version, which is not listed in that page. The setup.py which comes in the manual .zip version doesn't populate the directories correctly in the main Python directory, hence the errors thrown in the optimization kit logs.
Oh, all right. I was wondering about that when I saw the ZIP, actually. Well, I didn't know about the GitHub link, and now you have the SourceForge link, so I guess we've both learned something useful. ^___^ I've only been using the EXE files. I haven't grabbed a PyFFI beta recently... :/


Happy gaming!
--Tomlong75210
User avatar
marina
 
Posts: 3401
Joined: Tue Mar 13, 2007 10:02 pm

PreviousNext

Return to IV - Oblivion