ROM Hack Translation Help decompressing Wiiware (.wad) files

eviltrainer

Well-Known Member
OP
Newcomer
Joined
Sep 13, 2009
Messages
52
Trophies
1
XP
127
Country
Brazil
Hey all!

I'm trying to translate the Wiiware title Castlevania the Adventure Rebirth to my language and I managed to extract all of its contents, but I don't seem to find a way to decrypt what was extracted. Does anyone know how to handle these ".l" files? It's clear they must mean some kind of compression/encrypting because we can see the true filetype in the filenames itself...

1720014274919.png


We can see in the picture that we have a bunch of psb and a few csv files, but they're actually archived as some weird ".l" file. If that's a noob question, please nevermind me because I am actually a noob at Wiiware rom hacking (in fact, that's the 1st time ever I'm trying this!).

Any help is greatly appreciated! Thanks!
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,949
Trophies
3
Age
38
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
10,046
Country
Cyprus
If you open one of them in a hex editor do you see LZ77 at the beginning?

Edit: if so, use this tool
https://github.com/xflak/lz77helper

Edit2: or just open one of the files with LZ77 helper and it will say if it has LZ77 encryption or not, if it does u can decrypt
 
Last edited by XFlak,
  • Like
Reactions: eviltrainer

eviltrainer

Well-Known Member
OP
Newcomer
Joined
Sep 13, 2009
Messages
52
Trophies
1
XP
127
Country
Brazil
If you open one of them in a hex editor do you see LZ77 at the beginning?

Edit: if so, use this tool
https://github.com/xflak/lz77helper

Edit2: or just open one of the files with LZ77 helper and it will say if it has LZ77 encryption or not, if it does u can decrypt
1720034609596.png


I'm afraid it doesn't have the Lz77 compression. I already tried using ShowMiiWads, Switch Toolbox and Kuriimu/Kuriimu2 to try and decompress it but the former tells me right away the file isn't compressed with Lz77. However, the arc file where this whole list of files is located, does have lz77 in its name.

1720034796095.png


I also tried uncompressing this arc file with with these tools and ShowMiiWads also returned me a "this file is not lz77 compressed" error.
Post automatically merged:

Just confirmed: Lz77 Helper also states these files aren't compressed. But if they are not, why do the devs named them with the compression name? It doesn't make sense to me at all.
Post automatically merged:

So, turns out it was just a simple ZLIB compression! 😁

1720097027677.png


So, an equally simple and straight-forward python script did the trick!

1720097272819.png


Although the script still keeps the weird .l extension in the decompressed file, it'll work properly like it is supposed to (in the example above, just a regular and ready to be edited csv).

So, with that taken care of, I'll edit the title of this post with the current status of my request: How do I even start manipulating a .psb file? I can't find the whole game's text inside those few csv files so I'm guessing they're either inside those .psb files (which means they're not a photoshop file like my Google search queries return) or inside other files in the U8 archives.
 
Last edited by eviltrainer,

Larsenv

Dr. Wii, Ph.D
Member
Joined
Sep 28, 2013
Messages
907
Trophies
2
Website
larsenv.xyz
XP
3,441
Country
United States
If you open one of them in a hex editor do you see LZ77 at the beginning?

Edit: if so, use this tool
https://github.com/xflak/lz77helper

Edit2: or just open one of the files with LZ77 helper and it will say if it has LZ77 encryption or not, if it does u can decrypt
typically the wii menu is the only program which puts lz77 at the beginning of the header otherwise first byte would be 0x11 or 0x10
 

eviltrainer

Well-Known Member
OP
Newcomer
Joined
Sep 13, 2009
Messages
52
Trophies
1
XP
127
Country
Brazil
typically the wii menu is the only program which puts lz77 at the beginning of the header otherwise first byte would be 0x11 or 0x10
Well, I have a bunch of LZ77_homeBtn arc files (one for each language and a general one) and it seems they're only named after Lz77 because when I tried to decompress them, all my tools returned an error claiming they're actually not compressed. But there's also a Huf8_HomeButtonSe arc file (the "Se" here stands for sound effects, I suppose?)

Anyways, now I know I don't have to deal with this since it's just a menu thing. What I'm really trying to achieve here is finding the text and textures so I can edit and translate them. So far, I ran into a bunch of files that I simply can't find any info about anywhere. These would be:

.psb files (I'm assuming it's a archive for textures and I need a way to open it. Google search returns it as a Photoshop file but I think it's just a homonym situation)

.ovl

.hrendbsp

.hrenderror

.hrendmesh

.loadcells

.hit

.rnd

.dgf

I'm currently stuck at how to handle these file formats in Wiiware titles, so any help here is greatly appreciated!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: You have a baby gun