RimWorld

RimWorld

1,185 ratings
Gradient Hair
7
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
4.933 MB
Mar 18, 2019 @ 2:05pm
Mar 29 @ 9:45pm
19 Change Notes ( view )

Subscribe to download
Gradient Hair

Description
ABOUT
Adds gradient hair to the game. Mod hairs are supported. On pictures are hairs from SS Lovely Hair Style mod.

All new pawns (as well as existing when you enable mod for the first time) have a chance to get gradient hair, which is by default 25% for women and 2% for men. Those numbers can be edited in mod settings.

This mod is safe to add and remove from save games.

MOD SUPPORT
The following mods add an option to change gradient hair color:


KNOWN INCOMPATIBILITIES
  • Facial stuff - you won't get any gradients, but hair color will change.

MOD API
If you wish to set pawn's gradient hair color from another mod, you can use its public API.
For reference, see how Hair Dye implements it:
https://github.com/AUTOMATIC1111/HairDye/blob/master/Source/GradientHairApi.cs
I recommend that you use the API the way it's used in Hair Dye, via reflection. Copying GradientHairApi.cs into your project is an easy way to do that.
The alternative is to link to GradientHair.dll at runtime, and this makes the game misbehave when I update my mod - you'd have to recompile yours every time I update mine.

(note that after setting hair color you'd still have to remake pawn's graphics yourself, see those two lines: 1[github.com]2[github.com])

SOURCE CODE
https://github.com/AUTOMATIC1111/GradientHair

UPDATES
13-Aug-2021
- Fixed gradient hair not working with HAR

12-Aug-2021
- Added support for styling station from Ideology
- Added more hair masks

16-Jul-2021
- 1.3

29-Feb-20:
- fixed dev mode error related to edb integration

24-Feb-20:
- 1.1 support

21-Mar-19:
- added support for alien races; this mod now works with the likes of Androids and Crystalloid (Rewrite)
261 Comments
Danik Plan May 29 @ 4:33am 
@AUTOMATIC it doesn't work when I have EdB Prepare Carefully it doesn't work.
Asylum Harem May 16 @ 11:43pm 
Is this mod compatible with Pawn Editor? I had to delete CE because it was causing too many bugs :/
Xenogray May 8 @ 1:32pm 
Same issue for babies and random gradient hairs.
Pride Kitty Apr 26 @ 3:09am 
Someone made a fix, but the change has yet to been pushed to the repo. Hopefully the author can look over the changes at some point and upload the fix ^^
Arin Apr 21 @ 12:35pm 
I also have the invisibility issue, relating to bald pawns. I don't think its the baldness itself that is causing the issue, because I've seen bald pawns spawn in game just fine, several yttakin for example and a genie or two. I think the issue is it's when they spawn in with a gradient applied to them while also bald. Maybe!
Madjesty Apr 20 @ 3:11pm 
I have had the same issue with bald pawns, De Parapluman's fix works great for it.

The same thing has also happened to me with babies. I had a baby born with gradient hair, and BAM, everyone in the hospital disappeared, including the baby. I used character editor to remove the gradient hair on the baby, and everything came back.
RastaCat82 Apr 18 @ 3:13am 
Also had the issue of pawns turning invisible, seemingly triggered by a caravan spawning in. Have removed the mod and so far it's fixed it
shelevenspace Apr 17 @ 11:58pm 
Confirmed on the invisible issue
gh0stashes Apr 17 @ 8:53pm 
When a bald pawn spawns, all pawns become invisible. This means any time an Yttakin, Genie, or any other bald xenotype enters the map, every pawn becomes invisible due to rendering errors. Had to remove.
Xeara Apr 17 @ 6:48am 
New bug detected for 1.5 Anomaly. My pawn become invisible when bald pawn / shambler skeleton :steamsad:spawn.