Unwad - minimal wad tool (mingw build script now in svn)

Any utility that assists in the creation of mods, assets, etc, go here.
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.

Re: [~85%] Unwad - a minimal wad convertor and extractor

Postby Gez » Sat Sep 20, 2008 12:04 pm

bagheadspidey wrote:I don't own that program so unfortunately someone else will have to do that, unless there is a free version I am unaware of?

MSVC Express is free, you just need to have a legit version of Windows because the download site will ask you for an authentication number. I'm not sure if it's still possible to download MSVCE 2005, because the 2008 version also annoyingly wants you to "activate" it within a month. (Seriously, why do they bother people so? Authentication, registration, activation... The guy who invented the concept of "activation" needs to be shot, anyway. It doesn't activate anything, just prevents deactivation. Meh. If it's a free download, it should be a no-strings-attached free download, not be accompanied by an electronic version of soviet-style paperwork.)
Gez
 
 
 
Joined: 06 Jul 2007

Re: [~85%] Unwad - a minimal wad convertor and extractor

Postby bagheadspidey » Sat Sep 20, 2008 12:20 pm

Graf Zahl wrote:iostream is inefficient shit. Everyone not seeing this has never been in a situation where this bloated abomination hasn't blown an application out of proportions - both in code size and performance.

And before you ask: Yes, I have seen it - and rewriting all output to use (f)printf not only made the executable 25% of its original size but also made it run magnitudes faster. Since that day I have sworn never *ever* to use IOStream again for anything.

Ah, in that case thanks for the heads-up. I'll add that to my to-do list. For now, though, the most important thing is getting this to build on windows. The program is plenty small and fast as it is, but smaller and faster is always good =)

Gez wrote:MSVC Express is free, you just need to have a legit version of Windows because the download site will ask you for an authentication number. I'm not sure if it's still possible to download MSVCE 2005, because the 2008 version also annoyingly wants you to "activate" it within a month. (Seriously, why do they bother people so? Authentication, registration, activation... The guy who invented the concept of "activation" needs to be shot, anyway. It doesn't activate anything, just prevents deactivation. Meh. If it's a free download, it should be a no-strings-attached free download, not be accompanied by an electronic version of soviet-style paperwork.)

Yeah, I tried to get a copy of this but microsoft's site told me I had an invalid version of windows or some such crap. Of course, I used the code on the sticker attached to this machine to activate windows so I have no idea why it thinks it's not legit. I'm hoping once I get cross-compiling to work (building a windows exe from linux), someone with the appropriate software will be able to contribute a vc++ build script.
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release!] Unwad (Windows version ready for testing!)

Postby bagheadspidey » Sun Sep 21, 2008 6:54 pm

Bumpity bump.

The windows version is ready for testing.

Get it here.

Some pointers:
* read readme.txt
* run it from a console (cmd.exe, for example)

Questions, suggestions, comments, etc welcome!
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release!] Unwad (Windows version ready for testing!)

Postby Csonicgo » Sun Sep 21, 2008 7:53 pm

Well, what do you know. It works.

maps don't work if I make a PK3 out of the resulting data, but that's obvious, right?
User avatar
Csonicgo
OPL Goddess
 
Joined: 15 Apr 2004
Location: Leeds

Re: [release] Unwad - minimal wad tool (Windows version ready!)

Postby bagheadspidey » Sun Sep 21, 2008 11:52 pm

Maps are working now, updated the download link =)
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release] Unwad - minimal wad tool (Windows version ready!)

Postby Gez » Mon Sep 22, 2008 7:47 am

Cool, I'll have to try it when I'll have some time. :)
Gez
 
 
 
Joined: 06 Jul 2007

Re: [release] Unwad - minimal wad tool (Windows version ready!)

Postby bagheadspidey » Tue Sep 23, 2008 4:31 pm

Wow, I didn't expect such an overwhelming response to this!

Heh, just kidding. Someone pm'd me about zip support; in case anyone else is silently wondering wtf is up with zip support here was my response.

I wrote:Thanks for the feedback =)

zlib is already included (libpng uses it); that should be fine for zipping files. The reason I haven't added zip support yet is because I'd like zipping to be available as a separate step from wad extraction, and I'm still trying to decide exactly how I want to do it.

I want the "create pk3" step to compile acs, maybe build bsp info, etc in addition to just zipping the files up, and I'm trying to work out how I want to set up the options and everything for that.

Here's the shell script I've been using to build pk3s -- this is something like what I want to do with unwad (but from c++, not from a shell, obviously). If you're on linux, you might find this useful.

