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: 15

SolatoroboHacking

Member
Newcomer
Joined
Jul 18, 2023
Messages
12
Trophies
0
Age
19
XP
124
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
  • ZeroT21 @ ZeroT21:
    No way, Switch pro will be next
  • realtimesave @ realtimesave:
    hello silly pirate soldiers :)
    +1
  • realtimesave @ realtimesave:
    @SylverReZ NIntendo pretty much has to release a new console by next year in order to keep making moneys imo
    +1
  • SylverReZ @ SylverReZ:
    Ninty can still make money filing false DMCAs.
    +1
  • realtimesave @ realtimesave:
    they need to have a strong line up on the launch titles too. I think they should move metroid prime 4 to the next console because by now it has been quite a while and there's no release date scheduled yet
  • realtimesave @ realtimesave:
    lol there's a guy selling mig switch in usa on ebay for $200/ea he's definitely going to get nailed with dmca by tomorrow
  • ZeroT21 @ ZeroT21:
    Wasn't Metroid Prime 4 teased all the way back in 2017? For the switch no less?
    :rofl2:
  • ZeroT21 @ ZeroT21:
    Pretty sure anyone buying the switch just for that got duped
  • realtimesave @ realtimesave:
    for $200? rofl.
  • realtimesave @ realtimesave:
    well as far as metroid prime 4 is concerned, the next system probably is similar enough to the current gen they can probably easily just slap it onto a next gen cart and call it good :P
  • K3Nv2 @ K3Nv2:
    The switch was about 350 in 2017
  • Metoroid0 @ Metoroid0:
    mabe where you live
  • K3Nv2 @ K3Nv2:
    Nintendo president Tatsumi Kimishima took the stage at the outset to reveal that Switch will launch globally on March 3, 2017 for $299.99—earlier than some had expected at the price many suspected. https://time.com/4632820/nintendo-switch-nx/
  • Psionic Roshambo @ Psionic Roshambo:
    The NES launched at like 250 and the rob and light gun kit was like 350 or something
  • Psionic Roshambo @ Psionic Roshambo:
    I was near the test market for the NES and man did it make my 2600 look like ass lol
  • K3Nv2 @ K3Nv2:
    There has to be some mutual agreement with them all anything over $600 is just pc territory
  • realtimesave @ realtimesave:
    next system rumored to launch at $400
  • realtimesave @ realtimesave:
    but I don't really believe any rumors yet
  • realtimesave @ realtimesave:
    need to have official info from N
  • Psionic Roshambo @ Psionic Roshambo:
    The 3DO and Neo Geo where like 700 bucks hmm the PS3 was stupid expensive at launch lol
  • Psionic Roshambo @ Psionic Roshambo:
    But at least the PS3 was only 500 for the cheapest one at launch
    Psionic Roshambo @ Psionic Roshambo: But at least the PS3 was only 500 for the cheapest one at launch