Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NiPhysXScene not supported by nifxml #90

Open
7 tasks
MadeInLithuania opened this issue Nov 25, 2020 · 5 comments
Open
7 tasks

NiPhysXScene not supported by nifxml #90

MadeInLithuania opened this issue Nov 25, 2020 · 5 comments
Assignees

Comments

@MadeInLithuania
Copy link

@niftools/blender-niftools-addon-reviewer -

Before creating a new issue, ensure that

  • Read the user documentation.
  • Check that the issue hasn't already been reported.
  • Read through the list of Helpful resources links on the right-hand side.
  • Talk with the developers to ensure its a valid issue

The issue will get closed off immediately as invalid if

  • Looking for support where the forums, chat or documentation is more appropriate.
  • Goes off topic, loses focus or turns into a discussion.
  • Removing parts of the template the issue.

Fill out the template below to the best of your ability, including .blend files, nifs, logs; help us to help you.

Issue Overview

I'm trying to import a .nif file, but with every .nif file it returns that message :

Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_nif\dependencies\pyffi\formats\nif\__init__.py", line 1375, in read
    block = getattr(NifFormat, block_type)()
AttributeError: type object 'NifFormat' has no attribute 'NiPhysXScene'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\operators\nif_import_op.py", line 125, in execute
    return nif_import.NifImport(self, context).execute()
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\nif_import.py", line 73, in execute
    self.load_files()  # needs to be first to provide version info.
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\nif_import.py", line 140, in load_files
    NifData.init(NifFile.load_nif(NifOp.props.filepath))
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\file_io\nif.py", line 65, in load_nif
    data.read(nif_stream)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_nif\dependencies\pyffi\formats\nif\__init__.py", line 1378, in read
    "Unknown block type '%s'." % block_type)
ValueError: Unknown block type 'NiPhysXScene'.

location: <unknown location>:-1

Version Information

Blender Niftools Addon Version Info

2.6.0.dev4

Blender Version Info

2.8.1

Platform information

Windows 10

Steps to Reproduce

1- Import a .nif file
2- Get an error message.

Expected Result

I wanted to Blender to open the file.

Actual Result

I'm getting this message :

bpy.context.space_data.system_bookmarks_active = 1
Dev: Sys variable not set
Executing - Niftools : Blender Niftools Addon v0.0.2(running on Blender 2.81 (sub 16), PyFFI 2.2.4.dev4)
Importing C:\Users\User\Desktop\todo\natere_tree3001_01.nif
NIF file version: 14020008
Reading file
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_nif\dependencies\pyffi\formats\nif\__init__.py", line 1375, in read
    block = getattr(NifFormat, block_type)()
AttributeError: type object 'NifFormat' has no attribute 'NiPhysXScene'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\operators\nif_import_op.py", line 125, in execute
    return nif_import.NifImport(self, context).execute()
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\nif_import.py", line 73, in execute
    self.load_files()  # needs to be first to provide version info.
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\nif_import.py", line 140, in load_files
    NifData.init(NifFile.load_nif(NifOp.props.filepath))
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_niftools\file_io\nif.py", line 65, in load_nif
    data.read(nif_stream)
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\io_scene_nif\dependencies\pyffi\formats\nif\__init__.py", line 1378, in read
    "Unknown block type '%s'." % block_type)
ValueError: Unknown block type 'NiPhysXScene'.

location: <unknown location>:-1

Screenshot

Screenshot

Nif File

Nif file

Additional Information

I'm using :

  • Python 3.9
@neomonkeus
Copy link
Member

Not sure how you were able to assign labels. Need to look into that.

@neomonkeus
Copy link
Member

neomonkeus commented Nov 25, 2020

The issue is that NiPhysXScene blocks are not supported by the addon.
You can try an remove the offend block/tree in NifSkope to see if it passes import and readd post export.

@SubhadeepG
Copy link

The unknown block NiPhysXScene is not present inside the nif xml and even NifSkope could not open it. What game is this nif from?

@MadeInLithuania
Copy link
Author

The unknown block NiPhysXScene is not present inside the nif xml and even NifSkope could not open it. What game is this nif from?

It's from Dragonica, idk if you know this game.

@HENDRIX-ZT2 HENDRIX-ZT2 changed the title Can't import .nif file NiPhysXScene not supported by nifxml Oct 9, 2021
@neomonkeus neomonkeus transferred this issue from niftools/blender_niftools_addon Nov 22, 2021
@Candoran2
Copy link
Member

Candoran2 commented Nov 13, 2022

NiPhysXScene is denoted in the xml and NifSkope dev8, which uses a newer version of the xml, can open it just fine for me. Can this issue be closed or does it need to be transferred back to the niftools addon repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants