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
  • cearp @ cearp:
    Even sugar free isn't good, as the acid is bad enough.
  • cearp @ cearp:
    oh earlier than 15 Ken, babies, children can get decay
  • K3Nv2 @ K3Nv2:
    So dentists give. Us these caps that'll last a few years to fight thrm
  • K3Nv2 @ K3Nv2:
    Yeah but babies get a new set
  • K3Nv2 @ K3Nv2:
    Screw godfor not giving us a new adult set after we mess up
    +2
  • cearp @ cearp:
    "You listening up there big guy?"
  • BigOnYa @ BigOnYa:
    Just smoke meth, all your dental problems will go away.
    +2
  • K3Nv2 @ K3Nv2:
    Even steven
  • cearp @ cearp:
    I wonder why edibles haven't caught on for meth
  • K3Nv2 @ K3Nv2:
    Locked down from government to dispensary
  • BigOnYa @ BigOnYa:
    In India it has, can't remember what its called yuka I think, they have a crisis like we have with fentanal
  • K3Nv2 @ K3Nv2:
    That's why we need regulation :teach:
  • SylverReZ @ SylverReZ:
    @BigOnYa, Speak to Psi, he'll offer you some in Tempycoin. :tpi:
    +1
  • OGSniper @ OGSniper:
    Day after day, we drink beer, Night after night my heartbeat shows the fear
    +1
  • K3Nv2 @ K3Nv2:
    Beer can be bad for your teeth
  • OGSniper @ OGSniper:
    Teeth? What Teeth?
  • SylverReZ @ SylverReZ:
    @K3Nv2, Do crack instead. Beer is more of a depressant.
  • OGSniper @ OGSniper:
    I like taking trips without even leaving my house, if ya know what I mean.
  • K3Nv2 @ K3Nv2:
    My hygienist name is Jose I'm like fuck Juan found me
    +2
  • BigOnYa @ BigOnYa:
    Did he ask to see yo feet?
  • K3Nv2 @ K3Nv2:
    Teeth
  • K3Nv2 @ K3Nv2:
    Juan's second cousin obsessed with teeth
    +1
  • BigOnYa @ BigOnYa:
    Did you wake up with your belt un-buckled?
  • K3Nv2 @ K3Nv2:
    Let me lift you up in my chair
    K3Nv2 @ K3Nv2: Let me lift you up in my chair