alphazolam / fmt_nd_pak

Naughty Dog ".pak" model plugin for Rich Whitehouse's Noesis
37 stars 3 forks source link

Unsupported texture type: 755564544 | UnboundLocalError: local variable 'texData' referenced before assignment #4

Open alexjabka opened 9 months ago

alexjabka commented 9 months ago

Hello, when loading any model with Load Textures checked, human or simple prop - no matter, it pops this error. Game is TLOUP1.

Error: Unsupported texture type: 755564544
Traceback (most recent call last): File "E:\Games\The last of Us. Part 1_EXTRACT\noesisv4473\plugins\python\fmt_nd_pak.py", line 2721, in pakLoadModel pak.loadGeometry() File "E:\Games\The last of Us. Part 1_EXTRACT\noesisv4473\plugins\python\fmt_nd_pak.py", line 2514, in loadGeometry tex = self.loadVRAM(self.vrams[vramHash][0]) File "E:\Games\The last of Us. Part 1_EXTRACT\noesisv4473\plugins\python\fmt_nd_pak.py", line 1784, in loadVRAM return NoeTexture(texFileName, width, height, texData, noesis.NOESISTEX_RGBA32) UnboundLocalError: local variable 'texData' referenced before assignment

Jmvars commented 5 months ago

I get this as well. There was a fix suggestion in this issue but that did not work. At this point I'm trying to extract the model and get the textures separately but I have no idea how to do that.

alexjabka commented 5 months ago

I get this as well. There was a fix suggestion in this issue but that did not work. At this point I'm trying to extract the model and get the textures separately but I have no idea how to do that.

In the end I just exported textures with ninja ripper.

Jmvars commented 5 months ago

I get this as well. There was a fix suggestion in this issue but that did not work. At this point I'm trying to extract the model and get the textures separately but I have no idea how to do that.

In the end I just exported textures with ninja ripper.

I found a texture extractor and used that, so I'm good now as well.