Closed emperor06 closed 6 years ago
SharpZipLib is working correctly. FtexTool does some assumptions to work with a majority of the files and this one gets handled incorrectly. This .ftex file has an unknown flag which just 3% of all the ftex files have set. The error could be related to not handing that flag correctly.
I had to change the code a little bit to convert that texture to DDS and back to ftex again. But I can't commit it right now as I'd have to test if the change breaks unpacking the remaining 97% of the files. Result: c681a9ba4f51.jpg NSFW
See this patch file for the change I made: fix.zip
Any update on this issue? Encountered this same error when modding MGSTPP.
The original c681a9ba4f51.ftex file from texture0.dat unpacks without issues. (even with FtexTool version v0.3). The one you uploaded got corrupted. If you can reproduce this issue with an unmodified file please reopen this issue.
I'm getting a consistant crash while trying to convert a few specific ftex files. Those textures render well in-game. It seems that SharpZipLib doesn't like the header. While it may be a bug in SharpZipLib, I think it's best to let you know.
Here's the error (ftex file attached)
texture.zip