WadExt WAD extraction tool

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder, Slade, WadSmoosh, Oblige, etc.
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.
User avatar
Voros
Posts: 151
Joined: Fri Feb 03, 2017 11:47 pm

Re: WadExt WAD extraction tool

Post by Voros »

If it's just one lump, why not just extract with Slade? Interestingly, Deutex can extract a specific lump via -get command.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: WadExt WAD extraction tool

Post by Nash »

Read again. My script is part of an automated system, meant to be used for an unknown number of maps. And Slade can't be used via the command line.

Graf - Ok, thanks for the explanation. I'll stick to Unwad for the time being.
User avatar
Major Cooke
Posts: 8175
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: WadExt WAD extraction tool

Post by Major Cooke »

Well, SLADE can now support LUA. Perhaps this might actually interest Graf some? I know, a little offtopic but if anything this means someone could implement a WadExt-esque LUA script (granted it's still quite beta).
User avatar
MartinHowe
Posts: 2022
Joined: Mon Aug 11, 2003 1:50 pm
Location: Waveney, United Kingdom

Re: WadExt WAD extraction tool

Post by MartinHowe »

Has anyone successfully compiled wadext on Ubuntu?
I checkout the source via git into a directory wadext, then:

mkdir wadext/build
cd wadext/build
cmake .. -DCMAKE_BUILD_TYPE=Release


All is OK up to here, but when I compile I get:

[ 16%] Building CXX object CMakeFiles/wadext.dir/convert.o
c++: error: unrecognized command line option ‘-Wc++11-extensions’


I have updated gcc and g++ to 4.8.5 as some websites discussing this issue have suggested, but to no avail.

Can anyone suggest anything, please?
User avatar
Rachael
Posts: 13557
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: WadExt WAD extraction tool

Post by Rachael »

fixed here

Do
git pull origin pull/6/head
to automatically merge it and compile it quickly.


(Graf merged it rather quickly, so the above is not needed - just do a pull from master)
User avatar
MartinHowe
Posts: 2022
Joined: Mon Aug 11, 2003 1:50 pm
Location: Waveney, United Kingdom

Re: WadExt WAD extraction tool

Post by MartinHowe »

Thanks very much - all working now :D
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: WadExt WAD extraction tool

Post by StroggVorbis »

Maps extracted with WadExt have empty SEGS, SSECTORS, NODES, REJECT & BLOCKMAP lumps.
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: WadExt WAD extraction tool

Post by StroggVorbis »

Sorry for bumping again, but is nobody else experiencing this? All pk3s created with WADExt have broken/corrupted maps :(
User avatar
MartinHowe
Posts: 2022
Joined: Mon Aug 11, 2003 1:50 pm
Location: Waveney, United Kingdom

Re: WadExt WAD extraction tool

Post by MartinHowe »

Couple of bugs I have found:

1) SERIOUS
The decompiled subdirectory doesn't work on Linux because on line 468 of wadext.cpp the path separator is hardcoded as a backslash:

Code: Select all

sprintf(buffer,"decompiled\\textures.%c", pTex->Name()[7]);
Instead the file decompiled\textures.1 (or .2) appears in the root directory of the extracted data.


2) ANNOYING BUT CAN BE WORKED AROUND
The quick help usage is incorrect because on line 86 of main.cpp, it says:

Code: Select all

printf("WadExt v1.1 (c) 2016 Christoph Oelckers\nUsage: wadext [options] filename\n");
but the program behaves as if it says:

Code: Select all

printf("WadExt v1.1 (c) 2016 Christoph Oelckers\nUsage: wadext filename [options]\n");
For example, using the command

Code: Select all

wadext  -nosndconvert -nogfxconvert /usr/share/games/doom/1.9u/doom.wad
fails due to trying to open a file called -nosndconvert, but

Code: Select all

wadext /usr/share/games/doom/1.9u/doom.wad -nosndconvert -nogfxconvert
succeeds.
VecterStroke
Posts: 51
Joined: Mon Dec 11, 2017 12:28 am

Re: WadExt WAD extraction tool

Post by VecterStroke »

What is the best way to compile the code? I want to make the exe Standalone, but when I build using visual studio, it requires a dll
Toomerboomer
Posts: 1
Joined: Mon Feb 06, 2023 11:00 am
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)

Re: WadExt WAD extraction tool

Post by Toomerboomer »

How do you add the command function? ive tried opening the EXE file but nothing happens. When using cmd to do the command i get this error:

'wadext' is not recognized as an internal or external command,
operable program or batch file.
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: WadExt WAD extraction tool

Post by Kappes Buur »

Install wadext.exe and the IWAD or PWAD in a dedicated folder.
Make a batch file, ie wadextract.bat, in the same folder with this line

Code: Select all

wadext %1
Drag the IWAD/PWAD onto the batch file.
User avatar
Rachael
Posts: 13557
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: WadExt WAD extraction tool

Post by Rachael »

You can do the same thing without the batch file - just drag and drop on top of the tool.
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada

Re: WadExt WAD extraction tool

Post by Kappes Buur »

Rachael wrote: Tue Feb 07, 2023 8:22 am You can do the same thing without the batch file - just drag and drop on top of the tool.
:D :thumb:
Rachael wrote: Thu Nov 10, 2016 1: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/
It would be a much better utility if the extraction to a same named folder had been implemented. 8-)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: WadExt WAD extraction tool

Post by Graf Zahl »

Extraction to a folder has been a thing for a long time. What version are you using?

Return to “Creation, Conversion, and Editing”