niftools / blender_niftools_addon

The Blender Niftools Addon is a Blender add-on to enable import and export of NetImmese File Formats including .nif, .kf, .egm.
http://www.niftools.org
Other
386 stars 104 forks source link

I encountered a problem exporting 'nif'. May I know how to resolve it. #589

Closed mirkiss closed 11 months ago

mirkiss commented 1 year ago

I encountered a problem exporting 'nif'. May I know how to resolve it.

Python: Traceback (most recent call last): File "C:\Users\Guenter\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\operators\nif_export_op.py", line 140, in execute return NifExport(self, context).execute() File "C:\Users\Guenter\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\nif_export.py", line 131, in execute self.version, data = scene.get_version_data() File "C:\Users\Guenter\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\modules\nif_export\scene__init__.py", line 53, in get_version_data user_version = b_scene.user_version if b_scene.user_version else b_scene.USER_VERSION.get(game, 0) AttributeError: 'Scene' object has no attribute 'USER_VERSION'

Traceback (most recent call last): File "C:\Users\Guenter\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\operators\nif_export_op.py", line 140, in execute return NifExport(self, context).execute() File "C:\Users\Guenter\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\nif_export.py", line 131, in execute self.version, data = scene.get_version_data() File "C:\Users\Guenter\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\modules\nif_export\scene__init__.py", line 53, in get_version_data user_version = b_scene.user_version if b_scene.user_version else b_scene.USER_VERSION.get(game, 0) AttributeError: 'Scene' object has no attribute 'USER_VERSION'

location: :-1


Blender 3.6 and 2.83.20 Python 3.11.2 nif file Version 20.3.0.9

@niftools/blender-niftools-addon-reviewer -

Chibgy commented 1 year ago

Same error is persistent with me, Only way I could get the error to not appear is by deleting texture's off my model, no clue if its relevant.

Blender 3.5 and 2.90.0 Python 3.10.10 nif file version 20.1.0.3

mirkiss commented 1 year ago

Try starting Blender in administrator mode

Chibgy commented 1 year ago

Try starting Blender in administrator mode

the error still appeared in administrator mode

Candoran2 commented 1 year ago

Could you post the .blend file you are trying to export the nif from, as per the template?

Chibgy commented 1 year ago

Could you post the .blend file you are trying to export the nif from, as per the template?

Blender 3.5 and 2.90.0 Python 3.10.10 nif file version 20.1.0.3 game: Shin Megami Tensei: Imagine

idle1.zip

jameswilddev commented 1 year ago

I'm seeing this too, please let me know if there's anything I can provide to help.

jameswilddev commented 1 year ago

It doesn't appear to be specific to any particular Blender version, I am able to reproduce the issue both on the most recent 3.6 and the oldest supported 2.82.

Candoran2 commented 1 year ago

I'm seeing this too, please let me know if there's anything I can provide to help.

I think we've got a fix for this already, but it would need to be pulled into the main repository and a release would have to be created.

mirkiss commented 1 year ago

您能否按照模板发布您尝试从中导出 nif 的 .blend 文件?

Blender 3.6 and 2.83.20 Python 3.11.2 nif file Version 20.3.0.9

Gamebryo version 2.3. The nif version exported with 3dmax9 is 20.3.0.9, which I have been using all along. However, it seems that there may be some issues with opening and exporting the plugin.

Here is my nif file @Candoran2 Oh, I saw you fixed it, thank you very much fs_chuanshuo6.zip

But there is a new issue. When importing, the prompt "Game set to 'Games. BULLY_SE', but multiple games qualified" will be displayed. Is this affected? @Candoran2

Candoran2 commented 1 year ago

But there is a new issue. When importing, the prompt "Game set to 'Games. BULLY_SE', but multiple games qualified" will be displayed. Is this affected? @Candoran2

That message is a simple warning message and should not affect the import process significantly.