• 0

Removing unused data from PK3

Question

Hello all.

 

I am looking to remove unused textures and flats from a PK3. All textures are in .png or .lmp format, stored in the /flats directory, /textures directory and it's subdirectories. No textures are in patches or the TEXTURE1 file.

 

I have a wide range of maps within the PK3, in both doom in hexen format and UDMF format. I'm not sure if this could cause issues or not.

 

Is there an easy way to list all textures used within all of the maps, or better yet, remove all of the textures that aren't used?

 

I read about the feature in SLADE 3 that is supposed to do this but also read that it doesn't work with PK3 and/or doesn't remove the correct files. Can anyone enlighten me on this?

 

I am not currently in front of a PC so I cannot test the SLADE feature right this moment.

 

Thank you all very much in advance for your help.

Share this post


Link to post

5 answers to this question

  • 1

Manually is how I would do it. Or remove everything (like flats) and load up the game, and then see what flats the game complains about being missing. The excess are the ones you can remove.

1 person likes this

Share this post


Link to post
  • 0

There are 3 options in Slade 3 that may help Removing unused Flats, Textures and Patches (under Archive > Maintenance) and 2 options that can check for duplicate Entries names and content.

1 person likes this

Share this post


Link to post
  • 0

I've just tried those options in SLADE3. In a PK3 folder structure, they don't do anything. There's no output at all. Surely there must be another way to clean up excess resources from a PK3.

Share this post


Link to post
  • 0

@Nevander That's a pretty labour intensive method, but it's also very exact - I couldn't possibly miss anything, as there would be console errors. Great stuff!

Share this post


Link to post
  • 0

Wouldn't it be not as labor extensive to remove the Textures.txt from the pk3, as well as the textures directory, and then just create and add textures "you need", one at a time?

I suppose it is a coin flip though, in this case.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now