RimWorld

RimWorld

90 ratings
Vanilla Skin Tone Genes
3
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
41.762 KB
Feb 22, 2024 @ 3:16am
Sep 10 @ 8:46pm
8 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Vanilla Skin Tone Genes

Description
Adds a total of 9 new genes for the vanilla skin tones.


Can be found under the "Cosmetic - skin" Tab.
Named ingame as "Skin Tone 1" through 9.


Should you use the Inclusive Skin Tones Mod then try this mod.
https://steamcommunity.com/sharedfiles/filedetails/?id=3554881228


Special Thanks:
Lyn the Cookie and their mod [LYN] Cookie Genes (Skin and Hair Colors), which served as a template to create this mod.
tiagocc0 and their permission to reference their mod NoReddishBodies, which served as reference to create the .dll for this mod.
Buffalonian and their testing and bug fixing.
72 Comments
Abbot Dec 8 @ 10:19am 
thanks!
Zahawk84  [author] Dec 8 @ 10:14am 
@Abbot This simply adds a gene equivilant of the base skin tones, you can make them inheritable by adding them to the germline though. (So no baseliners havn't been changed)
Try this if you want edited baseliners https://steamcommunity.com/sharedfiles/filedetails/?id=2883191804&searchtext=melanin+are+extractable
Abbot Dec 7 @ 3:39am 
Does this make every baseliner have one of the genes and make them inheritable?
LINX Nov 17 @ 8:56am 
Need support for Vanilla Races Expanded - Android. Each time Android is updated, it automatically adds three Skin Tone 1 genes. And it doesn't even take effect, android's skin turn into that dreary white.
Zahawk84  [author] Sep 10 @ 8:50pm 
@Buffalonian Thanks for the bug fix, I've updated the .xml with the new exclusion tag and removed selection weight. But the .dll is necessary to keep the skin shaders, you can test for yourself with skin tone 9 with/without the .dll, and the difference in colour will be noticeable.
Buffalonian Sep 10 @ 6:37pm 
Okay, I've got good news and bad news.
Good news: looks like you can just add:
<exclusionTags>
<li>SkinColorOverride</li>
</exclusionTags>
To your VSTG abstract GeneDef and it fixes the problem for me, randomized multiple skin genes are back.
Bad news... I deleted the .dll and the <selectionWeight> tag in the same abstract and it seems to be working fine without them?
(I'm just trying to match the GeneDefs in Rimworld/Data/Biotech/Defs/GeneDefs/GeneDefs_Cosmetic.xml > "GeneSkinColorOverride").
Buffalonian Sep 10 @ 6:12pm 
Sorry to report, there's still something buggy here (no errors in log): all DLCs + Harmony + Log Publisher + Vanilla Skin Tone Genes:
When I include 1 or more VSTG genes in a xenotype, germline or not, the visible skin tone is set to the darkest (highest-numbered) VSTG gene present, and *none* of the skin genes in the colonist gene list are grayed out.
As a quick test to reproduce:
Create xenotype with red hair, blue hair, red skin, blue skin. Apply and randomize on character creation for a while, you'll see it switch through the expected combos, you'll see one hair and one skin gene active. This works fine.
Add a VSTG gene to that xenotype, apply and randomize, every pawn will show as that VSTG skin tone visually *and* all three skin genes will look "active" (not grayed out). Same behavior with multiple VSTG genes.
(You'll note that the hair selection works fine the whole time and selects a single gene like you'd want.)
(Thanks for making a great mod!)
Tom Sep 2 @ 3:44pm 
yay thank you. Time to use this mod!
Zahawk84  [author] Aug 29 @ 7:16pm 
Right final update. After bashing my head against the .xml files I found it impossible, so I finally bit the bullet and learned how to create a .dll which solved the ingame error. Mod should be 100% complete with this.
beans Aug 29 @ 9:00am 
The skin color genes in this mod say they're overridden by the vanilla skin color gene, so the genes are almost always ignored for me