KillzXGaming / Switch-Toolbox

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

Add support for large WTA files (Go Vacation + possibly other Switch games) #181

Closed AtomicLugia closed 4 years ago

AtomicLugia commented 4 years ago

I found some WTA files, which are very huge. They're likely archives that I can't open. It seems that the large WTA files found in Go Vacation contains all the outfits and other stuffs from that game. They can be found in the ROM of Go Vacation in: "Romfs\Raw\Character*.wta"

KillzXGaming commented 4 years ago

Do they have a wtb file too? Astral chain actually had wta/wtb for textures though i haven't checked go vacation games files. Maybe send a sample?

AtomicLugia commented 4 years ago

They come without *.WTB files. They're also pretty huge. There's "all_model_pack.wta", which is 30 megs and "all_model_pack_tex.wta", which is almost a gig.

Here's one of them: https://www.dropbox.com/s/11rw5hb25do6ko1/all_model_pack.wta?dl=0

KillzXGaming commented 4 years ago

I see. It's a giant archive and the file data is zlibbed.

KillzXGaming commented 4 years ago

Capture

Added support.

KekMcGee commented 4 years ago

all_model_pack_tex.wta is decompressed by default, which toolbox is refusing to open. just in case it's needed https://mega.nz/#!opQxQCrS!FAKfhaJY-AXMV0NBOV66Dy3lLDXPBAw_vsEItS-78B8

AtomicLugia commented 4 years ago

I can't open it either, it shows an error message

KillzXGaming commented 4 years ago

Wow this format is starting to make less sense to me. I cannot get the data offsets correct for that one.

AtomicLugia commented 4 years ago

They're definitely the textures for the models in all_model_pack.wta, since they don't have any textures.

AtomicLugia commented 4 years ago

Will it be possible to access these files, too? We're so close.

KillzXGaming commented 4 years ago

Fixed https://github.com/KillzXGaming/Switch-Toolbox/commit/5ce973f3e77f5d9907c349f6297f387040ce6a1d

AtomicLugia commented 4 years ago

I can finally open the large "all_model_pack_tex.wta" file. I managed to extract everything from this file. However, most of these files are just "File XXXX" files that contains mostly a garble of chinese letters (probably encrypted or buggy extraction). Also, some BNTX files can't be opened, it shows another exception. Maybe the extraction process isn't completly working here. I included some files as an example here. But this is definitely a step closer! bruh.zip

KillzXGaming commented 4 years ago

All files should now open https://github.com/KillzXGaming/Switch-Toolbox/commit/43d0a498b5a0c6c2bc702793c54c897192d94d20

AtomicLugia commented 4 years ago

It works like a charm! There are only very few files labelled "File XXXX" which won't work but it's basically nothing compared to all the files that work. However, when I try to extract all files from the large WTA file, an annoying exception occurs when it comes to one of these "files", which makes it impossible to extract the entire archive. A workaround could be a way to select multiple files within the archive to extract all of them except the "File XXXX" files or just ignoring all files during extraction that starts with "File" to avoid exceptions.