Jump to content
ℹ️ Intermittent Download History issues ×

Pyffi warning error when import *.nif file to Blender


meo02001

Recommended Posts

Hello! I'm trying to convert a UNP body armor to another body. But I got a problem when I was trying to import edit *.nif into Blender, the Blender's console alway gives me some warning messages

 

pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.037356)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.036789)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.037356)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.036788)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.036789)
and 
pyffi.object_modeles.xml.enum:ERROR:invalid enum value (32)
pyffi.object_modeles.xml.enum:ERROR:invalid enum value(32)

 

 

I tried to look at some tutorials and found a topic about this problem here but it didnt help.

 

Im using:

Python 2.6.6

Blender 2.49b

Blender nif scripts 2.5.9

PyFFI 2.1.11

and Nifskope 1.1.3.36

 

Things what I tried:

- Change user version 1 & 2 to 11 and 34 (or 37)

- Delete all BSLightingShaderProperty node

- Change all BSDismemberSkinInstance Partitions Body Part from SBP_32_BODY to BP_TORSO

- Replace original nif.xml with the one from here

 

So anyone can tell me what's this problem? And how to fix it? :(

 

Here is the nif file which I edited by Nifskope to prepare to blender and the original.

 

http://www.mediafire.com/?19wc061d524x2rj (2.3mb)

Edited by meo02001
Link to comment
Share on other sites

Hello! I'm trying to convert a UNP body armor to another body. But I got a problem when I was trying to import edit *.nif into Blender, the Blender's console alway gives me some warning messages

 

pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.037356)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.036789)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.037356)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.036788)
pyffi.nif.matrix:WARNING:improper rotation matrix (error is 0.036789)
and 
pyffi.object_modeles.xml.enum:ERROR:invalid enum value (32)
pyffi.object_modeles.xml.enum:ERROR:invalid enum value(32)

 

 

I tried to look at some tutorials and found a topic about this problem here but it didnt help.

 

Im using:

Python 2.6.6

Blender 2.49b

Blender nif scripts 2.5.9

PyFFI 2.1.11

and Nifskope 1.1.3.36

 

Things what I tried:

- Change user version 1 & 2 to 11 and 34 (or 37)

- Delete all BSLightingShaderProperty node

- Change all BSDismemberSkinInstance Partitions Body Part from SBP_32_BODY to BP_TORSO

- Replace original nif.xml with the one from here

 

So anyone can tell me what's this problem? And how to fix it? :(

 

Here is the nif file which I edited by Nifskope to prepare to blender and the original.

 

http://www.mediafire.com/?19wc061d524x2rj (2.3mb)

 

Hmmm, I was able to import fine, although I had the same "rotation" warnings, I did not have any errors concerning the 32 partition part. Like neomonkeus said, the first ones are just warnings. Are you sure you're importing the edited file provided in the rar? do you have the "import only skeleton" option enable during import? if so, disable.

 

I also edited the original, and didnt even bothered changing the dismember partitions, because that body already has the partitions messed up, so no point in correcting it. Only then I get the error pyffi.object_modeles.xml.enum:ERROR:invalid enum value (32). But in this case i rather not correct it, because by default, the import operation will "merge" unrecognized partitions into a single one BP_TORSO

Link to comment
Share on other sites

Thank you for reply!

