RimWorld

RimWorld

69 ratings
Genetic Heads Framework for [NL] Facial Animation
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
219.843 KB
14 Jun @ 5:24pm
20 Aug @ 7:04pm
13 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Genetic Heads Framework for [NL] Facial Animation

In 1 collection by Sunshiney Days
Sunny's [NL] Facial Animation Mods
6 items
Description
Genetic Heads Framework for Facial Animation
Match your pawns’ faces to their genes! Automatic storytelling with dev mode override control.

Now compatible with Facial Animations Xenotype Compatibility! It replaces the patch logic of Xenotype Compatibility with the C# logic of the Genetic Heads Framework for supported races, and all other races supported by Xenotype Compatibility will be unaffected.

What This Mod Does
This mod connects genes to Facial Animation head types. If you have the head textures with the right code in your mods, this mod will automatically apply the appropriate head to your pawns.

Requires Head Packs or patched-in gene xml to work!

Check out my Biotech Head Pack for vanilla Biotech heads edited to work with Facial Animation. Pairs very nicely with Vanilla Textures Expanded.

Also check out my Mod Head Pack for some heads from mods, also in vanilla style (VRE, Roo's).

Features
  • Automatic face assignment based on genes
  • Supports multiple required genes per head (furskin and heavy jaw, gaunt and furskin, etc)
  • Fallback system assigns race/gender-appropriate heads if no genetic match
  • Supports multiple head textures for a single gene (like base game Biotech furskin's three textures)
  • Gizmos for dev mode control–assign or clear any pawn’s head regardless of genes, can toggle gizmos off in settings
  • Lightweight, extensible design–easily add your own head packs

Known Issues:
  • Weird behavior with HAR

Modder-Friendly
Make your own head packs or patch existing Facial Animation heads! Make sure art is Facial Animation appropriate (no eyes, same folder system as Facial Animation, etc)

To patch a mod that is already FA compatible:
<Patch> <Operation Class="PatchOperationFindMod"> <mods> <li>Genetic Heads Framework for [NL] Facial Animation</li> </mods> <match Class="PatchOperationAdd"> <xpath>/Defs/FacialAnimation.HeadTypeDef[defName="def_Name_here"]</xpath> <value> <modExtensions> <li Class="FacialAnimationGeneticHeads.FARequiredGenes"> <requiredGenes> <li>geneDefName</li> </requiredGenes> </li> </modExtensions> </value> </match> </Operation> </Patch>

To patch a mod that you've made FA compatible head art for:
<Patch> <Operation Class="PatchOperationFindMod"> <mods> <li>Name of Mod to Patch</li> </mods> <match Class="PatchOperationAdd"> <xpath>/Defs</xpath> <value> <FacialAnimation.HeadTypeDef> <defName>FAHeadTypeDefName</defName> <texPath>example/folderpath</texPath> <probability>0</probability> <shader>Map/CutoutComplex</shader> <modExtensions> <li Class="FacialAnimationGeneticHeads.FARequiredGenes"> <requiredGenes> <li>geneDefName</li> </requiredGenes> </li> </modExtensions> </FacialAnimation.HeadTypeDef> </value> </match> </Operation> </Patch>

A Note from Me
I'm open to feedback! I've tested this mod on my own game of 731 mods (not even joking about the number XD) and I didn't notice any slowdown or performance issues beyond what I'm used to in a heavily modded game.

And just a heads up, this is my first C# mod, so I'm almost entirely sure I've done something that isn't as efficient as it could be. If anyone who knows their way around the language wants to check it out, I've posted the framework code on GitHub. I'm happy to update with improvements and credit appropriately.

A little support goes a long way! If you’d like to help me keep creating, you can do so on Ko-fi![ko-fi.com] Also updating on what mod heads I'm working on next, so come check it out!
37 Comments
Lemniscate_Mike 18 Aug @ 3:32am 
@Sunshiney Days, oh I see. Okay great! Thanks for the response and keep up the good work!
󠀡󠀡 17 Aug @ 10:35pm 
could you make a patch mod for alpha genes please
i'm also using Reel's Facial Animation
Sunshiney Days  [author] 17 Aug @ 8:00pm 
@Lemniscate_Mike, I am planning on it, but the Anomaly faces aren't based on genetics, so it would actually take a whole new system! Right now I'm working on genetic eyes and mouths, but after that, Anomaly support will be my focus
Lemniscate_Mike 17 Aug @ 4:04pm 
Would you be planning on updating this to support leathery faces and such(I'm asking for each mod, as I dunno who needs to do it)?
Grey 14 Aug @ 4:43pm 
>changing package.id was a bad idea
>so I'll change them again :lunar2019grinningpig:

jk, love your mods ❤️
KaosityReign 14 Aug @ 12:04pm 
The mod author changed the package ID which caused the game and mod managers like RimSort, to not recognize the mod anymore.
The author then changed the package ID back. So if you updated your mod list with the new package ID then it would have not been recognized again.

You can see this in the Change Notes log.
Most Definitely a Mimic 14 Aug @ 11:50am 
Rex705 Okay good I though I was going mad! This is happening to me as well!
Rex705 14 Aug @ 7:27am 
The 3 main head mods keep getting removed from my active mod list. Whats going on?
Sunshiney Days  [author] 3 Aug @ 4:33am 
@Mr F, yes
Mr. F 3 Aug @ 2:21am 
"Now compatible with Facial Animations Xenotype Compatibility!".
Does this include the temporary update from Facial Animations Xenotype Compatibility 1.4➜1.6 (Temp) ?