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
379 stars 103 forks source link

Unable to open NIF file #587

Closed serverandenforcer closed 8 months ago

serverandenforcer commented 12 months ago

@niftools/blender-niftools-addon-reviewer -

Before creating a new issue, ensure that

The issue will get closed off immediately as invalid if

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

Issue Overview

**Unable to open NIF file in Blender.

Version Information

Blender Niftools Addon Version Info

blender_niftools_addon-v0.1.0-2023-06-20-43341a10

Blender Version Info

2.83

Platform information

Windows 64 Home

Context

**[Attempting to open a .nif file from Star Trek Bridge Commander due to missing texture files of a model. Upon attempting to import the file into Blender, I receive the following message:

Traceback (most recent call last): File "C:\Users\David\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\operators\nif_import_op.py", line 134, in execute return NifImport(self, context).execute() File "C:\Users\David\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\nif_import.py", line 74, in execute self.load_files() # needs to be first to provide version info. File "C:\Users\David\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\nif_import.py", line 140, in load_files NifData.init(NifFile.load_nif(NifOp.props.filepath)) File "C:\Users\David\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\file_io\nif.py", line 60, in load_nif modification, (version, user_version, bs_version) = NifFormat.NifFile.inspect_version_only(nif_stream) File "C:\Users\David\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_niftools\dependencies\generated\formats\nif__init__.py", line 175, in inspect_version_only raise ValueError(f"Corrupted NIF file: header version string in {header_string} does not " ValueError: Corrupted NIF file: header version string in NetImmerse File Format, Version 3.1 does not correspond with header version field 2037411651

location: :-1 ]**

Expected Result

To succesfully import the file to edit]

Actual Result

[Describe what you currently experience from this process, and thereby explain the bug]

Possible Fix

[Optional, suggest fixes, improvement or reasons for the bug might have occurred]

Screenshot

[If relevant, include a screenshot]

gorn_battleship.zip