| Wishlist > Clothing Texture Referencing | ||
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | I've been working on converting all the maxis clothing into Warlokk's bodyshape sizes. Of course, there being 45 different sizes means this takes awhile.
After the latest batch of them, I realized that I should just modify the material definitions to reference the textures in the sims 2 files so that I can delete the textures in the clothing file and have a much much smaller file that seems to load faster in sims 2 (probably since it's quicker to process and maybe because it only has to load a texture once rather than multiple copies of it.)
So now I want to go back and edit all of the clothing I've done to do this kind of referencing. It'd be nice if there were something such as in scan folders that would allow me to select mutliple clothing packages, type in the new stdMatBaseTextureName and stdMatNormalMapTextureName properties (I guess the alphas would be nice too, but I'm not sure how they are named), and have it delete the old textureswhile replacing the properties in the material definition. This way doing 45 different clothing packages which all use the same texture would take me seconds to do instead of 10 minutes. As I have literally thousands to do, this would save a heap of time.
I realize this is probably a limited-use thing for most people, and I would gladly try to modifying a local copy of simpe or do my own plugin, but I currently lack the time to gain familiarity with simpe's code even if I do have quite a lot of experience doing applications in C#. But if someone wanted to do this, or if they wanted to point me in the right direction...
Thanks | |
| Inge Jones | ||
Member since: 2005-03-06 Posts: 1897 | You have taken on board the presence of the relatively new Merge button on the TXMT plugin? That can speed up the process a bit more than it used to be, as you create (using Export and editing as desired) an xml files containing the properties you wish to update and their settings, then use Merge on each TXMT to update those properties from the file.
It's still 45 to open though, so I can appreciate your point.
I will ask Peter if he can find a way of batchifying this. Would these TXMTs all be in one file, so you could make the process run on an entire file, or would it need to be able to run on highlighted TXMTs and leave the others alone? Or are you asking that you can select several actual files within which all/any TXMTs therein would be treated with the Merge? | |
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | They would all be in seperate files.
I already extract the txmt that has the info I want to replace, and then do a replace in each fo the files. Then I delete all textures in that [recolor] file. It actually takes around 6-8 minutes per 45 files depending on mouse dexterity and my ability to cope with the monotony :)
Therefore It'd be nice to be able to select multiple package files (a la Scan Folder's ability to select multiple files to perform an operation on), select a target extracted txmt file (.5tm) whose data will to replace the data of any TXMTs in the recolor packages (obviously keeping the group/instance info the same) and then have the data in each package's TXMTs replaced, and all their TXTRs deleted, resulting in about a 3KB referenced recolor package.
Keep in mind that while I say Scan Folders, I'd have no problem with it being its own seperate thing. I can see doing it through scan folders making the process take awhile as it process through everything/loads thumbnails of the textures, etc, when all I really need is to quickly modify data and delete textures.
If that can be done, you'd make me and my 4600 (roughly) recolor packages very happy. | |
| Inge Jones | ||
Member since: 2005-03-06 Posts: 1897 | bump | |
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | Any word on this being feasible? | |
| Inge Jones | ||
Member since: 2005-03-06 Posts: 1897 | I am afraid preparatory work for Sims 3 tools has started, and there is no plan to start new SimPE features in the forseeable future. I understand that this will be a disappointment to people hoping to continue modding for Sims 2. "Forseeable future" doesn't preclude that if Peter gets right on top of Sims 3 tools and has actual spare time he won't revisit SimPE, and of course it doesn't rule out that someone else will see this wish and offer to implement it. Etc. | |
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | Hmm. I'd be interested in trying to do a plugin/something similar myself, as I do have quite a bit of C# experience.
What I'd really want to do (now that I've done this process a bunch) is to be able to extract a txmt (.5tm) and then batch replace all txmts in a group of packages with that extracted txmt and delete all txtr files in those packages. Is there somewhere I can go to find info on doing plugins (or extended the scan folders plugins)? | |
| pljones | ||
Member since: 2005-04-02 From: London, UK Posts: 609 | There's no real documentation other than reading the source, unfortunately. You can get the latest from SourceForge. Here are the links to view the code (you need to get back up to the project level to download it):
SimPe Toolbox contains the scanner tools.
PJ bits (pjBodyMeshTool/, pjHoodTool/, pjOBJDTool/, pjObjKeyTool/, simpe-lite/) (Unfortunately CVS doesn't make it easy to keep things tidy, so I'm afraid it's all a bit of a mess. There's a lot less under "simpe-lite" than meets the eye! The bits your interested in are in SimPe itself, though.) | |
Member Controls
| Wishlist > Clothing Texture Referencing | ||
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | ||
| Inge Jones | ||
Member since: 2005-03-06 Posts: 1897 | ||
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | ||
| Inge Jones | ||
Member since: 2005-03-06 Posts: 1897 | ||
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | ||
| Inge Jones | ||
Member since: 2005-03-06 Posts: 1897 | ||
| themysticalone | ||
Member since: 2008-10-03 Posts: 4 | ||
| pljones | ||
Member since: 2005-04-02 From: London, UK Posts: 609 | ||
viewthread, 0, 0, Clothing-Texture-Referencing