KillzXGaming / Switch-Toolbox

A tool to edit many video game file formats
GNU General Public License v3.0
946 stars 151 forks source link

BNVIB file from Mario Tennis Aces vibs.narc fails to decompress (BASE ONLY?) #77

Closed LolHacksRule closed 4 years ago

LolHacksRule commented 5 years ago

The file Audio_Bam_1.bnvib from vibs.narc in the game's files is pre-decompressed to completely empty in Switch Toolbox, every other file is decompressed correctly, will this be fixed? Here's the file that exported fine from Aluigi's MTA NARC decompression script (http://aluigi.org/bms/mario_tennis_narc.bms) and RTB's decompression script (https://mega.nz/#!i5h03IRB!s7BYtPqmW9R4Vww1u_En-e24qbSXsnIwiCqgbwSASjU). Audio_Bam_1.bnvib

Oh and here's the file containing them. vibs.narc

KillzXGaming commented 5 years ago

From what i can tell, it's failing to decompress with zlib, not sure why though.

LolHacksRule commented 5 years ago

Oh, its not compressed by ZLib, its compressed by GZip.

KillzXGaming commented 5 years ago

But it doesn't have the gzip magic, and other files work fine

LolHacksRule commented 5 years ago

No, it does, I compressed the extracted file with GZip on my own to check and I saw similar data when comparing its hexes with the hexes of the compressed file from the game. Audio_Bam_1_mycomp.bnvib.txt

image

LolHacksRule commented 5 years ago

This still isn't fixed. Please respond.

KillzXGaming commented 5 years ago

If i had a fix for this, it would've been fixed already. I have already looked into this, the c# deflatestream simply doesn't work with that particular file.

KillzXGaming commented 4 years ago

These should be fixed