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

TS4 Skininator - Version 2.5.1, 7/4/2022

by CmarNYC Posted 8th Dec 2015 at 11:19 PM - Updated 4th Jul 2022 at 9:51 PM by CmarNYC : New version upload
337 Comments / replies (Who?) - 13 Feedback Posts
Picked Upload! This is a picked upload! It showcases some of the best talent and creativity available on MTS and in the community.
The TS4 skintone system has a lot of potential, and I've been working on a tool to make it easier to work with, similar to Skininator for TS3.

Definition of Terms: (These are the terms I'm using - they're not 'official'.)
TONE : A game file which defines a skintone. It links to the color images, the overlays, and contains various settings.
Skintone : The skin you click on in CAS, which is defined by a TONE file.
Body definition/details : A texture with shading, contouring, and details such as muscles and belly buttons. (Yes, I know there's a separate 'skin details' in CAS. Couldn't think of a better term.) There are separate textures for each age/gender/bodytype.
Skin color : A texture which applies color and some shading composited with the skin details. There is one skin color texture which is applied to all age/genders.
Overlay : A texture which is layered on top of the skin details and skin color. The ages and genders it applies to can be specified.
Burn Mask: (New with 6/2019 patch) An overlay giving burned skin pale areas around the eyes, neck, etc. Does not look good with dark skins.

Tool Overview:

Create/Edit Custom Skin Colors
  • Cloning Tool : Clones game skintones and creates a package with the TONE files.
  • Clone Package Editor : Open and modify cloned packages.
    • TONE Manager : Add/Delete TONEs, modify flags defining the type and usage, modify the swatch color and various other settings, import and export the skin color images. Change property flags/tags, randomization tuning, and skintone panel (warm, neutral, cool, misc.) for selected skintones in a package.
    • Overlay Manager : Add/Delete overlays, define which ages/genders each overlay applies to, import and export overlay images.
    • Previewer : Preview skintones.
Create/Edit Default Replacement Skin Definition:
  • Make New Default Replacement Package : Select which skin definition textures you want to replace and clone them to a new package.
  • Edit/Test Default Replacement Package : Import/Export textures and preview the skin definitions.
Notes: (Please read these!!!)
  • While the preview is reasonably accurate for game skintones, if you modify the overlaid color - especially if you increase the saturation level beyond 40 or so - you probably will not get the same color in-game. If you go over around 100-150 for the overlaid color saturation, you're likely to get weird effects in the game that don't show up in the previewer. EA uses some compositing method I don't understand and can't completely duplicate despite a lot of effort. CAS and the game are the only true test.
  • If it seems like there's a million body skin definition textures, that's because THERE ARE. There's a separate texture for every age and every body type. For many purposes you're better off using an overlay. As far as I know there can be only one set of body skin definition textures, no non-defaults.
  • Speaking of overlays, only one will be used for each age/gender.
  • According to my tests, EA is now using LRLE textures for the skin color and for body skin definition/details; and an RLE2 texture for overlays and for burn masks.
Moar notes:
  • Randomization: Skins are chosen randomly based on the archetypes defined in their flags. The more archetypes a skin has, the more often it gets chosen. If it has no archetypes it will get chosen randomly only if there are no other skins that do have archetypes. The game skins for humans all have archetypes; the game skins for aliens don't have any. Edit: The latest version of the skin TONE resource includes tuning, which appears to determine for which sims a skin gets randomized. Example: skins with 'Human' tuning are randomized for human sims, with 'Vampire' tuning are randomized for vampire sims, etc. Skins with 'Fantasy' tuning don't seem to get randomized at all.
  • The 'Occult' flag(s) determines if a skin shows up for humans, aliens, vampires, etc. Future occult types will probably have their own skins too. A skin must have an Occult / Human tag to show up for humans, an Occult / Alien tag to show up for aliens, an Occult / Mermaid tag for mermaids, etc.
I've also attached a set of templates showing how the body is mapped to the textures.

Face definition/details textures: There are about a billion of them and I haven't even tried to identify them and include them in the tool. I've uploaded two packages with all the face textures I could find, so anyone wanting to work with them can use that as a starting point.

Extract the attached zip, open the folder, and run TS4Skininator.exe. Please report any problems/suggestions/comments about the tool here. Please post problems and questions about creating specific content in the TS4 / Create / CAS Parts forum.

Tutorial: http://www.modthesims.info/showthread.php?t=568713

Additional Credits:
With thanks to Peter and Inge Jones, Kuree, and everyone else who's contributed to s4pi and s4pe, and to Snaitf for figuring out how to make non-default skintones.

