Mario Tennis: Aces Update/Golf Super Rush *.Z4 (NEW MINOR COMPRESSION?)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Mario Tennis: Aces Update/Golf Super Rush *.Z4 (NEW MINOR COMPRESSION?)

Post by LolHacksRule »

As of some update I don't remember since I went straight for v3.1.0, a new compression algorithm is used for the shaders, going by the extension of Z4, it might be related to LZ4 but I don't know, can someone figure out decompressing it? I tried RTB's decompression script and got nowhere... Also Switch Toolbox doesn't help.
Last edited by LolHacksRule on Tue Jul 27, 2021 5:02 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mario Tennis: Aces Update *.Z4 (NEW MINOR COMPRESSION?)

Post by aluigi »

Code: Select all

comtype lz4
get DUMMY long  # 0x94
get SIZE long
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
get NAME basename
clog NAME OFFSET ZSIZE SIZE
LolHacksRule
Posts: 865
Joined: Fri Apr 20, 2018 12:41 am

Re: Mario Tennis: Aces Update *.Z4 (NEW MINOR COMPRESSION?)

Post by LolHacksRule »

I figured, thanks so much.