I dont get invalid enum value (32) too, if I dont edit Partitions Body Part. But I still get lots of rotation matrix warning messages. And the "Import Skeleton only +Parent selected" is not enable when I try to importing (it's default, only "Import Animation" and "Import Extra Nodes" are selected)

So is that fine with those warning messages? Can I just ignore them?

Link to comment
Share on other sites

Thank you for reply!

I dont get invalid enum value (32) too, if I dont edit Partitions Body Part. But I still get lots of rotation matrix warning messages. And the "Import Skeleton only +Parent selected" is not enable when I try to importing (it's default, only "Import Animation" and "Import Extra Nodes" are selected)

So is that fine with those warning messages? Can I just ignore them?

 

More than likely the original mesh had bad data. Pyffi or Blender "should" auto-correct this. Try import/exporting then re-importing to see if they auto-magic'd the matrices on export. If not drop me a response and I will take a poke at it and see what is the problem.

 

I would assume that they should be usable if you cannot find any other topics on it. You contact the original author(s) as it could be a case that when it was created that the tools used were bugged but it became popular that it was too late for people not to notice.....sounds like a certain .obj format I know :P

Edited by neomonkeus
Link to comment
Share on other sites

@neomonkeus: thanks to notice my topic.

When I tried to export the nif file right after import to blender with these warning messages (didn't edit anything, export nif file with Fo3 options), I got lots of those messages:

 

[0.399866, 0.039796, -0.915709, 0.000000](matrix [row 2])
[-0.000001, 0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L Thigh [LThg
].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.038859, -1.031824, 0.037755, 0.000000](matrix [row 0])
[-1.027425, -0.042388, -0.100988, 0.000000](matrix [row 1])
[0.102398, -0.033744, -1.027605, 0.000000](matrix [row 2])
[0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.037609, -0.998624, 0.036541, 0.000000](matrix [row 0])
[-0.994366, -0.041025, -0.097739, 0.000000](matrix [row 1])
[0.099104, -0.032659, -0.994541, 0.000000](matrix [row 2])
[0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L Calf [LClf]
.
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.023321, -1.018864, 0.170203, 0.000000](matrix [row 0])
[-1.028010, -0.039576, -0.096054, 0.000000](matrix [row 1])
[0.101237, -0.167173, -1.014594, 0.000000](matrix [row 2])
[0.000000, -0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.022570, -0.986081, 0.164726, 0.000000](matrix [row 0])
[-0.994933, -0.038302, -0.092962, 0.000000](matrix [row 1])
[0.097978, -0.161794, -0.981949, 0.000000](matrix [row 2])
[0.000000, -0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L ForearmTwis
t1 [LLt1].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.462822, 1.007032, 0.036489, 0.000000](matrix [row 0])
[-0.485813, -0.187803, -0.978962, 0.000000](matrix [row 1])
[-0.882854, -0.424577, 0.519570, 0.000000](matrix [row 2])
[-0.000001, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.417372, 0.908140, 0.032906, 0.000000](matrix [row 0])
[-0.438105, -0.169360, -0.882825, 0.000000](matrix [row 1])
[-0.796156, -0.382883, 0.468547, 0.000000](matrix [row 2])
[-0.000001, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC Spine1 [spn1]
.
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.000002, -1.142209, 0.118584, 0.000000](matrix [row 0])
[1.148348, 0.000002, -0.000000, 0.000000](matrix [row 1])
[-0.000000, 0.118584, 1.142209, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000001, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.000001, -0.994654, 0.103265, 0.000000](matrix [row 0])
[1.000000, 0.000001, -0.000000, 0.000000](matrix [row 1])
[-0.000000, 0.103265, 0.994654, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000001, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC Spine [spn0].

Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.000001, -1.107157, -0.047030, 0.000000](matrix [row 0])
[1.108156, 0.000001, 0.000000, 0.000000](matrix [row 1])
[-0.000000, -0.047030, 1.107157, 0.000000](matrix [row 2])
[-0.000000, -0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.000001, -0.999099, -0.042440, 0.000000](matrix [row 0])
[1.000000, 0.000001, 0.000000, 0.000000](matrix [row 1])
[-0.000000, -0.042440, 0.999099, 0.000000](matrix [row 2])
[-0.000000, -0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC R UpperArm [R
Uar].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.094979, -1.115928, -0.007022, 0.000000](matrix [row 0])
[-1.022146, 0.084165, 0.450001, 0.000000](matrix [row 1])
[-0.447843, 0.044571, -1.025581, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.084804, -0.996378, -0.006270, 0.000000](matrix [row 0])
[-0.912642, 0.075149, 0.401792, 0.000000](matrix [row 1])
[-0.399865, 0.039796, -0.915710, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC R Thigh [RThg
].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.038861, -1.031825, 0.037735, 0.000000](matrix [row 0])
[-1.027427, 0.042388, 0.100965, 0.000000](matrix [row 1])
[-0.102374, -0.033725, -1.027608, 0.000000](matrix [row 2])
[-0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.037611, -0.998625, 0.036521, 0.000000](matrix [row 0])
[-0.994368, 0.041024, 0.097717, 0.000000](matrix [row 1])
[-0.099081, -0.032640, -0.994544, 0.000000](matrix [row 2])
[-0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC R ForearmTwis
t1 [RLt1].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.463130, -1.006884, 0.036648, 0.000000](matrix [row 0])
[0.485789, -0.187813, 0.978971, 0.000000](matrix [row 1])
[-0.882705, 0.424922, 0.519540, 0.000000](matrix [row 2])
[-0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.417650, -0.908007, 0.033049, 0.000000](matrix [row 0])
[0.438084, -0.169370, 0.882834, 0.000000](matrix [row 1])
[-0.796022, 0.383194, 0.468520, 0.000000](matrix [row 2])
[-0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC R Clavicle [R
Clv].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.387625, -0.936599, 0.596211, 0.000000](matrix [row 0])
[-0.380135, 0.481378, 1.003350, 0.000000](matrix [row 1])
[-1.043160, -0.523446, -0.144083, 0.000000](matrix [row 2])
[0.000001, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.329618, -0.796439, 0.506989, 0.000000](matrix [row 0])
[-0.323248, 0.409341, 0.853200, 0.000000](matrix [row 1])
[-0.887053, -0.445113, -0.122522, 0.000000](matrix [row 2])
[0.000001, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC R Calf [RClf]
.
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.023297, -1.018879, 0.170115, 0.000000](matrix [row 0])
[-1.028013, 0.039540, 0.096034, 0.000000](matrix [row 1])
[-0.101209, -0.167088, -1.014611, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.022547, -0.986096, 0.164641, 0.000000](matrix [row 0])
[-0.994936, 0.038267, 0.092944, 0.000000](matrix [row 1])
[-0.097952, -0.161712, -0.981965, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L Clavicle [L
Clv].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.387621, -0.936597, 0.596216, 0.000000](matrix [row 0])
[-0.380138, -0.481383, -1.003346, 0.000000](matrix [row 1])
[1.043160, -0.523445, -0.144085, 0.000000](matrix [row 2])
[0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.329614, -0.796437, 0.506993, 0.000000](matrix [row 0])
[-0.323251, -0.409345, -0.853197, 0.000000](matrix [row 1])
[0.887053, -0.445112, -0.122523, 0.000000](matrix [row 2])
[0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC R ForearmTwis
t2 [RLt2].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.463386, -1.007203, 0.021569, 0.000000](matrix [row 0])
[0.485809, -0.202606, 0.976007, 0.000000](matrix [row 1])
[-0.882561, 0.417304, 0.525922, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.417880, -0.908294, 0.019451, 0.000000](matrix [row 0])
[0.438101, -0.182710, 0.880162, 0.000000](matrix [row 1])
[-0.795892, 0.376324, 0.474275, 0.000000](matrix [row 2])
[-0.000000, 0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L UpperarmTwi
st2 [LUt2].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.004634, 1.115929, 0.095111, 0.000000](matrix [row 0])
[-0.500831, 0.083007, -0.998320, 0.000000](matrix [row 1])
[-1.001755, -0.046662, 0.498674, 0.000000](matrix [row 2])
[-0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.004138, 0.996379, 0.084922, 0.000000](matrix [row 0])
[-0.447177, 0.074115, -0.891370, 0.000000](matrix [row 1])
[-0.894436, -0.041663, 0.445251, 0.000000](matrix [row 2])
[-0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L UpperarmTwi
st1 [LUt1].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.004634, 1.115929, 0.095111, 0.000000](matrix [row 0])
[-0.500831, 0.083007, -0.998321, 0.000000](matrix [row 1])
[-1.001755, -0.046662, 0.498674, 0.000000](matrix [row 2])
[-0.000000, -0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.004138, 0.996379, 0.084922, 0.000000](matrix [row 0])
[-0.447177, 0.074115, -0.891370, 0.000000](matrix [row 1])
[-0.894436, -0.041663, 0.445251, 0.000000](matrix [row 2])
[-0.000000, -0.000000, 0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC Head [Head].

Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.010768, -1.020762, -0.000966, 0.000000](matrix [row 0])
[1.020762, 0.010769, -0.001188, 0.000000](matrix [row 1])
[0.001198, -0.000954, 1.020818, 0.000000](matrix [row 2])
[0.000000, 0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.010548, -0.999944, -0.000946, 0.000000](matrix [row 0])
[0.999944, 0.010549, -0.001164, 0.000000](matrix [row 1])
[0.001174, -0.000934, 0.999999, 0.000000](matrix [row 2])
[0.000000, 0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC L ForearmTwis
t2 [LLt2].
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[-0.463168, 1.007400, 0.016432, 0.000000](matrix [row 0])
[-0.485812, -0.207456, -0.974986, 0.000000](matrix [row 1])
[-0.882673, -0.414436, 0.527997, 0.000000](matrix [row 2])
[0.000000, 0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[-0.417684, 0.908471, 0.014819, 0.000000](matrix [row 0])
[-0.438104, -0.187083, -0.879241, 0.000000](matrix [row 1])
[-0.795993, -0.373737, 0.476147, 0.000000](matrix [row 2])
[0.000000, 0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:Bad bone extra matrix for bone NPC Spine2 [spn2]
.
Attempting to fix... but bone transform
may be incompatible with existing animations.
niftools.blender.export:WARNING:old invalid matrix:
[0.000003, -1.049166, -0.139389, 0.000000](matrix [row 0])
[1.058385, 0.000003, -0.000001, 0.000000](matrix [row 1])
[0.000001, -0.139389, 1.049166, 0.000000](matrix [row 2])
[0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])
niftools.blender.export:WARNING:new valid matrix:
[0.000002, -0.991290, -0.131700, 0.000000](matrix [row 0])
[1.000000, 0.000002, -0.000001, 0.000000](matrix [row 1])
[0.000001, -0.131700, 0.991290, 0.000000](matrix [row 2])
[0.000000, -0.000000, -0.000000, 1.000000](matrix [row 3])

 

 

Then I when I tried to re-import new nif file, I didnt see any warning or error messages. The nif was loaded fine but Im not sure it was good or damaged. (the mesh was looking worse than before)

Edited by meo02001
Link to comment
Share on other sites

As I though. I will take a look at the file myself once I finish up. I suspect that a normalised matrix was expected i.e values between 0.0 - 1.0 and values > 1.0 are causing the issues. It may involve manual editing of the bones. Not sure how much it will affect the animations. But bottom line is whatever was used to generate the meshes was buggy. Wonder how the game corrects for this?

 

Also is this meo, or a meo clone?

Edited by neomonkeus
Link to comment
Share on other sites

As I though. I will take a look at the file myself once I finish up. I suspect that a normalised matrix was expected i.e values between 0.0 - 1.0 and values > 1.0 are causing the issues. It may involve manual editing of the bones. Not sure how much it will affect the animations. But bottom line is whatever was used to generate the meshes was buggy. Wonder how the game corrects for this?

 

I tried to modify the mod and ignore the warning, then when I tested it in-game skyrim, the mod/mesh didnt look smooth and it was really ugly.

 

Also is this meo, or a meo clone?

 

Eh? I dont understand what did you mean >_<

Link to comment
Share on other sites

Seems like you maybe out of luck on this end.... sorry I could not be of more help. Blame whatever wrote created the original nif. Perhaps you could ask the author if they have the files made available in non-nif format?

 

Also the meo I am thinking of uses Max, unless I finally convinced him...er you to convert to Blender :P

Link to comment
Share on other sites

  • Recently Browsing   0 members

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