WadExt WAD extraction tool

Software projects like source ports (3DGE, Eternity, etc), launchers like ZDL, and other useful utilities belong in this forum.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

WadExt WAD extraction tool

Postby Graf Zahl » Thu Nov 10, 2016 2:21 pm

I finally got tired of the problems with the existing extraction tools so I decided to write my own.

https://github.com/coelckers/wadext/releases/tag/1.0

This is a simple command line tool that will extract an entire WAD into a mostly PK3-compatible folder structure, it will also decompile all TEXTUREx, ANIMATED and SWITCHES lumps into readable and reusable text lumps (ANIMDEFS and TEXTURES, respectively.) Most of the file formats used with ZDoom will be detected and get a proper extension applied.

Doom format graphics and sounds will be converted to common formats PNG and WAV, this can be disabled via command line.

Comments and suggestions are welcome. Please add any bug reports and feature suggestions to the Github tracker if you have an account over there.
Currently only working on Windows, if someone wants to make it work on Linux or maxOS, please drop me a line so that I can add you to the repo.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: WadExt WAD extraction tool

Postby Rachael » Thu Nov 10, 2016 2:22 pm

This is amazing! Thank you, Graf! I hope this is better than Unwad... whose author has, sadly enough, gone completely MIA.

One thing though - would it be possible for it to default to extracting to a folder? i.e. "wadext 1.wad" would default to extracting to ./1/
User avatar
Rachael
Not all elves needs a stocking hat...
 
Joined: 13 Jan 2004

Re: WadExt WAD extraction tool

Postby Graf Zahl » Thu Nov 10, 2016 2:26 pm

Sure, that can be added.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: WadExt WAD extraction tool

Postby Rachael » Thu Nov 10, 2016 2:32 pm

Thank you! :)
User avatar
Rachael
Not all elves needs a stocking hat...
 
Joined: 13 Jan 2004

Re: WadExt WAD extraction tool

Postby eyesoftheworld94 » Thu Nov 10, 2016 7:55 pm

This is a god-send. Thank you Graf! Also, I do think this tool should be added to "resources/utilities" (and/or stickied) on most Doom sites (like here on the Resources subform) as well as DoomWorld, and the Doom Wiki. (as well as that Animator program/utility too)
eyesoftheworld94
 
Joined: 12 Nov 2015

Re: WadExt WAD extraction tool

Postby Kinsie » Thu Nov 10, 2016 9:01 pm

Excellent stuff! This would have saved me a lot of hair loss in the past, and it'll probably save me some in the future, too!
User avatar
Kinsie
Glarepokes (thx Kura-san!)
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me

Re: WadExt WAD extraction tool

Postby Xaser » Thu Nov 10, 2016 10:24 pm

Heh, nice! For funsies, I pointed it at Zen Dynamics, pk3'd it, and it worked swell. Plus shaved 10+mb off the filesize. :D
User avatar
Xaser
autodefenestrator
 
 
 
Joined: 20 Jul 2003

Re: WadExt WAD extraction tool

Postby Ed the Bat » Thu Nov 10, 2016 11:35 pm

I should fire this upon every WAD-format project I've made a revision for but didn't feel like going the extra mile to make it a pk3.
User avatar
Ed the Bat
I'm tired. I want to go home.
 
Joined: 03 May 2012
Location: Maryland, US

Re: WadExt WAD extraction tool

Postby Nash » Fri Nov 11, 2016 1:28 am

Thank you! This was desperately needed and now I no longer have to fiddle with bagheadspidey's unwad which will always crash if not invoked from the same directory it's in!
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: WadExt WAD extraction tool

Postby CWolf » Fri Nov 11, 2016 1:47 am

Jesus, finally, it happened... Thank you very much.
User avatar
CWolf
Freedoomed forever. RuGovt mercenary since June'17.
 
Joined: 07 Oct 2013
Location: Volzhsky, Russia (Hidden Part of Hell)

Re: WadExt WAD extraction tool

Postby _mental_ » Sat Nov 12, 2016 5:12 am

Graf Zahl wrote:Currently only working on Windows, if someone wants to make it work on Linux or maxOS, please drop me a line so that I can add you to the repo.

I have made pull request with related fixes.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: WadExt WAD extraction tool

Postby MartinHowe » Sun Nov 13, 2016 3:43 pm

Excellent idea, well done GZ :D I had been considering how to find time to write my own as I'm so fed up with UnWAD - now I don't have to :)
User avatar
MartinHowe
In space, no-one can hear you KILL an ALIEN
 
Joined: 11 Aug 2003
Location: Waveney, United Kingdom

Re: WadExt WAD extraction tool

Postby Graf Zahl » Mon Nov 14, 2016 6:36 am

MartinHowe wrote:I'm so fed up with UnWAD


Is there anyone who wasn't? I actually tried first to fix this thing but if was so overloaded with GCC'isms and other bad design decisions that I passed. The ultimate insult was this inept third party file format matching library that was too stupid to find its data files and caused the crash. And that thing wasn't even GOOD! It missed nearly all the formats which are relevant for ZDoom and did a piss-poor job at some with bad identification marks.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: WadExt WAD extraction tool

Postby Nash » Mon Mar 27, 2017 7:26 am

Image

Okay so I finally decided to replace my build scripts to get rid of Unwad...

I expected it to extract all the individual lumps (as seen in my SLADE screenshot), but instead it just made this folder called MAPS and made a WAD which is an exact copy of "nash test 01.wad" just named differently.

Also shown is the cmdline I use.

Am I using this wrong, or... ?

What I wanted to do with this is extract the SCRIPTS lump so that I can run acc.exe on it.

(This is part of a build script that attempts to compile all embedded scripts in every map WAD so that don't have to do it manually. Eventually when the project will have many maps, I do not want to: open map01 in GZDB, F10, hit compile, save, close, open map02 in GZDB, F10, hit compile, save, close, etc etc etc...)

I was using Unwad this way and it worked, except that I had to robocopy the entire Unwad folder in the build script because attempting to invoke it on a WAD from a different directory will just crash the program... >8[
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: WadExt WAD extraction tool

Postby Graf Zahl » Mon Mar 27, 2017 10:16 am

Wadext does not extract separate level lumps, it keeps them together - except for that ENDMAP bug.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Next

Return to Software and Ports

Who is online

Users browsing this forum: No registered users and 1 guest