Jump to content
  • 0

Are there any tools that can find the difference between two WADs?


axdoomer

Question

I have two WAD files. They are around the same size and are two different versions of the same mod. The changes between the two versions are not significant. I would need an utility that can scan every lump in the wads to find the lump(s) that differ. Does any tool have this functionality?

 

If no such tool exists, is there an utility that can extract every lump to a folder? I guess DeuTex could do it. I could then write a script that would do the comparisons by itself. I would prefer to know if an utility can already do this automatically before I do it by myself.

 

 

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

I'm not entirely sure it worked fine with SLADE, so instead I decided to:

 

Extract both WADs in two different directories with DeuTex:

deutex -doom2 ~/doom2.wad -xtract 1/wad.wad
deutex -doom2 ~/doom2.wad -xtract 2/wad.wad

Then I generated MD5 for every file:

find 1/ -type f -exec md5sum {} \; > 1.txt
find 2/ -type f -exec md5sum {} \; > 2.txt

And I used colordiff to compare both after I removed the different directory name from both text files:

colordiff 1.txt 2.txt

There were no difference in the lumps. There were differences in the WAD itself. I checked using vbindiff and it seems a few bytes were different and there was some empty space between the data which moved some data further in the file.

 

@Voros I will open a feature request on GitHub. I would really like this feature to be added into DeuTex.

 

Thank you both for your answers.

EDIT: I have opened an issue on DeuTex's GitHub repo.

Edited by axdoomer

Share this post


Link to post
  • 0

Such a feature should be added into DeuTex. Or at the very least, extracting the contents of a WAD in one folder (which is possible. Just change the name of the folder, it'll be extracted in, inside the extract function. Along with some checks to ensure normal extraction is also possible)

For starters say

deutex -compare 1.wad 2.wad


Is done. It'll scan 1.wad and list out several things for each lump, such as filesize, then scan 2.wad and compare the results with 1.wad's results and display the results like

Lump    1           2
D_E1M1  109340      109678


For filesize, along with other information.

This would be a really neat addition.

Edited by Voros

Share this post


Link to post
  • 0

SLADE can, in a roundabout way. Load one as the base resource. Then load the other normally. Then use the maintenance option to remove entries unmodified from the IWAD. You'll be left with only different entries, marker lumps, and maps. (Maps are harder to compare since they're made of several lumps, so this check just ignores them.)

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...