Hacking ROM Hack Project [ACWW] LZ77 compressed texts, have you already seen it ?

Pikario

New Member
OP
Newbie
Joined
Mar 7, 2023
Messages
4
Trophies
0
XP
41
Country
France
Hello!

I'm currently trying to extract all the texts from Animal Crossing Wild World, I used Tinke to browse the ROM content and I found the texts under the folder "script", all of them are .bmg files. I extracted them with Tinke and openned them with my text editor (Kate). I can see they are texts but the encoding seems incorrect, I tried all the ones available in the editor without success.
I noticed all the files begin with this characters : "LZ77÷", so they are LZ77 compressed? I know the principles of the algorithm, I tried some decompressor but it didn't work.
Here is a screenshot of a file in Kate:

1700175852742.png


Have you already encountered similar files? I attach a bmg (I changed the extension to txt) to this post.
 

Attachments

  • bbs_pelican.txt
    5.8 KB · Views: 20

SolatoroboHacking

Member
Newcomer
Joined
Jul 18, 2023
Messages
12
Trophies
0
Age
19
XP
135
Country
United States
Yes, you need to run that through an LZ77 decompressor. These tools are excellent, and will work with every variant of LZ77 compression used by the DS. Try running it through these tools until you get a decompressed file that gives no errors and/or has no garbled text.

Edit: It also looks as though these files don't quite use standard headers, so you might have to mess around with a hex editor a bit. The header is probably supposed to be 0x10 followed by the uncompressed file size in three bytes. That information is probably in there somewhere, you just might need to dig a bit to find it.
 
Last edited by SolatoroboHacking,
  • Like
Reactions: Pikario

Pikario

New Member
OP
Newbie
Joined
Mar 7, 2023
Messages
4
Trophies
0
XP
41
Country
France
Thank you for your help and information! I've managed to make my own decompressor for Wild World files, based on the tools you mentioned.
Here is the source code, if it can help someone in the future: Pikari0/ACWW_texts_decompressor on GitHub (it seems I can't post full links as a new user)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    I'm late for the bbq sauce discussion and I have opinions
  • Sicklyboy @ Sicklyboy:
    Sweet Baby Rays is like baseline for a decent/good bbq sauce, but nothing outright incredible
    +1
  • Sicklyboy @ Sicklyboy:
    Stubbs is a pretty damn good sauce that I think you'll find on most grocery shelves as I don't think it's regional
  • Sicklyboy @ Sicklyboy:
    This shit though
  • Sicklyboy @ Sicklyboy:
    Best bbq sauce I've ever bought on a grocery store shelf
  • Sicklyboy @ Sicklyboy:
    smokey flavor that reminds me of beef jerkey on top of a really rich kind of bbq sauce. Heat level that is a nice zing, not overwhelming, but it tingles all the way down your throat
    +1
  • K3Nv2 @ K3Nv2:
    50% closer to getting my teeth fixed
    +4
  • K3Nv2 @ K3Nv2:
    I'm at the grace gods of my insurance fucking me over
  • K3Nv2 @ K3Nv2:
    I was like is this the way out, oh probably there's a giant exit sign
  • BigOnYa @ BigOnYa:
    We all should have free health, dental, vision care, and make the college kids pay for the schooling, f that college forgiveness plan our govt doing now, its really not fair for all others in the past that had to pay for they're schooling anyways (like me, with 2 kids I paid to send to college in the past)
  • mthrnite @ mthrnite:
    whynotboth.jpg
    +2
  • BigOnYa @ BigOnYa:
    True, very true
  • Sicklyboy @ Sicklyboy:
    I think we should outlaw healthcare entirely because the fact that people can get healthcare today is unfair to those in the past that couldn't
    +2
  • BigOnYa @ BigOnYa:
    Lol
  • mthrnite tempBOT: @ mthrnite
    smacks Sicklyboy around a bit with a large leech
  • Sicklyboy @ Sicklyboy:
    Howdy @mthrnite , great to see you :D
  • mthrnite @ mthrnite:
    hola mi hermano
  • cearp @ cearp:
    @Sicklyboy - the comparison would be forgiving all medical debt, not making healthcare illegal!
  • cearp @ cearp:
    Although I still don't agree, medical debt is rarely a choice, whereas enrolling in university is certainly a choice
  • mthrnite @ mthrnite:
    we need more smart cats tho for reals
  • Sicklyboy @ Sicklyboy:
    College costs, college loans, book prices, the entire thing is predatory, oft touted as essential to a successful life for my generation and the ones since, and completely unaffordable without putting you through an insane financial hardship for literal decades in many situations.
  • Sicklyboy @ Sicklyboy:
    Many of the same issues can be seen for the insanely predatory healthcare and health insurance system in the US
    Sicklyboy @ Sicklyboy: Many of the same issues can be seen for the insanely predatory healthcare and health insurance...