RimWorld

RimWorld

45 ratings
Patching a (HAR) race for [NL] Facial Animation
By VanillaSky
This guide can help you add compatibility between a race from Humanoid Alien Races and [NL] Facial Animations.
   
Award
Favorite
Favorited
Unfavorite
Patch File
You find the patch file in the location of the mod folder of Facial Animations (1635901197/Patches). In this file (Race_Patches.xml) you change the defName from “Human” to the name of your race. The name can be found in the race file of your race in most cases in this path: 1.2\Defs\ThingDefs_Races (or just Defs\ThingDefs_Races).

For example: …\Steam\steamapps\workshop\content\294100\1342510409\1.2\Defs\ThingDefs_Races \Race_Astoriel.xml. You can find the mod number (here: 1342510409) in the mod’s workshop link.

<AlienRace.ThingDef_AlienRace ParentName="BasePawn" Name="Alien_Astoriel">
<defName>Alien_Astoriel</defName>
Custom Heads
If you also want to add custom heads (for example without human ears) you need an extra Def file (HeadType.xml). You find this file in the Facial Animation mod folder under this path:
…\1635901197\1.2\Defs\FaceTypeDefs\Human

There you also find all the other Def files in case you want to add other custom face parts.
Copy this file into your own mod folder.
What you have to do here:
  • Change the defName of the head (every head needs to have a unique defName)
  • Change the path to where your textures are
  • Add a line with <raceName>name of your race</raceName>. (same as the defName in the patch file)
In the end it should look similar to this I made for the Astoriel:



You need one “head definition” for each race you want to patch. You can put it all in one file underneath each other. You can only have one file because it has to be named exactly “HeadType.xml” (not HeadTypesAstoriel.xml etc.). If you don’t specify <raceName>, every race in your game will apply this head shape.
In my mods the texture path is very similar to the original one and I would also recommend this. Furthermore, the name of the textures always needs to be like the originals:
normal_south.png
normal_east.png
normal_north.png

If you want your pawn to adopt the blush animation you also have to place textures with blushed faces (maybe compare them to the originals) in the same folder and name them:
blush_south.png
blush_east.png
blush_north.png

Finished Patch
Your finished patch should be placed in your local mod folder (…\Steam\steamapps\common\RimWorld\Mods\).
It should consist of the following subfolders:
  • 1.2
    • Patches
      • YourPatchFile.xml
  • About
    • About.xml
  • Defs (if you use custom textures for FA)
    • HeadType.xml
    • MouthType.xml
    • BrowType.xml
    • ...
  • Textures

If you need more information about modding or for example the About.xml, you can have a look in the RimWorld Wiki (https://rimworldwiki.com/wiki/Modding_Tutorials, https://rimworldwiki.com/wiki/About.xml).
The wiki of Humanoid Alien Races is also very informative (https://github.com/RimWorld-CCL-Reborn/AlienRaces/wiki).

I hope this guide helps you. If you miss any information please write a comment.
9 Comments
🌸The Kitsune🌸 6 Jul, 2023 @ 7:20pm 
If anyone's trying to use this in 2023, know it's a little outdated because of Biotech/etc
Apxthy 21 Jul, 2022 @ 4:28pm 
vanilla sky is an underrated movie. cool guide
Auwei 14 Jun, 2022 @ 3:11am 
nobody wants to see you pathetic fetishes!
Nebe 17 Oct, 2021 @ 3:50pm 
i wish i knew how to patch i kinda get this but not rllly the custom head part i mean
Nebe 17 Oct, 2021 @ 3:48pm 
@solidsnake8608 thx
solidsnake8608 7 Oct, 2021 @ 8:05pm 
@Gohang12 I think there already is a patch for that. Look in the patches folder of this mod https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2280607572 . There is a 7zip file that has a bunch of patches, Lord of the Rims is one of them. Just extract it in the same location.
Nebe 4 Oct, 2021 @ 11:26am 
@VanillaSky can i get help on patching lord of the rims to give them face texture like how they have nose blush etc
VanillaSky  [author] 4 Aug, 2021 @ 10:36am 
I don't think so. It sounds for me like the body you're using is maybe too big? You could try and compare the body texture files.
SwiftKOFTW 15 Jul, 2021 @ 3:41pm 
By chance is there a way to add a way to re-position the head. For example I am trying to work with a race with a weird head position and when I try to patch it is on the middle of the body rather than where the head belongs.