Hacking ROM Hack LZ77 and Huffman Compression tools

TwoSpikedHands

Member
OP
Newcomer
Joined
Jul 21, 2017
Messages
13
Trophies
0
Age
27
XP
98
Country
United States
Does anyone happen to know of any tools that can compress data in a 1-1 ratio with the GBA? So far I have been using these tools by CUE (which are AMAZING) - but if I decompress data then recompress it (without modifying it) the data somehow is not exactly the same

Here's a bit of context:

Below on the left is some data that was decompressed using ONLY huffman algo
Below on the right is data that was decompressed with both huffman, then lz77, unmodified, then recompressed using lz77

COMPARISON.png



To my knowledge this should be the exact same data since the decompressed data using the same huffman and lz77 compression tools looks exactly the same as it does in game:

COMPARISON2.png


There's likely something I'm overlooking at the moment, does anyone happen to know what I'm missing? I know for a fact that the decompression tools are working perfectly, it just appears that when I try to re-compress that same exact data is when I start to get issues... I don't know a whole lot about what I'm doing but I've tried quite a few things, including compressing it back with each and every single parameter possible within the command - but nothing is able to replicate the same exact data back. It's always SIMILAR, but the re-compressed data is never the same, and is typically longer than the original huffman decompressed data

A link to the tool I am using to compress/decompress is here:
https://www.romhacking.net/utilities/826/
 
Last edited by TwoSpikedHands,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    and I used neither my phone or my pc today
  • Xdqwerty @ Xdqwerty:
    I was out for most of the afternoon
  • Xdqwerty @ Xdqwerty:
    and the morning cuz school
  • Xdqwerty @ Xdqwerty:
    Although tomorrow is Labor Day which means I won't go to class which means I'll sleep well.
  • BakerMan @ BakerMan:
    is labor day different in venezuela than in america, or did time skip that far?
  • K3Nv2 @ K3Nv2:
    It must be the 1st already
  • BakerMan @ BakerMan:
    1st of what?
  • BakerMan @ BakerMan:
    may?
  • K3Nv2 @ K3Nv2:
    Oh yeah it's in September
  • Xdqwerty @ Xdqwerty:
    @BakerMan, yea i think its different
  • BakerMan @ BakerMan:
    ok, because here it's in september, right before the fuckin school year starts
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
    TwoSpikedHands @ TwoSpikedHands: Do I restart now using what i've learned on the EU version since it's a better overall...