Sign in to follow this  
Followers 0
inawe

Support for Fallout 4 nifs?

5 posts in this topic

Does niftoaster.py work correctly with Fallout 4 nifs? I would like to batch dump a list of the materials and textures used by a group of nifs so that I can find which nifs are using certain ones. I installed Python 3.2 and Pyffi 2.2.2, then ran the install.bat for Pyffi 2.2.3.

 

The command I tried to run to test it was "niftoaster.py dump_tex \\". All I got was the following:

pyffi.toaster:INFO:toasting with 2 threads in chunks of 64 files

pyffi.toaster:INFO:Finished.

 

I then replaced the nif.xml with the one from the current version of NifSkope. That caused a bunch of errors when running, so I'm assuming that the Python scripts have to be updated as well.

 

Taking a look at GitHub, I see that there has been work done towards Pyffi 2.2.4. Is that far enough along for what I am trying to do to work? I tried to figure out how to download a package that included all of the current commits so that I could test it, but I don't know GitHub well enough to do it.

 

If it will be a while before Pyffi is updated enough for dump_tex to work correctly with Fallout 4 nifs then can anyone suggest an alternate way to batch pull the materials and textures information?

 

Thanks in advance for any help.

Share this post


Link to post
Share on other sites

Thank you for the reply neomonkeys. I'll give it a try. I was able to get the information I was looking for by using a Windows version of the "strings" command on the nifs and piping the output through grep, but I wouldn't mind something better formatted.

Share this post


Link to post
Share on other sites

Can you post the output failure you were getting when you try with the above.

Also note that I think the specific toaster spell would need to be updated if the block types have changed in f04.

 

Also, just to point out that the version of nif.xml reference in the pyffi commit is probably several versions behind the NifSkope version.

Share this post


Link to post
Share on other sites

I used the nif.xml from NifSkope 2.0 Pre-Alpha 6. After installing your hfloat branch, here is what I am getting:

 

C:\run\Python32\Scripts>niftoaster.py dump_tex "C:\temp 2\Fallout 4\Meshes\SetDressing\Rubble\AsphaltChunk01.nif"

pyffi.toaster:INFO:toasting with 2 threads in chunks of 64 files

pyffi.toaster:3732:INFO:=== C:\temp 2\Fallout 4\Meshes\SetDressing\Rubble\AsphaltChunk01.nif ===

Reading failed

Traceback (most recent call last):

File "C:\run\Python32\lib\site-packages\pyffi\formats\nif\__init__.py", line 1371, in read

block.read(stream, self)

File "C:\run\Python32\lib\site-packages\pyffi\object_models\xml\struct_.py", line 352, in read

attr_value.read(stream, data)

File "C:\run\Python32\lib\site-packages\pyffi\object_models\xml\array.py", line 300, in read

elem.read(stream, data)

File "C:\run\Python32\lib\site-packages\pyffi\formats\nif\__init__.py", line 511, in read

stream.read(4))

struct.error: unpack requires a bytes object of length 4

pyffi.toaster:3732:ERROR:TEST FAILED ON C:\temp 2\Fallout 4\Meshes\SetDressing\Rubble\AsphaltChunk01.nif

pyffi.toaster:3732:ERROR:If you were running a spell that came with PyFFI, then

pyffi.toaster:3732:ERROR:please report this as a bug (include the file) on

pyffi.toaster:3732:ERROR:http://sourceforge.net/tracker/?group_id=199269

pyffi.toaster:INFO:Finished.

 

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0