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

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
  • AncientBoi @ AncientBoi:
    :cry: You arent'? :cry:
  • AncientBoi @ AncientBoi:
    [tells my mom not to send you anymore Christmas presents] :evil: :rofl2: :tpi:
  • Xdqwerty @ Xdqwerty:
    im a minor
  • AncientBoi @ AncientBoi:
    So. I'm a Major
  • Xdqwerty @ Xdqwerty:
    im under 18
  • AncientBoi @ AncientBoi:
    I'm waaaaaaaaaay over 18. lol
  • Xdqwerty @ Xdqwerty:
    that makes you a pedo
  • AncientBoi @ AncientBoi:
    Pedo = 1. child 2. boy 3. ? I forgot. But I wish I were still a "Boy" :sad::cry::cry::cry:
  • Xdqwerty @ Xdqwerty:
    i meant simping over someone under 18 while you are over 18 makes you a pedophile
  • AncientBoi @ AncientBoi:
    And when did I "simp" you?
  • AncientBoi @ AncientBoi:
    Just go make me the darn coffee :angry:
  • AncientBoi @ AncientBoi:
    Tea?
  • AncientBoi @ AncientBoi:
    LoL lmao
  • AncientBoi @ AncientBoi:
    L8er dude. going to watch YT's on the Ukraine/ruskie war.
    +1
  • Xdqwerty @ Xdqwerty:
    @AncientBoi,tbh i think im
    not interested in whats going on irl
  • BakerMan @ BakerMan:
    tomorrow's memorial day, so i've been looking for a playlist, but it's all just country and alternative rock
  • Xdqwerty @ Xdqwerty:
    @BakerMan, memorial day for who?
  • BakerMan @ BakerMan:
    why the hell can't i find one with a song about the soldiers who died in battle, the very reason we celebrate
  • Sonic Angel Knight @ Sonic Angel Knight:
    Bake them a cake :ninja:
    +1
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    I can change my name back tomorrow
  • Xdqwerty @ Xdqwerty:
    @a_username_that_isnt_cool, what will your new username be?
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    My original one
    +1
  • RedColoredStars @ RedColoredStars:
    Stayin inside for memorial day. Just like other holidays, most people dont care or think about the actual reasons behind it. For most it's just another reason to get shit faced drunk and spout off hyper-patriotic nonsense. The Trumpers around here going to be out in full force with their trucks and guns and flags making noise all over town. Hard pass.
    RedColoredStars @ RedColoredStars: Stayin inside for memorial day. Just like other holidays, most people dont care or think about...