nifskope icon indicating copy to clipboard operation
nifskope copied to clipboard

Parsing Warnings on Save with Dev 9

Open AndalayBay opened this issue 1 year ago • 6 comments

Using Jon's Dev 9 recently released. Editing original Oblivion game mesh and got these errors when I saved it: iSourceTexture [5]: Could not find "Pixel Layout" subitem. NiSourceTexture [5]: Could not find "Use Mipmaps" subitem. NiSourceTexture [5]: Could not find "Alpha Format" subitem. NiSourceTexture [5]: Could not find "Unknown Byte" subitem. NiSourceTexture [5]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [17]: Could not find "Pixel Layout" subitem. NiSourceTexture [17]: Could not find "Use Mipmaps" subitem. NiSourceTexture [17]: Could not find "Alpha Format" subitem. NiSourceTexture [17]: Could not find "Unknown Byte" subitem. NiSourceTexture [17]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [23]: Could not find "Pixel Layout" subitem. NiSourceTexture [23]: Could not find "Use Mipmaps" subitem. NiSourceTexture [23]: Could not find "Alpha Format" subitem. NiSourceTexture [23]: Could not find "Unknown Byte" subitem. NiSourceTexture [23]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [29]: Could not find "Pixel Layout" subitem. NiSourceTexture [29]: Could not find "Use Mipmaps" subitem. NiSourceTexture [29]: Could not find "Alpha Format" subitem. NiSourceTexture [29]: Could not find "Unknown Byte" subitem. NiSourceTexture [29]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [34]: Could not find "Pixel Layout" subitem. NiSourceTexture [34]: Could not find "Use Mipmaps" subitem. NiSourceTexture [34]: Could not find "Alpha Format" subitem. NiSourceTexture [34]: Could not find "Unknown Byte" subitem. NiSourceTexture [34]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [39]: Could not find "Pixel Layout" subitem. NiSourceTexture [39]: Could not find "Use Mipmaps" subitem. NiSourceTexture [39]: Could not find "Alpha Format" subitem. NiSourceTexture [39]: Could not find "Unknown Byte" subitem. NiSourceTexture [39]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [44]: Could not find "Pixel Layout" subitem. NiSourceTexture [44]: Could not find "Use Mipmaps" subitem. NiSourceTexture [44]: Could not find "Alpha Format" subitem. NiSourceTexture [44]: Could not find "Unknown Byte" subitem. NiSourceTexture [44]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [49]: Could not find "Pixel Layout" subitem. NiSourceTexture [49]: Could not find "Use Mipmaps" subitem. NiSourceTexture [49]: Could not find "Alpha Format" subitem. NiSourceTexture [49]: Could not find "Unknown Byte" subitem. NiSourceTexture [49]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [55]: Could not find "Pixel Layout" subitem. NiSourceTexture [55]: Could not find "Use Mipmaps" subitem. NiSourceTexture [55]: Could not find "Alpha Format" subitem. NiSourceTexture [55]: Could not find "Unknown Byte" subitem. NiSourceTexture [55]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [60]: Could not find "Pixel Layout" subitem. NiSourceTexture [60]: Could not find "Use Mipmaps" subitem. NiSourceTexture [60]: Could not find "Alpha Format" subitem. NiSourceTexture [60]: Could not find "Unknown Byte" subitem. NiSourceTexture [60]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [65]: Could not find "Pixel Layout" subitem. NiSourceTexture [65]: Could not find "Use Mipmaps" subitem. NiSourceTexture [65]: Could not find "Alpha Format" subitem. NiSourceTexture [65]: Could not find "Unknown Byte" subitem. NiSourceTexture [65]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [70]: Could not find "Pixel Layout" subitem. NiSourceTexture [70]: Could not find "Use Mipmaps" subitem. NiSourceTexture [70]: Could not find "Alpha Format" subitem. NiSourceTexture [70]: Could not find "Unknown Byte" subitem. NiSourceTexture [70]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [75]: Could not find "Pixel Layout" subitem. NiSourceTexture [75]: Could not find "Use Mipmaps" subitem. NiSourceTexture [75]: Could not find "Alpha Format" subitem. NiSourceTexture [75]: Could not find "Unknown Byte" subitem. NiSourceTexture [75]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [80]: Could not find "Pixel Layout" subitem. NiSourceTexture [80]: Could not find "Use Mipmaps" subitem. NiSourceTexture [80]: Could not find "Alpha Format" subitem. NiSourceTexture [80]: Could not find "Unknown Byte" subitem. NiSourceTexture [80]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [86]: Could not find "Pixel Layout" subitem. NiSourceTexture [86]: Could not find "Use Mipmaps" subitem. NiSourceTexture [86]: Could not find "Alpha Format" subitem. NiSourceTexture [86]: Could not find "Unknown Byte" subitem. NiSourceTexture [86]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [92]: Could not find "Pixel Layout" subitem. NiSourceTexture [92]: Could not find "Use Mipmaps" subitem. NiSourceTexture [92]: Could not find "Alpha Format" subitem. NiSourceTexture [92]: Could not find "Unknown Byte" subitem. NiSourceTexture [92]: Could not find "Unknown Byte 2" subitem.

