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

Error exporting Skyrim SE nif #628

Open
ThePagi opened this issue Jan 25, 2024 · 3 comments
Open

Error exporting Skyrim SE nif #628

ThePagi opened this issue Jan 25, 2024 · 3 comments
Assignees
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working.

Comments

@ThePagi
Copy link

ThePagi commented Jan 25, 2024

Issue Overview

The following error appears when trying to export a nif file that was previously imported without any modifications.

Python: Traceback (most recent call last): File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\base_struct.py", line 240, in validate_instance f_type.validate_instance(cls.get_field(instance, f_name), context, *f_arguments) File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\formats\base\basic.py", line 86, in validate_instance assert (instance == cls.from_value(instance)) AssertionError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\base_struct.py", line 240, in validate_instance
f_type.validate_instance(cls.get_field(instance, f_name), context, *f_arguments)
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\base_struct.py", line 242, in validate_instance
raise ValueError(f"Validation failed on {cls_name}.{f_name}")
ValueError: Validation failed on ByteColor4.g

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\base_struct.py", line 240, in validate_instance
f_type.validate_instance(cls.get_field(instance, f_name), context, *f_arguments)
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\array.py", line 228, in validate_instance
f_type.validate_instance(cls.get_field(instance, f_name), context, *f_arguments)
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\base_struct.py", line 242, in validate_instance
raise ValueError(f"Validation failed on {cls_name}.{f_name}")
ValueError: Validation failed on BSVertexDataSSE.vertex_colors

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\operators\nif_export_op.py", line 148, in execute
return NifExport(self, context).execute()
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\nif_export.py", line 271, in execute
data.validate()
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\formats\nif_init_.py", line 641, in validate
type(block).validate_instance(block, self, arg=0, template=None)
File "C:\Users\exist\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\io_scene_niftools\dependencies\nifgen\base_struct.py", line 242, in validate_instance
raise ValueError(f"Validation failed on {cls_name}.{f_name}")
ValueError: Validation failed on BSTriShape.vertex_data

Version Information

Blender Niftools Addon Version Info

0.1.1 (latest in releases)

Blender Version Info

3.6.5
Tried also with Blender 4.0 - that also had an error while importing

Platform information

Windows laptop, old intel i5, nvidia 1050ti

Steps to Reproduce

Import nif file, attempt to export again

Nif File

Cannot share the files, but it's vanilla Skyrim models, for example meshes\clutter\table01.nif

@ThePagi ThePagi added the Bug Issue with specific functionality not working as intended but overall plugin is working. label Jan 25, 2024
@Candoran2
Copy link
Member

This seems to be the same issue faced in #617 (not the initial one but the one that's fixed by RGBA attribute removal).

@ThePagi
Copy link
Author

ThePagi commented Jan 27, 2024

Can confirm that removing RGBA color attribute (vertex colors) fixes the export.

@Orfey1
Copy link

Orfey1 commented Jul 19, 2024

I have the same problem but my file has no RGBA color attribute or anything else inside Vertex Colors. What do I do?

@github-project-automation github-project-automation bot moved this to Done but not released in Mesh System Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working.
Projects
Status: Done but not released
Development

No branches or pull requests

4 participants