Skininator uses the s4pi library for image and package handling. The latest s4pi source code can be found here: https://github.com/s4ptacle/Sims4Tools/tree/develop

The latest s4pe download which includes the image and package dlls used in Skininator can be found here: https://github.com/s4ptacle/Sims4Tools/releases

Updated 7/4/2022, version 2.5.1.0
- Updated tags to support werewolf occult.
- Updated LRLE compression to fix spotty or blotchy appearance in game.
NOTE: The werewolf form does not use skintones, it appears to use the pelt layer system for pets. A separate tool is needed to make custom werewolf skins.

Updated 1/18/2022, version 2.5.0.0
Changes are to the skin definition default replacement section.
-- Now lists and clones both skin definition layers for adults. (EA has main textures and breast/chest overlays for Teen, YA, and elder, and two identical textures for adults. In some cases when the adult main texture was modified the EA layer underneath would show through.)
-- The skin definition preview has been overhauled to more accurately show how skin definitions will look in-game, with options to blend the morph textures over the neutral texture. (The background fill option fills the face with neutral gray. In-game, face preset textures would be layered under the skin definition texture.)
-- When cloning default replacement skin definitions, you now have an option to automatically blend the overlays and underlayers into the main texture and create blank textures for the breast/chest overlays and the adult underlayer so they will not conflict in-game.

Updated 3/29/2021, version 2.4.0.0
-- Now correctly finds game textures and handles EA's empty textures. Cloned packages should now open without an error.
-- Automatically converts old versions of the TONE and outdated textures to new versions and formats. In many cases packages will be smaller because duplicate textures are eliminated.
-- Overhauled texture import/export, overlay handling, and cloning of CC packages.
-- The option to save for Legacy Edition will convert the TONEs and textures to LE-compatible formats. Packages may be bigger because of duplicate textures.
There are a lot of changes under the hood so this is pretty much a beta.

Updated 1/11/2021, version 2.3.0.0
-- Added support for the LRLE format. Textures from old packages will be updated to LRLE on import. LRLE can be used with HQ textures but this needs more testing. I haven't tested in general as much as I'd like so please report problems. Also note that LRLE textures in many/most cases will be bigger than the old RLE textures; this is due to LRLE being lossless and keeping full detail.

Updated 12/20/2020, version 2.2.2.0
-- Corrected a layout problem causing the skin definitions package editor's Save buttons to drop off the window.

Updated 12/15/2020, version 2.2.1.0
-- Corrected bug causing the CAS skin panel not to save correctly when changed for individual skin colors. Users of 2.2 should update.

