Skip to content

Black texture when opening NIF Bully file and error when trying to open NTF Bully file. #655

Description

@Theking1313

@niftools/blender-niftools-addon-reviewer -

Issue Overview

I can't open NFT files for Bully Scholarship Edition using the blender addon despite Nifskope and Noesis opening these textures fine.

Version Information

Blender Niftools Addon Version Info

Blender Niftools Addon - v0.1.1

Blender Version Info

3.6.5

Platform Information

Windows 10

Context

I try and load the nif file hoping it can auto load the textures from the nft file in same dir. It loads the model but the textures are black/missing despite the texture datablock or names in the blend file. If I try and load the NTF directly I get this error:

Reading .nft file
Game set to 'Games.BULLY_SE', but multiple games qualified
Importing data
Scale Correction set to 0.10000000149011612
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
Finished

I can export the textures one by one in Nifskope to the dir of nif but that is a pain to do for each model I want to view.

Steps to Reproduce

  1. I try and open a nif file directly and that all works fine but with black texture.
  2. Or I open the NFT file and get the error.

Expected Result

I hoped to see the textures when opening a NIF file.

Actual Result

I see black textures with the file name.

Possible Fix

Not sure

Screenshot

image

Logs and Files

niftools:WARNING:Texture 'S_Sweater_5_d.tga' not found or not supported and no alternate available
niftools:WARNING:Texture 'S_Sweater_5_s.tga' not found or not supported and no alternate available
niftools:WARNING:Texture 'S_Sweater_5_n.tga' not found or not supported and no alternate available
niftools:INFO:NIF file version: 14030009
niftools:INFO:Reading .nft file
niftools:WARNING:Game set to 'Games.BULLY_SE', but multiple games qualified
niftools:INFO:Importing data
niftools:INFO:Scale Correction set to 0.10000000149011612
pyffi.toaster:INFO:--- fix_scale ---
pyffi.toaster:INFO:  scaling by factor 0.100000
pyffi.toaster:INFO:  ~~~ NiSourceTexture [] ~~~
pyffi.toaster:INFO:    ~~~ NiStringExtraData [Filename] ~~~
pyffi.toaster:INFO:    ~~~ NiIntegerExtraData [NifPackMinorVersion] ~~~
pyffi.toaster:INFO:    ~~~ NiPixelData [] ~~~
pyffi.toaster:INFO:  ~~~ NiSourceTexture [] ~~~
pyffi.toaster:INFO:    ~~~ NiStringExtraData [Filename] ~~~
pyffi.toaster:INFO:    ~~~ NiIntegerExtraData [NifPackMinorVersion] ~~~
pyffi.toaster:INFO:    ~~~ NiPixelData [] ~~~
pyffi.toaster:INFO:  ~~~ NiSourceTexture [] ~~~
pyffi.toaster:INFO:    ~~~ NiStringExtraData [Filename] ~~~
pyffi.toaster:INFO:    ~~~ NiIntegerExtraData [NifPackMinorVersion] ~~~
pyffi.toaster:INFO:    ~~~ NiPixelData [] ~~~
niftools:WARNING:Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
niftools:WARNING:Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
niftools:WARNING:Skipped unsupported root block type '<class 'nifgen.formats.nif.nimain.niobjects.NiSourceTexture.NiSourceTexture'>' (corrupted nif?).
niftools:INFO:Finished

Here is the files I tried.

https://filebin.net/7vzsztrrnvxmh0xq

Additional Information

I've tried many files,

Metadata

Metadata

Assignees

Labels

BugIssue with specific functionality not working as intended but overall plugin is working.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions