Problem with removing unused ZDoom textures with Slade

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
edward850
Posts: 5907
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand

Re: Problem with removing unused ZDoom textures with Slade

Post by edward850 »

IgnyteZero wrote: Tue Nov 25, 2025 11:15 am I found out ONE thing with SLADE though, it's does one VERY weird thing with it's purging of unused ZDoom textures. First it goes through all the Textures used as expected, it just seem to do a waaay too wide stroke when deciding what's unused. Waaay too wide. Even if I try to exclude animated textures it also deletes used textures. However, what it does next is really baffling, it goes on to check for flats, but it's not flats it's trying to purge, but all lumps, scripts and graphics that are not maps.
You have very likely setup your flat markers incorrectly. They must be between F_START and F_END, any variation can run the risk of your entire wad being classified as flats as those markers are the only thing that indicates that.
Last edited by edward850 on Fri Nov 28, 2025 7:52 pm, edited 1 time in total.
IgnyteZero
Posts: 51
Joined: Thu Jan 16, 2025 12:17 pm
Operating System Version (Optional): Windows 10

Re: Problem with removing unused ZDoom textures with Slade

Post by IgnyteZero »

edward850 wrote: Fri Nov 28, 2025 3:35 pm
IgnyteZero wrote: Tue Nov 25, 2025 11:15 am I found out ONE thing with SLADE though, it's does one VERY weird thing with it's purging of unused ZDoom textures. First it goes through all the Textures used as expected, it just seem to do a waaay too wide stroke when deciding what's unused. Waaay too wide. Even if I try to exclude animated textures it also deletes used textures. However, what it does next is really baffling, it goes on to check for flats, but it's not flats it's trying to purge, but all lumps, scripts and graphics that are not maps.
You have very likely setup your flat markers incorrectly. They must be between FF_START and FF_END, any variation can run the risk of your entire wad being classified as flats as those markers are the only thing that indicates that.
Might have been it
User avatar
Enjay
 
 
Posts: 27486
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Problem with removing unused ZDoom textures with Slade

Post by Enjay »

edward850 wrote: Fri Nov 28, 2025 3:35 pm You have very likely setup your flat markers incorrectly. They must be between FF_START and FF_END, any variation can run the risk of your entire wad being classified as flats as those markers are the only thing that indicates that.
Could be. I've just looked inside the WAD and there is FF_START and a F_END. So, they are mismatched. I didn't realise Slade was so strict about that. Useful to know. :thumb:
User avatar
edward850
Posts: 5907
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand

Re: Problem with removing unused ZDoom textures with Slade

Post by edward850 »

Sorry, typo, F_START and F_END. FF_START isn't actually a real marker and is just to get around a vanilla limitation of one flat range, but you are therefore meant to put the flats at the very top of your wad as it adds everything before it.
IgnyteZero
Posts: 51
Joined: Thu Jan 16, 2025 12:17 pm
Operating System Version (Optional): Windows 10

Re: Problem with removing unused ZDoom textures with Slade

Post by IgnyteZero »

edward850 wrote: Fri Nov 28, 2025 7:54 pm Sorry, typo, F_START and F_END. FF_START isn't actually a real marker and is just to get around a vanilla limitation of one flat range, but you are therefore meant to put the flats at the very top of your wad as it adds everything before it.
Okay, so I should change it to F_START and F_END?
User avatar
Redneckerz
Spotlight Team
Posts: 1155
Joined: Mon Nov 25, 2019 8:54 am
Graphics Processor: Intel (Modern GZDoom)

Re: Problem with removing unused ZDoom textures with Slade

Post by Redneckerz »

IgnyteZero wrote: Sat Nov 29, 2025 10:50 am
edward850 wrote: Fri Nov 28, 2025 7:54 pm Sorry, typo, F_START and F_END. FF_START isn't actually a real marker and is just to get around a vanilla limitation of one flat range, but you are therefore meant to put the flats at the very top of your wad as it adds everything before it.
Okay, so I should change it to F_START and F_END?
Yes.

Return to “Mapping”