MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

extra TXTR remover - now with GUI - 20090301

by CatOfEvilGenius Posted 12th Feb 2009 at 10:25 AM - Updated 27th Nov 2013 at 4:23 PM by Nysha
49 Comments / replies (Who?) - 25 Feedback Posts
Mar 14, 2009: There is currently no download file here. The download file is back.

===================================================

Extra Texture Remover

This program removes duplicate TXTRs from clothing and hair recolor packages, making them smaller. (Do NOT use on "mixed method" default skin packages.)

When is this useful? If you recolor hair or clothing with multiple mesh groups that use the same texture, BodyShop makes useless duplicate copies of the TXTR. In the past, you had to manually remove these extra TXTRs with SimPE and manually tell the TXMTs to use just one TXTR. Now you can do it automatically.

----------------------------------------------------------------

Alpha Software Now Available - TESTERS WANTED

version: 20090301 alpha
now with a GUI

Installation

The current version runs on Windows only. A Mac version is planned.
Unzip the file extraTXTRremove_alpha_20090301.zip (from this post).
It contains a directory with the extraTXTRremove executable and a manual.
It also contains library files (*.dll) and a manifest file. Do not delete them!
To run this program, double click extraTXTRremove.exe.

Usage

First, press the Choose Files button.



Click a file to select it, SHIFT click or CTRL click to select several files, then press OK.
If you want to select more files from a different directory, press the Choose Files button again.
Do NOT select any default skin packages, just clothing and hair.



A list of files will appear in the main window.
Press the Remove Extra TXTRs button.



As each file is processed, you will see its entry in the list update.
If there are duplicates, duplicate removal may take a while, so be patient.
If duplicates were found and removed, the program will display the number
of TXTRs removed, the old file size, and the new, smaller file size.
New files overwrite old files, so make backups!
I don't expect this to break anything, but it IS in testing, and might!




When all files are processed, you can press the Clear List button, and start again with another group of files.

NOTE: This is an alpha, debug version of the program. It will print lots of debugging info in a command window. You can ignore this unless you are submitting a bug report. If submitting a bug report, please include the debug text from that window.
.
Operating System: Windows
Utility Type: CC Editors
Plugin Type: Not Applicable

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 2
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
extraTXTRremove_20090301_alpha.zip

Size: 1.39 MB · Downloads: 758 · 15th Mar 2009
1.39 MB 758 15th Mar 2009
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:

1. Download: Click the download link to save the .rar or .zip file(s) to your computer.

2. Extract the zip, rar, or 7z file.

3. Place in Downloads Folder: Cut and paste the .package file(s) into your Downloads folder:
  • Origin (Ultimate Collection): Users\(Current User Account)\Documents\EA Games\The Sims™ 2 Ultimate Collection\Downloads\
  • Non-Origin, Windows Vista/7/8/10: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\
  • Non-Origin, Windows XP: Documents and Settings\(Current User Account)\My Documents\EA Games\The Sims 2\Downloads\
  • Mac: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads
  • Mac x64: /Library/Containers/com.aspyr.sims2.appstore/Data/Library/Application Support/Aspyr/The Sims 2/Downloads
Need more information?
 
49 Comments / Replies (Who?) - 47 Feedback Posts
Page 2 of 2
Not actually evil.
Original Poster
#26 Old 2nd Mar 2009 at 10:42 PM
wandersfar If the program says 0 duplicate textures, then it did not alter that file in any way. It just read, didn't write. Good thing you're making backups anyway, always good to do when testing.

The reason I'm concerned about default skins is I have seen mixed method packages that used the same face for male and female, or for two or more ages. The TXMTs for those face textures were in a different file, and since I don't yet compare across files, such a skin could get messed up.

I didn't know hair could have unused textures. I'll look into removing that, but don't expect that anytime soon. It might end up being a separate program that does other stuff with hair packages to clean them up.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Lab Assistant
#27 Old 6th Mar 2009 at 2:49 AM
Quote:
I didn't know hair could have unused textures. I'll look into removing that, but don't expect that anytime soon. It might end up being a separate program that does other stuff with hair packages to clean them up.

Thank you for considering this. I didn't mean to heap another project onto you, it's just something that's bugged me for a while. :p

If you're looking for examples, Raon textures are pretty bad about including Maxis recolors which can't be nuked with the Wardrobe Wrangler, and AFAIK, have to be deleted manually with SimPE.

I'm attaching multiple copies of the same blonde recolor of Raon f44. The first is the untouched original. The second has been run through the Compressorizer, reducing the file size from 725kb to 650kb, but is otherwise unaltered. If you open it up in SimPE, you'll see there are three recolors of Maxis textures (a black bob, a black braid, and a grey braid) that aren't used by the mesh, as well as three mysterious blank textures.