Updated 12/13/2020, version 2.2.0.0
-- Supports expanded skintones introduced in the Dec. 2020 patch. (You must choose to update to latest version for the skintones to work in patched games.)
-- Added ability to change skintone panel choice for selected skintones.
-- Added option to save a package for Legacy Edition. (I haven't tested this personally so please report errors.)
-- The preview needs tweaking, for a future version.
-- The EA toddler skin definition textures were converted to LRLE and are not usable, to be added in a future version.

Updated 6/23/2020, version 2.1.0.0
-- Now supports HQ textures and overlays.
-- Now runs in 64-bit.
-- Will correct for missing mipmaps.

Notes: I had to modify some of the DDS file code because HQ textures were causing out of memory errors. It seems to be working reliably now but please report problems. Since this is kind of beta-ish I'm leaving the previous version up for now.

Updated Property Tags, 12/15/2019
The property tags definition file has been updated to support Witches. Download "TS4 PropertyTags 12-2019.zip" and extract to the folder where your TS4Skininator files are located, overwriting the old version. Then run Skininator as usual. If you're using version 2.1.0.0 you do NOT need this file.

Updated 7/9/2019, version 2.0.0.0
-- Many changes to support tanning and burning.
----- There are now three sets of skin textures for the normal, tanned, and burned states.
----- Burn masks are optional but can be imported for all three sets. EA only uses them for the burned state in lighter skins. They appear not to be used at all in the normal skin state.
----- I've removed the ability to import separate CAS textures and game textures since there are so many textures to deal with now and I don't know of any skintone creator actually using that feature.
----- The new burn mask multiplier magnifies the effect of a burn mask.
-- Changes to property tags and tuning can now be applied from the main skintone editor tab.
-- Property tags updated.
-- This is sort of an interim version - I probably missed some bugs and the preview needs work.

Updated 8/6/2018, version 1.12.0.0
Added ability to import/export PNG image files.
'Manage Flags for All' is now 'Manage Properties for Selected / Update Version':
-- Property tags can now be changed for selected skintones instead of all
-- All skintones in the package can be updated to the latest version, enabling the Randomization Tuning. The conversion code will make an educated guess of which tuning to select based on property tags.
Updated properties/tags.

6/18/2018
Updated the body UV templates to include toddlers.

Updated 11/6/2017, version 1.10.0.0
Bugfix for program exit when unable to find game package files.
Some fiddling with preview skin color which probably won't make any visible difference.
Updated properties/tags.

Updated 6/27/2017, version 1.9.0.0
Bugfix for errors when editing old format skintones. Again I didn't test adequately, sigh.
Added proper scaling for different screen resolutions, so hopefully this will help with appearance and resizing issues.
Updated properties/tags.

Updated 3/22/2017, version 1.8.0.0
Updated for new version of TONE file. I'm not sure when the new version happened, but I probably didn't test adequately after the February patch, so apologies.
The new TONE format links to a data resource that's identified as skintone tuning. I don't see that it makes any difference but have included changing it as an option in Skininator. (Edit - the tuning seems to determine which if any sim type can get the skintone randomly.)

Updated 2/9/2017, version 1.7.0.0
Sorry this took so long - RL travel, family commitments, and illness.
Added full support for toddlers.
Will now recognize the Occult / Vampire tag so skins can be enabled for vampires.

Updated 11/30/16, version 1.6.0.0
New feature: A new "Manage Flags for All" tab has been added to the Clone Package Editor in the "Create/Edit Custom Skin Colors" tab. This new function allows you to add or remove property flags/tags from all the skintones in a package.

Updated 9/3/16, version 1.5.0.0
Updated for compatibility with male chest overlays, which seem to have been implemented in a patch sometime in July or August.
Bugfix: The program will now export textures with mipmaps intact.
New feature: In the "Create/Edit Default Replacement Skin Details" tab there's now an added "Convert Outdated Package to New Instance IDs" tab. This will convert a pre-June patch default replacement skin to work with the current game.

Updated 6/28/16, version 1.4.0.0
This update is to make the program compatible with the June game patch, which made some changes to the skin details textures:
-- The male and female adult instance IDs have changed and are updated in the program.
-- The new female breast overlay images are now included.
-- Note that the adult females do NOT have breast overlays. Teen, YA, and Elders do.
-- Note that the old male adult textures for the muscle/bony/fat/thin morphs are being overlaid by the new textures. They show through faintly but I dropped them from the program since there's already a million billion textures to deal with and I don't think they're visible enough to matter.

Updated 1/31/16, version 1.3.0.0
Fixed bug causing new content clones to replace game skin textures.
Moved property tags to external files which can be easily updated without making a new version of the program.

Updated 12/12/15, version 1.2.0.0
Fixed overlay manager to update the overlay list when changes are committed. Added selection of ages teen to elder to previewer.

Operating System:
      Windows: Windows XP, Windows Vista, Windows 7, etc
Utility Type:
      CC Editors: Tools for modifying .package files, sims*pack files, and resources contained within those files.
Plugin Type:
      Not Applicable: Standalone tools

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

Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
TS4Skininator_2_5_1_0.zip | Extract folder and run TS4Skininator.exe

Size: 4.85 MB · Downloads: 6,320 · 4th Jul 2022
4.85 MB 6,320 4th Jul 2022
SkininatorTS4_Source_2.5.1.0.zip | Source files, not needed to use the tool

Size: 3.89 MB · Downloads: 1,659 · 4th Jul 2022
3.89 MB 1,659 4th Jul 2022
XmodsDataLibSource_7-04-2022.zip | Source files, not needed to use the tool

Size: 199.7 KB · Downloads: 1,785 · 4th Jul 2022
199.7 KB 1,785 4th Jul 2022
TS4FaceTextures.zip | Face texture images

Size: 14.06 MB · Downloads: 15,186 · 8th Dec 2015
14.06 MB 15,186 8th Dec 2015
TS4BodyUVtemplates.zip

Size: 2.23 MB · Downloads: 7,386 · 18th Jun 2018
2.23 MB 7,386 18th Jun 2018
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.
 
337 Comments / Replies (Who?) - 270 Feedback Posts, 57 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 14 of 14
Ms. Byte
Original Poster
#326 Old 18th Feb 2022 at 7:51 PM
Quote:
Originally Posted by SaphiraGrace
That's what I thought was going on but I thought I had tried doing just that and couldn't get it to work for me for some reason, would you be able to help instruct me or send me a tutorial on ho to go about that that I could follow?

Thank you for all of your help!


Just export the skin color texture from Skininator, darken it with Photoshop or whatever, import it again, and test in game. If that's not clear, could you point out what you don't understand?

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
#327 Old 21st Feb 2022 at 1:40 AM
Quote:
Originally Posted by CmarNYC
Just export the skin color texture from Skininator, darken it with Photoshop or whatever, import it again, and test in game. If that's not clear, could you point out what you don't understand?


Yes, I have done all that, unfortunately with no success,

One thing I -almost- had success with was adding an overlay of my sims skin texture in the "Cloned Package Editor" "Overlay Manager" tab. Seemingly completely eliminating all fitness overlays from showing up on the skin in TS4Skinninator's Previewer, which is the desired effect.

However, when I load the game and click on the custom skintone, it's as if the overlay isnt being applied and I still see the much brighter version despite the skin looking exactly how I wanted it to in the TS4Skinninator's "Previewer" tab.

I have attached this altered package below to have you see what I mean.
Download - please read all instructions before downloading any files!
File Type: rar CeretiSpyre_Spyre_Skintone(Skinninator).rar (9.33 MB, 3 downloads)
Ms. Byte
Original Poster
#328 Old 21st Feb 2022 at 3:07 PM
Quote:
Originally Posted by SaphiraGrace
Yes, I have done all that, unfortunately with no success,

One thing I -almost- had success with was adding an overlay of my sims skin texture in the "Cloned Package Editor" "Overlay Manager" tab. Seemingly completely eliminating all fitness overlays from showing up on the skin in TS4Skinninator's Previewer, which is the desired effect.

However, when I load the game and click on the custom skintone, it's as if the overlay isnt being applied and I still see the much brighter version despite the skin looking exactly how I wanted it to in the TS4Skinninator's "Previewer" tab.

I have attached this altered package below to have you see what I mean.


Your package still has the original, undarkened texture. I modified your original skintone package by just darkening the texture as I said, and it looks pretty much like your skin details version to me.

As for the preview not being accurate, I don't know but will take a look at how I'm blending them. For all I know EA changed the way they handle overlays.
Screenshots

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
#329 Old 12th Jun 2022 at 3:19 PM
May I just say, Skininator is absolutely amazing and you are AWESOME. I've had much success with this program.

I have questions though, about Overlaid Color. It seemingly cannot handle tones other than red. A hue of 0 gives a lovely red glow. But a hue of 210 gives a sickly green glow, rather than the purple shade I was going for.

Here's what it looks like

Here's the package

What am I doing wrong?
Ms. Byte
Original Poster
#330 Old 12th Jun 2022 at 4:05 PM
Quote:
Originally Posted by Ewandra
May I just say, Skininator is absolutely amazing and you are AWESOME. I've had much success with this program.

I have questions though, about Overlaid Color. It seemingly cannot handle tones other than red. A hue of 0 gives a lovely red glow. But a hue of 210 gives a sickly green glow, rather than the purple shade I was going for.

Here's what it looks like

Here's the package

What am I doing wrong?


You're not doing anything wrong. The overlaid color is included for you to work with, but I don't completely understand how EA blends the skintones so the preview may not be accurate and I can't really predict how different overlaid colors will affect skins in-game. Sorry, but you'll just have to experiment.

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
#331 Old 12th Jun 2022 at 4:22 PM
Quote:
Originally Posted by CmarNYC
You're not doing anything wrong. The overlaid color is included for you to work with, but I don't completely understand how EA blends the skintones so the preview may not be accurate and I can't really predict how different overlaid colors will affect skins in-game. Sorry, but you'll just have to experiment.

I see! Thank you so much!
It comforts me to know that we simply don't know, haha. I'll experiment. Time to get creative.
Much love by the way. Again, you are awesome.
Test Subject
#332 Old 18th Jun 2022 at 12:15 PM
Hello! I'm back with another query.

Some skintones do not show up in-game.
They show up fine in CAS.



I tried to shuffle the skintones. Consistently the middle row causes trouble.
I tried to remove a row, so that I would have only two. But now the first row was the one that caused trouble.

All skintones have the same configs.



What could be causing this?
Ms. Byte
Original Poster
#333 Old 18th Jun 2022 at 12:28 PM
Quote:
Originally Posted by Ewandra
Hello! I'm back with another query.

Some skintones do not show up in-game.
They show up fine in CAS.



I tried to shuffle the skintones. Consistently the middle row causes trouble.
I tried to remove a row, so that I would have only two. But now the first row was the one that caused trouble.

All skintones have the same configs.



What could be causing this?


I suspect that overlaid color again. In testing I found that saturations over maybe 20 or so caused unexpected results in CAS and presumably the game. EA uses some method of blending that color that I don't understand. Your observation about the row order is interesting and raises the possibility of a bug in the game.

My advice is to try lowering the saturation.

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
#334 Old 18th Jun 2022 at 12:42 PM
Quote:
Originally Posted by CmarNYC
I suspect that overlaid color again. In testing I found that saturations over maybe 20 or so caused unexpected results in CAS and presumably the game. EA uses some method of blending that color that I don't understand. Your observation about the row order is interesting and raises the possibility of a bug in the game.

My advice is to try lowering the saturation.


Thanks for the tip!

I tried lowering the saturation to 15 on all skintones, but the issue still happens.
So I tried lowering it to 0. No luck! It still happens.

Maybe the game can't handle so many skintones in a single package?
Ms. Byte
Original Poster
#335 Old 18th Jun 2022 at 4:48 PM
Quote:
Originally Posted by Ewandra
Thanks for the tip!

I tried lowering the saturation to 15 on all skintones, but the issue still happens.
So I tried lowering it to 0. No luck! It still happens.

Maybe the game can't handle so many skintones in a single package?


I doubt it but who knows? Possibly it's something about how you've made the tones, and you could upload your package for me to look at and see if I get the same results. Also, since this latest patch I've seen some strange behavior in CAS so it's still possible there's a game bug causing this.

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
#336 Old 20th Jun 2022 at 7:36 PM
Default Bugged Skintones after newest update
Two of my skintones,which I had created with the current version of your tool are not working correctly anymore after the newest Sims 4 Update. They worked as they should before the update.

They look like this...




I have no idea how to fix this so I would appreciate any assistance with this. I already tried a few things like maybe resizing the texture to 1024x2048(because they were 2048x4096). It almost fixed my second skintone (Trapper) but the head part is still showing blackness.

Is this in some way related to that LRLE issue that occurs with the new patch which is causing many cc skintones to break and can this be fixed in some way? My older skintones still rely on RLE2 and they work without issues. Can you maybe provide an option in your tool to convert the imported textures from LRLE to RLE2 if fixing the faulty LRLE textures isn't possible?

I'll provide my Skintone Packages if you want to take a look at them.
Screenshots
Download - please read all instructions before downloading any files!
File Type: zip Dimenarius_FaultySkinTones.zip (9.39 MB, 2 downloads)
Ms. Byte
Original Poster
#337 Old 20th Jun 2022 at 9:14 PM Last edited by CmarNYC : 20th Jun 2022 at 10:18 PM.
Quote:
Originally Posted by Dimenarius
Two of my skintones,which I had created with the current version of your tool are not working correctly anymore after the newest Sims 4 Update. They worked as they should before the update.

They look like this...




I have no idea how to fix this so I would appreciate any assistance with this. I already tried a few things like maybe resizing the texture to 1024x2048(because they were 2048x4096). It almost fixed my second skintone (Trapper) but the head part is still showing blackness.

Is this in some way related to that LRLE issue that occurs with the new patch which is causing many cc skintones to break and can this be fixed in some way? My older skintones still rely on RLE2 and they work without issues. Can you maybe provide an option in your tool to convert the imported textures from LRLE to RLE2 if fixing the faulty LRLE textures isn't possible?

I'll provide my Skintone Packages if you want to take a look at them.


Thanks! I haven't tested much with skintones so this helps. I tried converting to RLE2 and both skintones made the sim solid black. I'm mystified since I also saw that older skintones using RLE2 work fine. Also mystified because the game itself uses LRLE for skintones. To answer your question, yes I think the game now has some kind of buggy behavior when using CC LRLE. I'll keep trying to figure it all out.

Edit: You can import your textures with the option to save as LRLE unchecked or use my conversion tool to experiment.

https://modthesims.info/download.php?c=1&t=668332

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
#338 Old 22nd Jun 2022 at 7:46 PM
Quote:
Originally Posted by CmarNYC
Thanks! I haven't tested much with skintones so this helps. I tried converting to RLE2 and both skintones made the sim solid black. I'm mystified since I also saw that older skintones using RLE2 work fine. Also mystified because the game itself uses LRLE for skintones. To answer your question, yes I think the game now has some kind of buggy behavior when using CC LRLE. I'll keep trying to figure it all out.

Edit: You can import your textures with the option to save as LRLE unchecked or use my conversion tool to experiment.

https://modthesims.info/download.php?c=1&t=668332


Thanks for trying to fix it. I hope this gets fixed soon
Page 14 of 14