ryiron Posted August 8, 2023 I needed remove all the unused textures from a wad recently and immediately hit the issue where slade sometimes crashes doing this. I'd also read that slade can sometimes miss animated or switch textures and incorrectly remove those. I don't know if that is still true for the latest version of slade. Anyway, I decide to write my own simple script for removing unused assets.It removes all unused textures and flats from a wad, but checks for animated/switch textures. It also removes any marker lumps that start with underscores or slashes (like those in cc4tex). The script is pretty basic. It's designed to work with Boom style wads that have the ANIMATED/SWITCHES lumps. It won't work with whatever fancy texture extension things GZDoom wads have. It's written in Python 3, and its public domain licensed so you can take this and do whatever you want with it. I've tested this on exactly one wad so I'd recommend doing backups before using this. It does write to a new wad file, rather than overwriting your original to be safe. Get it here: https://github.com/RyanMallon/doom-utils/blob/main/wad_strip.py 16 Quote Share this post Link to post
Sneezy McGlassFace Posted August 11, 2023 Very cool! Are you planning to expand support for vanilla doom and doom 2 without the ANIMATED and SWITCHES lumps? 1 Quote Share this post Link to post
ryiron Posted August 11, 2023 Probably not. It should be easy to do though. You'd just need to add the hardcoded lists for each iwad. 0 Quote Share this post Link to post
wxndxx Posted August 11, 2023 Cool! I remember I used to hate that Slade thing too. I'll be sure to test it out. By the way, will it work with mbf21? 1 Quote Share this post Link to post
ryiron Posted August 11, 2023 3 minutes ago, wxndxx said: Cool! I remember I used to hate that Slade thing too. I'll be sure to test it out. By the way, will it work with mbf21? Yes, I used this for an mbf21 wad which used 32in24-15 tex asset pack. 1 Quote Share this post Link to post
Roebloz Posted August 11, 2023 Nice, this is gonna be very useful I bet. Although, it's a little lewd to have the WAD strip like that out of nowhere 1 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.