Best Hex Compare Programs?

Discussion in 'Dumping and Backing Up Your Games and Prototypes' started by ExplodedHamster, Dec 13, 2015.

  1. ExplodedHamster

    ExplodedHamster Spirited Member

    Joined:
    Nov 26, 2015
    Messages:
    131
    Likes Received:
    145
    Hey Guys,

    Is there anyone who could point me to some downloadable hex compare software that will allow me to fully contrast my dumped protos roms with the final release versions? I have software that allows me to open the roms and observe the coding, but it's obviously way too big to make large-scale comparisons. Please keep in mind that I have Windows Death (Windows 8), so there may be limitations...

    Thanks!

    Sorry to update this so quickly...but I actually found that the program HxD works well to open up a couple of files one on top of the other, but I'm still trying to figure out how to get some actual analysis out of this program...Or is there no other way to find the number of differences than just going through them one by one?
     
    Last edited by a moderator: Dec 15, 2015
  2. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,031
    Likes Received:
    889
    On linux (or cygwin on Windows), this would print the differences as OFFSET, FILE1_value, FILE2_value, with offsets and values in hex.
    Code:
    cmp -l file1.bin file2.bin | gawk '{printf "%08X %02X %02X\n", $1-1, strtonum(0$2), strtonum(0$3)}'
    You can find guides on how to install cygwin online.


    I also think the "fc" command on Windows has a similar output, but it's an old and fuzzy memory from a long-gone era when I used Windows.
     
    Last edited: Dec 13, 2015
  3. phoenixdownita

    phoenixdownita Spirited Member

    Joined:
    Apr 29, 2012
    Messages:
    160
    Likes Received:
    8
    And you mean that the Compare Files feature in the Analyze menu in HxD is not good enough for you?
     
  4. ExplodedHamster

    ExplodedHamster Spirited Member

    Joined:
    Nov 26, 2015
    Messages:
    131
    Likes Received:
    145
    Thanks! I actually ended up finding a program, wxHexEditor, that worked pretty well for me and has a great list/display of all the differences. It's been incredibly helpful for me, certainly easier than playing through long games and looking for everything, especially those with lots of text.

    I actually found a program that navigates a bit better for me on Windows 8. For whatever reason HdX wasn't working well for me on this shitty OS. The F6 function wasn't working at all.
     
  5. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,031
    Likes Received:
    889
    If you mean "text" as in "readable text", by contrast to hexadecimal data (e.g. text files in the proto filesystem), then MELD is a wonderful visual program for comparing files and combining them: http://meldmerge.org/
     
  6. ExplodedHamster

    ExplodedHamster Spirited Member

    Joined:
    Nov 26, 2015
    Messages:
    131
    Likes Received:
    145
    Thanks so much! I've downloaded the program, but am having some issues. Seems like it's not working with the bin files? I'm not positive, but I believe "readable text" is what I was referring to. Inside my rom files there is the hex text on the left, then a column on the right that seems to have a mix of hex, but also some readable text. It's where, for example, the title screen info appears. Or any game dialogue, credits, etc.

    Basically, I'm looking to see if there are any readable text differences between protos I have and the final versions. I've been doing it manually/visually the past few days. My Crystalis proto appears to have a few sections of significant text differences, for example. It does take some time to spot the differences in standard hexcompare.
     
  7. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,031
    Likes Received:
    889
    Meld is good at comparing files that are just made of text and only text, like scripts or source code, XML, databases, etc.

    If you just wanna extract the readable text from a compiled executable, you either have to figure out how it stores its data (reverse engineer it) or use some kind of regular expressions to retrieve only readable (pronounceable?) strings from the raw data, but even them you'd have lots of garbage.

    Using the programs to compare files in hexadecimal, does the hex part (unreadable) differs a lot from each file or is it mainly the text part that's different?

    PS, any good hex editor should allow you to see the code you're looking at on ASCII as well as in hex, so you can visually spot texts fragments yourself.
     
  8. Bad_Ad84

    Bad_Ad84 The Tick

    Joined:
    May 26, 2011
    Messages:
    8,566
    Likes Received:
    1,308
    If you want to pull just text from a bin file (or anything else) use strings on linux, or the strings for windows by sysinternals
     
  9. Hiccup

    Hiccup Robust Member

    Joined:
    Jul 15, 2013
    Messages:
    260
    Likes Received:
    32
    I've heard good (unspecific) things about Beyond Compare. However, it is not free.
     
  10. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    +1 for Beyond Compare (there's a trial available iirc), even though personally I've switched away from it to meld (due to reasons not related to either programs capabilities). Dunno how they handle hex compares, but you can always shove things through 'hexdump' first and compare the output.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page