Demon
Register | 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 > Special Interest > XWE > unused textures
 
Author
All times are GMT. The time now is 11:19. Post New Thread    Post A Reply
Macro11_1
Member


Posts: 449
Registered: 08-03


Hey I was wondering, is it possible to get XWE to automaticly remove all the unused textures??

If it isint, that would be a nice feature =)

Old Post 04-03-05 08:52 #
Macro11_1 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00


This is a useful feature however, you'd have to bear in mind it probably wouldn't catch all circumstances - or rather, it is likely to remove textures that become used at some point - eg, all the frames of an animation, the other state of a switch, textures used via scripting etc.

Old Post 04-03-05 15:08 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Csabo
Moderator


Posts: 541
Registered: 02-02


It's definitely difficult to determine the 'used' status of a texture. I've started writing this routine, not done yet though. It's already available in the beta, click File|List unused textures. (As the name implies, so far it only lists them, they won't be removed. The output is hardcoded to c:\not_used.txt)

There are lots of lumps that have to be processed. Right now XWE processes all SIDEDEFS and MAPINFO lumps. For SIDEDEFS, the default switches and animations are taken into consideration! E.g if you use BFALL2, the BFALL1-BFALL4 sequence (including any texture's you've manually added into this animation) will be marked 'used'.

XWE still has to deal with these lumps in addition: ANIMDEFS, BEHAVIOR, TX_START/TX_END markers. Probably a few others as well. I will also have to add something to mark SKY1-SKY3 depending on which MAPS are present, since maps implicitly use them. (If you run the existing function on Doom2, it lists 4 unused switch pairs, plus all the SKY textures, since there's no explicit reference to those.)

Bottom line: if you don't do 'advanced stuff' (ACS scripts, port specific stuff etc.) you can already use this function, and carefully delete the textures listed by XWE. For advanced stuff, I'm still hoping it _is_ possible to detect which textures are actually used or not, even though difficult.

Old Post 04-03-05 15:38 #
Csabo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Macro11_1
Member


Posts: 449
Registered: 08-03


Oh wow, cool... thnx for the info, good luck with that.

Now that I know its in an external .txt file, i should beable to use it better. (I was just sitting there like a dummy wondering "what the heck?! it says list unused textures, but I didnt see a list anywhere")

Thnx again =) But I would think that as long as the places that the textures are not explicitly mentioned, then that would elliminate the need... I would think at least.
Again, good luck, I really appreciate the program.

Old Post 04-03-05 16:03 #
Macro11_1 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
NiGHTMARE
Forum Legend


Posts: 5012
Registered: 05-00



Csabo said:
For SIDEDEFS, the default switches and animations are taken into consideration! E.g if you use BFALL2, the BFALL1-BFALL4 sequence (including any texture's you've manually added into this animation) will be marked 'used'.

Does this just include e.g. BFAll1-4, or does it keep BFALL1 and BFALL4 and everything inbetween the two? I.e. if the sequence was BFALL1, BFALL2, BFALL3, BFALL5, BFALL6, BFALL7, BFALL8, BFALL4, would it keep all of them?

Old Post 04-03-05 16:34 #
NiGHTMARE is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Macro11_1
Member


Posts: 449
Registered: 08-03


Just wanted to point out that it dosent seem to include flats, and an option for that would be muchly apreciated =)

Old Post 04-03-05 17:48 #
Macro11_1 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Csabo
Moderator


Posts: 541
Registered: 02-02


Yes, Nightmare, that's exactly what I meant when I said "any texture's you've manually added into this animation".

I will see if I can add listing unused flats before the next major release.

Old Post 04-03-05 22:23 #
Csabo is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 11:19. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > XWE > unused textures

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.