NIF version 20.0.0.5

AndalayBay avatar Nov 05 '23 03:11 AndalayBay

@AndalayBay, I will fix the errors and PR the fix to this repo. But for now, while it's not done, I guess you can still safely save 20.0.0.5 files, ignoring the messages. In this respect, Dev 9 behaves more or less the same as Dev 7 or older builds did, it's just more vocal about any "unclear" moments it encounters (it's my doing, the goal was to catch and eliminate as many as possible of those moments because some of them are clearly bugs).

Also, since I don't have Oblivion, could you attach any mesh that produces those errors so I could properly test the fix?

gavrant avatar Nov 07 '23 06:11 gavrant

Yes, I was able to save it despite all the warnings. It looks fine in the CS and in game. Here's the mesh: CheydinhalHouseMiddle03Interior.zip

Just change the textures to something else and hopefully that will produce the warnings. I believe I did a Save As... so I didn't overwrite the original texture.

AndalayBay avatar Nov 07 '23 22:11 AndalayBay

@AndalayBay I just tested your CheydinhalHouseMiddle03Interior.nif on this build: https://github.com/gavrant/nifskope/releases/tag/v2.0.dev9a , and could not reproduce the warning spam. Tried typing random stuff into texture paths, then saving the file, with no parsing warnings, So I hope the bug is gone there. Could you test it out too, just to make sure?

gavrant avatar Jul 28 '24 17:07 gavrant

No dice. I tried to change our custom copy of that mesh and got these errors when using Save As... NiSourceTexture [5]: Could not find "Pixel Layout" subitem. NiSourceTexture [5]: Could not find "Use Mipmaps" subitem. NiSourceTexture [5]: Could not find "Alpha Format" subitem. NiSourceTexture [5]: Could not find "Unknown Byte" subitem. NiSourceTexture [5]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [17]: Could not find "Pixel Layout" subitem. NiSourceTexture [17]: Could not find "Use Mipmaps" subitem. NiSourceTexture [17]: Could not find "Alpha Format" subitem. NiSourceTexture [17]: Could not find "Unknown Byte" subitem. NiSourceTexture [17]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [23]: Could not find "Pixel Layout" subitem. NiSourceTexture [23]: Could not find "Use Mipmaps" subitem. NiSourceTexture [23]: Could not find "Alpha Format" subitem. NiSourceTexture [23]: Could not find "Unknown Byte" subitem. NiSourceTexture [23]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [29]: Could not find "Pixel Layout" subitem. NiSourceTexture [29]: Could not find "Use Mipmaps" subitem. NiSourceTexture [29]: Could not find "Alpha Format" subitem. NiSourceTexture [29]: Could not find "Unknown Byte" subitem. NiSourceTexture [29]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [34]: Could not find "Pixel Layout" subitem. NiSourceTexture [34]: Could not find "Use Mipmaps" subitem. NiSourceTexture [34]: Could not find "Alpha Format" subitem. NiSourceTexture [34]: Could not find "Unknown Byte" subitem. NiSourceTexture [34]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [39]: Could not find "Pixel Layout" subitem. NiSourceTexture [39]: Could not find "Use Mipmaps" subitem. NiSourceTexture [39]: Could not find "Alpha Format" subitem. NiSourceTexture [39]: Could not find "Unknown Byte" subitem. NiSourceTexture [39]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [44]: Could not find "Pixel Layout" subitem. NiSourceTexture [44]: Could not find "Use Mipmaps" subitem. NiSourceTexture [44]: Could not find "Alpha Format" subitem. NiSourceTexture [44]: Could not find "Unknown Byte" subitem. NiSourceTexture [44]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [49]: Could not find "Pixel Layout" subitem. NiSourceTexture [49]: Could not find "Use Mipmaps" subitem. NiSourceTexture [49]: Could not find "Alpha Format" subitem. NiSourceTexture [49]: Could not find "Unknown Byte" subitem. NiSourceTexture [49]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [55]: Could not find "Pixel Layout" subitem. NiSourceTexture [55]: Could not find "Use Mipmaps" subitem. NiSourceTexture [55]: Could not find "Alpha Format" subitem. NiSourceTexture [55]: Could not find "Unknown Byte" subitem. NiSourceTexture [55]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [60]: Could not find "Pixel Layout" subitem. NiSourceTexture [60]: Could not find "Use Mipmaps" subitem. NiSourceTexture [60]: Could not find "Alpha Format" subitem. NiSourceTexture [60]: Could not find "Unknown Byte" subitem. NiSourceTexture [60]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [65]: Could not find "Pixel Layout" subitem. NiSourceTexture [65]: Could not find "Use Mipmaps" subitem. NiSourceTexture [65]: Could not find "Alpha Format" subitem. NiSourceTexture [65]: Could not find "Unknown Byte" subitem. NiSourceTexture [65]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [70]: Could not find "Pixel Layout" subitem. NiSourceTexture [70]: Could not find "Use Mipmaps" subitem. NiSourceTexture [70]: Could not find "Alpha Format" subitem. NiSourceTexture [70]: Could not find "Unknown Byte" subitem. NiSourceTexture [70]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [75]: Could not find "Pixel Layout" subitem. NiSourceTexture [75]: Could not find "Use Mipmaps" subitem. NiSourceTexture [75]: Could not find "Alpha Format" subitem. NiSourceTexture [75]: Could not find "Unknown Byte" subitem. NiSourceTexture [75]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [80]: Could not find "Pixel Layout" subitem. NiSourceTexture [80]: Could not find "Use Mipmaps" subitem. NiSourceTexture [80]: Could not find "Alpha Format" subitem. NiSourceTexture [80]: Could not find "Unknown Byte" subitem. NiSourceTexture [80]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [86]: Could not find "Pixel Layout" subitem. NiSourceTexture [86]: Could not find "Use Mipmaps" subitem. NiSourceTexture [86]: Could not find "Alpha Format" subitem. NiSourceTexture [86]: Could not find "Unknown Byte" subitem. NiSourceTexture [86]: Could not find "Unknown Byte 2" subitem. NiSourceTexture [92]: Could not find "Pixel Layout" subitem. NiSourceTexture [92]: Could not find "Use Mipmaps" subitem. NiSourceTexture [92]: Could not find "Alpha Format" subitem. NiSourceTexture [92]: Could not find "Unknown Byte" subitem. NiSourceTexture [92]: Could not find "Unknown Byte 2" subitem. I changed one of the stone parts to a different stone texture by selecting the texture from a folder.

AndalayBay avatar Jul 30 '24 10:07 AndalayBay

@AndalayBay I think I really fixed the warnings spam this time. Could you test it again with the latest release from https://github.com/gavrant/nifskope/releases ?

And if you have "Auto Sanitize before Save" option in "File" menu checked, I recommend you to turn it off. I did fix the Oblivion texture-related part of it now, but it had corrupted a few meshes for me over the years, so I have it off. That's why I could not reproduce this spam issue, I guess.

gavrant avatar Jul 30 '24 18:07 gavrant

I actually use the sanitize and optimize spells, so I have that enabled.

AndalayBay avatar Jul 30 '24 20:07 AndalayBay