Jump to content

How to Use a Python Script that Removes Normal Mapping?


Recommended Posts

I am trying to install Morrowind mods for OpenMW, but normal mapping has to be removed from meshes in OpenMW, and some mods have 50+ meshes.

There is a Python script to automate the editing here:

https://forum.openmw.org/viewtopic.php?f=40&t=3922&start=100

 

However, I have no idea how to use it.

I installed Python and set the path for it.

I installed PyFFI.

Then I used the command prompt to go to where the mod folder is and used this command:

python fix_nif.py '.*_nm\.dds'

However, it did nothing.

 

Then I added to that with:

"C:\Users\UserName\Desktop\ModFolder"

 

However, that just caused the command prompt to show:

"usage: fix_nif.py [-h] [--dryrun] dir"

"fix_nif.py: error: unrecognized arguments: C:\Users\UserName\Desktop\ModFolder"

 

I also used the script from here:

https://www.reddit.com/r/Morrowind/comments/833v0d/amazing_how_good_openmw_can_look_with_the_right/

 

Using it like this:

python tweak_to_script_to_strip_normal_detail_maps_from_nif_files.py --regex '.*_nm\.dds' ModFolder

Causes it to run, but then it gives the error:

"struct.error: unpack requires a buffer of 2 bytes"
"Error reading file unpack requires a buffer of 2 bytes"

 

Could someone help me with this please?

Edited by GeminiContractor
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...