In the third, I've gone into SimPE and manually deleted the Maxis textures. The recolor still works, but now it's almost half the size at 354kb. Finally, in the fourth, I've gone into SimPE and deleted the textures that appeared to be blank, further reducing the size to 115kb. I fully expected this last one to be broken, but to my surprise, it works fine as well!

So in the end I was able to reduce the number of textures in this recolor from seven to one and the overall file size from 725kb to 115kb.
Download - please read all instructions before downloading any files!
File Type: rar raon44blonde.rar (1.33 MB, 4 downloads)
Not actually evil.
Original Poster
#28 Old 6th Mar 2009 at 7:16 AM
Thanks for the files, they'll be handy for testing... Next update tentatively scheduled for next weekend, and you're not heaping projects on me. This is all stuff I want to have for myself anyway, and I enjoy coding.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Lab Assistant
#29 Old 14th Mar 2009 at 10:11 AM
OT, but...

Quote:
Originally Posted by CatOfEvilGenius
I have seen mixed method packages that used the same face for male and female, or for two or more ages.

Do you have a link? The only mixed method skin template I'm familiar with is HP's default package for her Idolatry set, which uses 32 face textures (one for every age/gender, despite most of the faces being identical). I would love to know how other creators have managed to consolidate duplicate faces, if that's even possible. (When I try to eliminate duplicate face textures in HP's version, the face reverts back to Maxis for those genders/ages.)
Not actually evil.
Original Poster
#30 Old 14th Mar 2009 at 9:20 PM
wandersfar I meant that some of the textures were identical, not that several TXMTs used one TXTR. I'll try to be clearer about that next time. I was thinking of HP's Idolatry defaults. I don't think the extra texture remover should be run on such files, for the reasons you stated. Also, if a TXTR is used by both the custom package and default package in a mixed method default, my program might break it, since it doesn't yet compare across packages.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Instructor
#31 Old 15th Mar 2009 at 4:05 AM
Cat, I think I still have a copy of the program (MTS2_CatOfEvilGenius_882819_extraTXTRremove_alpha_20090301.zip) if you need it?
Not actually evil.
Original Poster
#32 Old 15th Mar 2009 at 6:37 AM
AmberDiceless Thank you for the kind offer, won't be necessary. I just hadn't gotten around to reuploading yet. It's back up now, same version as before, except I added... an icon! Ooooh, aaaah! New version with actual useful changes may be up next week, depending on real life workload.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Instructor
#33 Old 5th Apr 2009 at 2:48 AM
Ran this on a number of hair files today, and I got a message on some of them that said "WARNING! Can't compress, buffer overrun" or something to that effect (unfortunately I was not able to get a copy of the text before it scrolled out of the DOS window.) Is this dangerous or does it just mean I need to run everything through the Compressorizer again?
Not actually evil.
Original Poster
#34 Old 5th Apr 2009 at 6:41 AM
AmberDiceless Means it failed to compress, and may possibly corrupted itself. Can you let me know if Compressorizer has any trouble with these files? If it's just me, I need to fix my program. Can you please give me a link to the files that give you this error, or attach them here?

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Instructor
#35 Old 5th Apr 2009 at 7:18 AM
I'm sorry, I don't know how to tell which of my files it was that generated the error. I did a bunch at once. >< However, the Compressorizer seemed to handle them fine and so has the game, so perhaps it's of no consequence. Maybe related to the fact that some resources just don't want to compress in SimPE either, but seem to work fine otherwise?
Doing all the things, and *mostly* not failing.
retired moderator
#36 Old 20th Apr 2009 at 7:44 PM
Would it be possible to in the future include a feature to let us nuke the provided textures and use a maxis one? Like making repository clothing REALLY easy to make? Many times creators will age conversion a mesh simply by scaling (so the UV map is still identical to the original) and then they include all the maxis textures. I'd like to have an easy way to link that age conversion to its parent textures and nuke the duplicates. Is that possible?
Not actually evil.
Original Poster
#37 Old 20th Apr 2009 at 7:59 PM
Phaenoh, what you would like to do would be easier to do in SimPE, manually. To do it automatically for a group of files, the program would need to know which Maxis texture goes with which CC recolor.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Doing all the things, and *mostly* not failing.
retired moderator
#38 Old 21st Apr 2009 at 8:07 PM
I was hoping you wouldn't say that. I've done hundreds of them by hand and it sucks, but you are prolly right. I was thinking maybe there was a way of telling the program to look up all the textures from a particular EP (user should know that much at least) and then it lets you scroll through all the images in the Sims07.package. When you find the right texture you tell it to replace with and the program digs up the corresponding files and copies and pastes it for you. I don't mind finding and looking at the two textures myself, I don't much care for finding the TXMT that goes with it and copy paste and deleting and such. Is any of that possible?
#39 Old 21st Apr 2009 at 8:42 PM
This looks interesting. Will it be available for downloading at MTS2?

