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

HQ Texture Converter - version 2.5 2/21/2021

by CmarNYC Posted 23rd Nov 2018 at 8:35 PM - Updated 21st Feb 2021 at 2:35 PM by CmarNYC : New version upload
206 Comments / replies (Who?) - 14 Feedback Posts, 9 Thanks Posts
This is a featured upload! It showcases the best talent and creativity available on MTS and in the community.
Converting a pile of CC to be compatible with the HQ Mod can be quite a chore. This tool does it for you.

What it does:

You can select either one package or input and output folders. If you select one package, it will be converted and you'll be prompted to save it with a new name. If you select folders, all packages in the input folder will be converted and saved in the output folder with new names. A status line at the bottom of the window will let you know what it's doing.



Conversion:
  • RLE2 textures (diffuse, shadow, skin color, and skin definition) are resized to 2048x4096
  • LRLE textures (diffuse and skin color) are resized to 2048x4096
  • RLE2 textures disguised as LRLE are converted and resized to true LRLE 2048x4096
  • RLES textures (specular) are resized to 1024x2048
  • DDS CAS skin color files are resized to 2048x4096

However, these are just the defaults and you can select the output dimensions for yourself. Will also convert from HQ dimensions to standard if needed.

Pet textures are automatically resized correctly.

Requires Windows and .NET 4.7. If you're on Windows 10 you probably already have it; if you're using Windows 7 or 8.1 you can install it if necessary. Requires 64-bit. (If anyone needs a 32-bit version I'll provide it, but it's likely you'll get memory errors when processing large packages.)

How to use:

Use the top button to select a package to process one at a time. Select input and output folders to process every package in the folder. As of version 2.3 it will also optionally convert subfolders in the input folder, creating corresponding subfolders in the output folder if necessary.

Texture output options:
  • Choice of which conversion to do and the target texture dimensions should be self-explanatory.
  • Keep original size - when converting to HQ, you can choose to keep any textures that are larger than needed as is.
  • Sharpen rle2 and lrle textures - using this option will sharpen the main (diffuse) textures of clothing, hair, accessories, skins, etc. You can choose the sharpening strength. Sharpening will slow down processing significantly. Strength of sharpening makes no difference in speed. Sharpening may or may not be useful when working with LRLE textures, you'll have to experiment.
  • Don't sharpen grayscale - starting in version 2.2 the tool uses the CASP in CC packages to identify the shadow textures, so this option should normally be left unchecked. It may be useful if converting packages that contain clothing/hair/accessory textures but no CASPs as when converting EA game packages. It may not. If checked, the tool will attempt to identify shadow textures and not sharpen them. The benefit is that sharpening may cause banding in some shadows which might be visible. The drawback is that any black and white or gray clothing and skin details may not be sharpened.
  • Use existing mipmaps - starting in version 2.2, if this option is checked the tool will keep existing mipmaps if possible. Leaving this option checked will be slightly faster and retain the quality of original textures in the mipmaps. In cases where sharpening has made a big improvement in a texture you may want to try unchecking it and generating new mipmaps.

With sharpening enabled, conversion will be slow. A package of 1000 rle2 and/or lrle textures could take around 2 hours or more. Without sharpening it's significantly faster. The program will prevent your computer from sleeping during conversion, but your monitor will still time out and sleep and you may see the monitor blacking out for a couple of seconds at a time even while you're using it.

Sharpening comparison:



Notes/Warnings:

The tool should only be run on packages that include only CAS parts (clothing, hair, accessories, makeup, skins, etc.). Running it on packages containing other CC such as objects may result in textures of the wrong size and/or wrong format and could cause your game to crash or not start.

This should go without saying, but you should keep your original packages in case something goes wrong.

Please report problems, questions, and reasonable requests in the comments.

Windows only, sorry. If anyone wants to convert it for Mac, you have my permission.

Version 2.5:
Update for another new version of CASP.
Added support for LRLE textures. This needs more testing; please report problems.

Version 2.4:

Update for the new version of the CASP.
I'm doing only a 64-bit version this time. If anyone needs a 32-bit version I'll provide it, but I doubt there's much if any need.

Version 2.3:

Fixes: Corrects an error affecting memory that was causing random crashes with no error message or an access violation.

New features:
  • During batch conversion, optionally convert subfolders of packages under the input folder. Subfolders with the same names will be created in the output folder if they don't already exist.
  • If any packages fail to convert during batch conversion due to unreadable textures or whatever, the tool will continue to run and display a list of packages that could not be converted when it's finished.

Many thanks to claudiasharon for working with me about the crashing problem.

Version 2.2:

Fixes: Fixes shadow lines again appearing when converting CC on some systems.

New features: Optionally use existing mipmaps.

Many thanks to LunaLechuza for helpful suggestions and testing.

Version 2.0:

Fixes: Corrected the lines on shadow textures and the dark lines around the edges of some diffuse textures.

New features: 64-bit version, sharpening, keeping larger-than-needed textures is now optional.

Additional Credits:

With thanks to Iconic for requesting this tool!

The HQ Mod is here: http://alf-si.tumblr.com/HQ_ts4_English

Image and package handling done with the s4pi library: https://github.com/s4ptacle/Sims4Tools/tree/develop

Folder selection uses Ookii.Dialogs: http://www.ookii.org/software/dialogs/
Tags: #TS4, #HQ, #Mod, #texture, #converter, #resize

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 4
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
TS4HQConverterSourceV2.5.0.0.zip | Source files, not needed to use the tool

Size: 146.0 KB · Downloads: 2,468 · 21st Feb 2021
146.0 KB 2,468 21st Feb 2021
TS4HQConverter_2_5_0_0.zip | Extract folder and run TS4HQConverter.exe

Size: 356.4 KB · Downloads: 8,096 · 21st Feb 2021
356.4 KB 8,096 21st Feb 2021
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 File tab to see the download link. Click the link to save the .rar or .zip file(s) to your computer.
2. Extract: Use WinRAR (Windows) to extract the file(s) from the .rar or .zip file(s).
3. Cut and paste the file(s) into your Mods folder
  • Windows XP: Documents and Settings\(Current User Account)\My Documents\Electronic Arts\The Sims 4\Mods\
  • Windows Vista/7/8/8.1: Users\(Current User Account)\Documents\Electronic Arts\The Sims 4\Mods\
Need more information?
  • Anyone can use both .rar and .zip files easily! On Windows, use WinRAR.
  • If you don't have a Mods folder, just make one.
 
206 Comments / Replies (Who?) - 167 Feedback Posts, 21 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 1 of 9
Blenderized to Pieces
retired moderator THANKS POST
#2 Old 23rd Nov 2018 at 9:26 PM
You always make such fabulous goodies!
Test Subject
THANKS POST
#3 Old 23rd Nov 2018 at 10:40 PM
Thank you for this Cmar. You're amazing. The conversion is so fasssstttt I didn't even blink my eyes and my 356 files were already compatible with HQ Mod! This is fantastic. ❤️️😍😍😍
Field Researcher
THANKS POST
#4 Old 23rd Nov 2018 at 11:02 PM
haha, I like the downsizing option as large texture files is usually what makes cc take up so much space. Thanks!
Test Subject
THANKS POST
#5 Old 23rd Nov 2018 at 11:52 PM
This is by far one of the most helpful tools available. It works great! Thank you
Test Subject
THANKS POST
#6 Old 24th Nov 2018 at 12:10 AM
Thank you my king, you are absolutely a genius! I love u. <3
Test Subject
DELETED POST
24th Nov 2018 at 12:54 AM
Default Help!!
This message has been deleted by SCK93.
Ms. Byte
Original Poster
#7 Old 24th Nov 2018 at 1:20 AM
Quote:
Originally Posted by SCK93
when i try to convert my cc i get this error (https://imgur.com/a/bE0D3Oq) when i click in continue, the conversion just stops...


Please upload or link to the package you're trying to convert so I can take a look.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Top Secret Researcher
#8 Old 24th Nov 2018 at 1:51 AM
For some reason I got this error, but nothing was running in the background. I'm trying to convert EA packages to HQ, and what I did was extract the texture files into a separate package. Could there be too many texture files in there for it to go through?

Edit: I attached an image but it may take a minute or two to show up.
Screenshots
Ms. Byte
Original Poster
#9 Old 24th Nov 2018 at 2:07 AM Last edited by CmarNYC : 24th Nov 2018 at 2:18 AM.
Quote:
Originally Posted by claudiasharon
For some reason I got this error, but nothing was running in the background. I'm trying to convert EA packages to HQ, and what I did was extract the texture files into a separate package. Could there be too many texture files in there for it to go through?

Edit: I attached an image but it may take a minute or two to show up.


I'm not sure why this would happen since the tool only works on one image at a time. Possibly it's finding too many files at one time - hard to say. That doesn't even make sense. I can test on an EA package.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Top Secret Researcher
#10 Old 24th Nov 2018 at 2:16 AM
Quote:
Originally Posted by CmarNYC
I'm not sure why this would happen since the tool only works on one image at a time. Possibly it's finding too many files at one time - hard to say. I can test on an EA package.


Do you need the package I was using?
Ms. Byte
Original Poster
#11 Old 24th Nov 2018 at 2:18 AM Last edited by CmarNYC : 24th Nov 2018 at 4:27 AM.
If it's not too humongous to upload, sure.

Edit: Never mind, I got the error myself. Possibly it's a problem image. Working on it!

Edit2: Doesn't seem to be any individual texture, it just chokes after 200 or 300 or so textures. I see where it's happening but not why. Still working on it.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Test Subject
THANKS POST
#12 Old 24th Nov 2018 at 2:56 AM
thank you
Top Secret Researcher
#13 Old 24th Nov 2018 at 4:37 AM
Quote:
Originally Posted by CmarNYC
If it's not too humongous to upload, sure.

Edit: Never mind, I got the error myself. Possibly it's a problem image. Working on it!

Edit2: Doesn't seem to be any individual texture, it just chokes after 200 or 300 or so textures. I see where it's happening but not why. Still working on it.


I got it at under 50 textures. It'd hit 20 or so and pop up error message. :-/ So not sure what's going on there.
Test Subject
THANKS POST
#14 Old 24th Nov 2018 at 4:58 AM
I haven't even tried it yet and I am so eternally grateful! Seriously, we appreciate this!!
Test Subject
#15 Old 24th Nov 2018 at 9:57 AM
Thank you for answering my previous questions on the test page I indeed hope the quality is a bit better then ♥
A new question suddenly popped into mind while writing this; Let's say you mistook a package for being non-HQ while essentially the cc was already HQ. Will the tool just ignore this package, or will it override/replace the HQ textures with these ''resized'' HQ textures?
Ms. Byte
Original Poster
#16 Old 24th Nov 2018 at 12:46 PM
Quote:
Originally Posted by LunaLechuza
Thank you for answering my previous questions on the test page I indeed hope the quality is a bit better then ♥
A new question suddenly popped into mind while writing this; Let's say you mistook a package for being non-HQ while essentially the cc was already HQ. Will the tool just ignore this package, or will it override/replace the HQ textures with these ''resized'' HQ textures?


It will not resize any texture that's already the correct size.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Ms. Byte
Original Poster
#17 Old 24th Nov 2018 at 12:51 PM
Quote:
Originally Posted by claudiasharon
I got it at under 50 textures. It'd hit 20 or so and pop up error message. :-/ So not sure what's going on there.


Yeah, I got to over 500 once, then the next time failed at just over 200. On the same package. Very odd.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Test Subject
#18 Old 24th Nov 2018 at 2:12 PM
Quote:
Originally Posted by CmarNYC
It will not resize any texture that's already the correct size.

Alright! Thank you for clarifying
Ms. Byte
Original Poster
#19 Old 24th Nov 2018 at 2:53 PM
Quote:
Originally Posted by LunaLechuza
Alright! Thank you for clarifying


No problem! It also won't size down anything that's bigger than needed (in HQ mode). If getting everything into the standard sizes is preferable I can make that optional.

Please do not PM me with mod, tutorial, or general modding questions or problems; post them in the thread for the mod or tutorial or post them in the appropriate forum.

Visit my blogs for other Sims content:
Online Sims - general mods for Sims 3
Offline Sims - adult mods for Sims 3 and Sims 4
Test Subject
THANKS POST
#20 Old 24th Nov 2018 at 9:29 PM
Hi Cmar! This is an amazing tool!

I, too, received the error, but it was after 724 images (out of 1387). I do not know if this extra information is helpful or not. I will continue working on other folders, and see if I can find any new information regarding it.
Test Subject
DELETED POST
25th Nov 2018 at 1:39 AM
This message has been deleted by Tiffany A.
Test Subject
#21 Old 25th Nov 2018 at 2:12 AM
Default Error Message Culprit
I got the error message too and I narrowed it down to which cc file specifically caused it for me.
Error Message:
Link to CC that caused it: http://bit.ly/2DVjxy4
Test Subject
THANKS POST
#22 Old 25th Nov 2018 at 4:42 AM
Perfect!
Test Subject
#23 Old 25th Nov 2018 at 10:20 AM
Quote:
Originally Posted by Tiffany A
This is a really great tool! But sometimes I run into a problem where when I convert a piece of cc that has its own shadow texture, in game there will be black lines on or around that piece of cc. Is there any way for this issue to be fixed? Other than that, I'm not having any problems and the tool runs very, very well.

Here's a picture of what I mean:




And here's a link to a pic of this cc's hq resized shadow texture with the black lines around it: https://i.imgur.com/fypPHYk.png


I have the same thing, it happened when we manualy converted shadow map in png instead of dds(((
Test Subject
#24 Old 25th Nov 2018 at 1:51 PM
Quote:
Originally Posted by CmarNYC
No problem! It also won't size down anything that's bigger than needed (in HQ mode). If getting everything into the standard sizes is preferable I can make that optional.

Ohh! So if for example a specular map has the size of 2048x4096 (which is too big for HQ as 1024x2048 is already double sized for specular maps) then it will remain in that size and it won't be scaled down to the standard HQ size? That's interesting. An optional option to get them in standard sizes would be a nice addition! But only if that's not too much of extra work Atm I'm already grateful for how convenient this tool is
Page 1 of 9