Spoiler: I'm sure 99% of you could give two shits about this part (and probably this whole thread for that matter but oh well)

User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby bagheadspidey » Thu Sep 25, 2008 2:39 am

zip (pk3) support added, download link updated, svn repo up. See title post for details.

This thing needs testing (on windows especially); if you have a free minute or two and feel like helping out, try unwadding a few wads and let me know how it went!
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby bagheadspidey » Thu Sep 25, 2008 6:07 pm

Small update --

From now on if you want to try out the latest changes, you can download a compiled exe directly from the svn. This exe will be kept up-to-date as I make changes. You need to have the rest of the package first; just replace the exe in the package with the one from svn.

The unwad.exe in svn will always have up-to-date documentation; use the command "unwad -?" to read it.
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby BouncyTEM » Thu Sep 25, 2008 6:30 pm

Well, I just tried it out (windows XP so you know) and, so far, quite nice! :D

I'm quite pleased.
User avatar
BouncyTEM
All Caps Guy, Maker of Sir Belfin Dramatic Reading Series.
 
Joined: 24 Aug 2003
Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby bagheadspidey » Fri Sep 26, 2008 1:16 pm

Thanks, glad you are enjoying it!

Ok, forget what I said in my last post. Instead, here is the complete windows-only binary package; this link will be updated constantly as features are added -- unwad.zip svn build -- this should have everything you need to run unwad on windows. It's a small download so I see no reason to distribute the exe separately (the dlls won't likely change, but the "magic" files may.)
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby hnsolo77 » Sun Sep 28, 2008 5:06 pm

going to try this out once i get home, this should prove most usefull to me :)

usefull as in save me a shitload of work that would otherwise take me quite a while :P
User avatar
hnsolo77
if your life had a face Kim would punch it.
 
Joined: 17 Sep 2006
Location: the mythical land of Toronto Canada. (not really)

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby ThatOneZDoomer » Sun Sep 28, 2008 5:18 pm

I downloaded this when the Windows build first came out and I couldn't figure it out. Then I downloaded the newest Windows build without all the extra stuff. Upon reading the last few posts, I finally figured out how to read the readme file and unwad some random wads. At first I was wondering why all the images turned out gray till further reading and using the example to get the Doom 2 PlayPal file. I suck at command lines, so I made a .bat file that seems to function the same.

I usually don't like asking for help right away, since usually, certain problems can be solved with a little more effort. Now I finally got around to ripping and tearing resources out of various wads. My .bat file currently looks like this...

Code: Select allExpand view
unwad -p playpal.lump *filename*.wad


Is it possible to set up the .bat file in such a way that I can just drag and drop a wad file on it and have it unwad automatic? At the moment, I end up changing the file name in the .bat file every time I want to unwad a different wad.
User avatar
ThatOneZDoomer
Still too lazy for a new avatar
 
Joined: 01 Jun 2008
Location: Where I'm at of course

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby bagheadspidey » Sun Sep 28, 2008 5:43 pm

ThatOneZDoomer wrote:
Code: Select allExpand view
unwad -p playpal.lump *filename*.wad

Is it possible to set up the .bat file in such a way that I can just drag and drop a wad file on it and have it unwad automatic? At the moment, I end up changing the file name in the .bat file every time I want to unwad a different wad.

It is. I like this batch file idea, maybe I should include a few example batch files in the release package.

Try this:

Code: Select allExpand view
unwad -p playpal.lump %*

%* represents all arguments passed into the batch file. That means if you drag a file (or files) onto the batch file, the paths to those files will be used in place of %*.

The only problem with batch files is you won't have time to look at all the output that gets dumped. To fix that, you can do something like this:

Code: Select allExpand view
unwad -p playpal.lump %* > what-unwad-said.txt
wordpad what-unwad-said.txt &

The ">" operator should dump all the output into the file "what-unwad-said.txt."

The next line opens "what-unwad-said.txt" with wordpad. The "&" character runs wordpad in a separate process so the batch process can finish right away instead of waiting for wordpad to close.
User avatar
bagheadspidey
 
Joined: 21 Oct 2007

Re: [release] Unwad - minimal wad tool (svn repo up)

Postby Gez » Mon Sep 29, 2008 3:49 am

bagheadspidey wrote:The only problem with batch files is you won't have time to look at all the output that gets dumped.


You forgot about the "pause" command. :)
Gez
 
 
 
Joined: 06 Jul 2007

PreviousNext

Return to Editors / Asset Manipulation

Who is online

Users browsing this forum: No registered users and 0 guests