This Space Intentionally Left Blank
Not actually evil.
Original Poster
#40 Old 22nd Apr 2009 at 5:28 AM
Gen.O.D It is available for download right now, see post #1. Once I finish testing it, I'll upload it to the tools section of Downloads.

Just FYI, everyone, I'm still working on this project, but not for the next few days, must get some RL work done.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
#41 Old 22nd Apr 2009 at 8:19 PM
I don`t like to go off-site for things, and --no offense intended-- this isn`t *yet* worth going off-site for, though it does show promise. I await developments.

This Space Intentionally Left Blank
Forum Resident
#42 Old 12th Jun 2010 at 4:02 AM
Thank you very much for this great program. It will save me a lot of time & headache reading lots of tutorials. Bravo to you CatOfEvilGenious.
Forum Resident
#43 Old 15th Jun 2010 at 8:01 PM
Thank you for your response CatOfEvilGenious. I should have thaought about responding here instead. Anyways, I did press on load files botton as you had instructed but, nothing shows up to be processed by your TXTR remover in other word it has no task. I mentioned in my writing that I stumbled on an error massage when I first double clicked the read me files something about grafique converting error roughly. Then I doubled click the main icon. Then it opened up but, why I don't know, it won't load anything after pressing the appraopriate botton. if you have any ideas, they're certainly worth trying cause, I feel it's a pitty that such a usefull program won't work because of some technicality which I'm not aware of. Thanks again.
Not actually evil.
Original Poster
#44 Old 15th Jun 2010 at 8:04 PM
telefen Please take a picture of the error message and post it here. I do not know what the error is right now, but if I see it, I'll try to figure it out. Thanks.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Forum Resident
#45 Old 18th Jun 2010 at 2:35 AM
Default Thanks
Quote:
Originally Posted by CatOfEvilGenius
telefen Please take a picture of the error message and post it here. I do not know what the error is right now, but if I see it, I'll try to figure it out. Thanks.
Look my friend it's like this: first of all I don't know how to take a picture of an error massage since I've never done such&even I don't know how I would post it here. The second part about reading that,I'm afraid it won't work since it's in swedish & the rough translation was actually what I mentioned. I guess I'll have to give up the Idea. Btw, when I look at your instruction pictures I read microsoft visuall studio under filename.Maybe that's what i'm missing. Anyways If you think that might be the problem.please let me know. I'll take it easy. Thanks anyhow for helping me. It's not really a big issue.
Not actually evil.
Original Poster
#46 Old 18th Jun 2010 at 2:56 AM
telefen Did you delete any of the *.dll or *.manifest files that were in the zip file? You need all of them or the program will not work.

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Forum Resident
#47 Old 18th Jun 2010 at 3:26 AM
Default Hello:
Quote:
Originally Posted by CatOfEvilGenius
telefen Did you delete any of the *.dll or *.manifest files that were in the zip file? You need all of them or the program will not work.
No, I did not delete any thing from that folder. I just unarkived it on the desktop & opened it,then I double clicked the readme file & that's when I got that error massage. It was like glue& didn't wanna leave not untill i clicked it several times. Finally i gave up on that& proceeded by double clicking there red circle sort of no parking sign. It opened up the log & the page where I pressed add files with no apparent change in the page as a result. I think I might be missing something that does not allow your program to communicate with sims2; and then who am I to say cause, I'm fairly novice when it comes to computers Or so... Thank you friend
Not actually evil.
Original Poster
#48 Old 18th Jun 2010 at 4:39 AM
telefen I'm sorry I'm not being very helpful. I can't think of what else the problem could be. The document that you had trouble opening is in Word format. Do you have Microsoft Office Word? If not, it probably will not open for you. But the program should run even if you cannot read the Word document. I wish I could see your computer. :/

Please spay or neuter your pets. --- Cat Music Video! --- my meshes
Forum Resident
#49 Old 18th Jun 2010 at 4:24 PM
Default Thanks anyway
Quote:
Originally Posted by CatOfEvilGenius
telefen I'm sorry I'm not being very helpful. I can't think of what else the problem could be. The document that you had trouble opening is in Word format. Do you have Microsoft Office Word? If not, it probably will not open for you. But the program should run even if you cannot read the Word document. I wish I could see your computer. :/
I'm not finding microsoft word. Either way you don't have to be sorry,neither me cause,it's not such a big deal. Nowadays I R&R (remove&replace) lots of my hairstyles & even my clothing recolors. To keep the whole sims2 aroung 2GB. I'm glad just to have someone like you coming to help anyway. You'll probably help me in other instances most likely. Have a jolly day friend.
Née whiterider
retired moderator
#50 Old 13th Nov 2013 at 5:31 PM
Goddamnit woman, it seems like every couple of months I discover another amazeballs program you've written that would have made my life so much easier if I'd known about it earlier. When are you gonna upload them all so I can just download everything off your profile? :P

What I lack in decorum, I make up for with an absence of tact.
Page 2 of 2