Author Topic: Check for Unused Sprites/Sounds  (Read 1082 times)

Major Cooke

Check for Unused Sprites/Sounds
« on: February 02, 2015, 07:06:00 pm »
Would it be possible to add the ability to look at one's SNDINFO and DECORATE lumps, find out which is not being used in terms of sprites and sounds, and have the option to remove them?

Note, it would be appreciated to have both removal AND check separately because in the event we mistype a name, this way we can get them modified without risk of deleting the file itself.


Re: Check for Unused Sprites/Sounds
« Reply #1 on: February 04, 2015, 12:48:47 pm »
That's a lot more complicated than it seems.

SNDINFO is cumulative. What if you include custom sounds for the original weapons or monsters (defined in zdoom.pk3's own SNDINFO) in addition to sounds for your new weapons and monsters? Then the replacements will be falsely reported as "unused".

DECORATE is a very big can of worm, because of features like inheritance, and special sprite names #### and ----.