Mancubus
User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > WCleaner - wad optimizer
 
Author
All times are GMT. The time now is 05:19. Post New Thread    Post A Reply
cybermind
Green Marine


Posts: 31
Registered: 06-09


When a mapper put a lot of new textures inside his PWAD, it soon become too hard to delete the unused textures when mapper plans to release his masterpiece. This utility allows you to clean out your PWAD from such garbage automatically, in one click.

Yes, I know that new Slade 3 has about the same feature, but is was buggy and I've decided to write my own program.

Main featues:
-cleans TEXTURE1/TEXTURE2/PNAMES from unused textures and patches.
-cleans PNAMES from invalid textures.
-cleans PWAD from unused flats.
-all clean-out is accurate - WCleaner doesn't delete patches and flats which have the same names as in IWAD(e.g. animation and switch replacements)
-supports limit-removing wads and Boom wad using ANIMATED and SWITCHES

How to use: simple way - just drop your PWAD on exe. That will replace the original file (don't forget to make a backup) with an optimized copy.
If you want a harder way - run the utility and read its output to learn how to use it.
Links (v 1.0.1):
https://github.com/Mistranger/wclea....1/wcleaner.zip
GitHub page: https://github.com/Mistranger/wcleaner

In case if you've found an error or crash: post a link to PWAD which causes error.
Any feedback is welcome.

Last edited by cybermind on May 27 2015 at 19:16

Old Post Sep 18 2013 12:46 #
cybermind is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
40oz
Forum Etiquette Expert


Posts: 7640
Registered: 08-07


sounds cool :)

Old Post Sep 18 2013 17:05 #
40oz is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Tarnsman
Senior Member


Posts: 1017
Registered: 05-11



cybermind said:
-all cleanout is accurate - WCleaner doesn't delete patches and flats which have the same names as in IWAD(e.g. animation and switch replacements)

Oh god thank you.

Old Post Sep 18 2013 18:17 #
Tarnsman is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
esselfortium
A Major Doomworld Concern


Posts: 7028
Registered: 01-02


Nice, thanks for this!

Might it be possible to check mapinfo lumps for skies, story-text backdrop flats, and such as well?

Old Post Sep 18 2013 18:19 #
esselfortium is offline Twitter account Youtube || Blog || PM || Post History || Add Buddy IP || Edit || Quote
gemini09
Senior Member


Posts: 1281
Registered: 04-03


This sounds amazing and I will for certain have a great use for it! :))

Out of a safety concern, you should probably let the program make a back-up before optimizing it.

Old Post Sep 19 2013 18:50 #
gemini09 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Archi
Member


Posts: 432
Registered: 07-09



esselfortium said:
Nice, thanks for this!

Might it be possible to check mapinfo lumps for skies, story-text backdrop flats, and such as well?

Orientation for zdoom will be hard work, since there may be situations, when you change texture or flat in script, and many others.
But yeah, at least implementing support for animdefs will be good.

Old Post Sep 19 2013 19:29 #
Archi is offline Twitch || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Springy
Senior Member


Posts: 1433
Registered: 09-12


Excellent stuff, I wish this came a little earlier as I really needed it last week. Thanks for this.

Old Post Sep 19 2013 19:32 #
Springy is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
AlexMax
Senior Member


Posts: 1149
Registered: 01-03



Archi said:
Orientation for zdoom will be hard work, since there may be situations, when you change texture or flat in script, and many others.

You could simply allow the WAD author to pass an "exclude" file of known textures/flats that should not be touched and rely on the WAD author to keep track of every texture he uses in a script.

Old Post Sep 22 2013 17:06 #
AlexMax is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Blzut3
Member


Posts: 574
Registered: 06-04


For 99.9% of cases you can probably just check the ACS string table for texture names. The format of the behavior lump is documented.

Old Post Sep 22 2013 23:27 #
Blzut3 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
cybermind
Green Marine


Posts: 31
Registered: 06-09


Yes, I was planning to make such search in BEHAVIOR lump, but, anyway, removing unused textures from ZDoom-based wads, relying to information from such quanity of different lump types(TEXTURES, ANIMDEFS, HIRESTEX, scripts etc) will be a hard work to do.

Old Post Sep 23 2013 16:09 #
cybermind is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Phendrena
Junior Member


Posts: 200
Registered: 09-12



cybermind said:
Link(v 0.1): http://speedy.sh/Q4AFZ/wcleaner.zip

WHOA!!! That's one dodgy download!!!
It wants to install it's own download manager program and then wants me use the quick installation (hahaha, no thanks chum!) so that it can install all sorts of rubbish!! I think not!!! Perhaps, you should consider using a clean provider for your stuff???

On another note, thanks for the upload it's a handy utility!!!

Oh, I've uploaded the file to my own Skydrive account :::: http://sdrv.ms/GCyp1P :::: It's a spam free download. I will remove it if you want though, but I don't want people getting rubbish thrown on their computers.

Dave

Old Post Oct 4 2013 13:14 #
Phendrena is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
plums
Senior Member


Posts: 2010
Registered: 08-13



Phendrena said:
WHOA!!! That's one dodgy download!!!

Click this:


Not this:


I had the same problem when I first downloaded from speedyshare, so used to looking for a hidden download link. They're learning...

Old Post Oct 4 2013 18:12 #
plums is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
cybermind
Green Marine


Posts: 31
Registered: 06-09


Added another link without such "spam programs"

Old Post Oct 4 2013 18:28 #
cybermind is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
jazzmaster9
Junior Member


Posts: 239
Registered: 11-11


I tried to run my wad through the program, but it crashes during the process.


link to my wad: http://www.mediafire.com/?440dtv0bcjp71wk

thanks

Old Post Oct 27 2013 08:10 #
jazzmaster9 is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Archi
Member


Posts: 432
Registered: 07-09


Ok for me. Just rename the file so that it doesn't contain any spaces.
Btw, animdefs are not supported.

http://www.mediafire.com/download/u...nukage_area.wad

Last edited by Archi on Oct 27 2013 at 10:43

Old Post Oct 27 2013 10:35 #
Archi is offline Twitch || Blog || PM || Post History || Add Buddy IP || Edit || Quote
Evolution
Junior Member


Posts: 238
Registered: 09-10


I wonder if the program could check the wad for a MAPINFO lump and take into account any textures in there that are solely used as skies.

For example, try WCleaning zdectfmp3. All skies will be removed and ashwall assumes post. The skies are defined in the MAPINFO text lump.

Old Post Oct 27 2013 12:22 #
Evolution is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
cybermind
Green Marine


Posts: 31
Registered: 06-09


Updated to 1.0.1 - fixed several crashes and some minor bugs.
Link: https://github.com/Mistranger/wclea....1/wcleaner.zip

Old Post May 27 2015 19:09 #
cybermind is offline || Blog || PM || Post History || Add Buddy IP || Edit || Quote
All times are GMT. The time now is 05:19. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > WCleaner - wad optimizer

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.