RimWorld

RimWorld

[NL] Facial Animation - WIP
Falke Tae ♥ 22. maj 2019 kl. 5:51
Alien Race Framework/Kurin mod compatibility
Hello! I love your mod and the potential it has, but with some mods that add the alien races the facial animations don't work! I've looked into the XML code between Kurin, your mod and Alien Races and I noticed in the race_patch.xml file you tell it to animate the ThingDef "human", I tried adding to the patch to have it use the Alien Race (DRTNF_Race) but it didn't work out. I'm curious if you could look into this and add in that feature! There are other aliens mods out there too like Ratkins that would be amazing with this mod as well.

Again thank you for this mod and I hope you can make this work.
< >
Viser 1-15 af 58 kommentarer
FlareFluffsune 19. juli 2019 kl. 4:13 
I would also be interested in seeing if this can be done.
Nals  [udvikler] 22. juli 2019 kl. 7:06 
Hi, I 'm not good at English, so I show some examples using patch codes. With this current version, you can make patches for Alien Races as following. That is for Android Mods.
Note: I have not tested it well, so, maybe, probably there are some bugs to use them.

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/comps</xpath>
<value>
<li>
<compClass>FacialAnimation.DrawFaceGraphicsComp</compClass>
</li>
<li>
<compClass>FacialAnimation.HeadControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.EyeballControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.LidControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.BrowControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.MouthControllerComp</compClass>
</li>
<!--<li>
<compClass>FacialAnimation.EmotionControllerComp</compClass>
</li>-->
<li>
<compClass>FacialAnimation.FacialAnimationControllerComp</compClass>
</li>
</value>
</li>
</operations>
</Operation>
</Patch>
Sidst redigeret af Nals; 22. juli 2019 kl. 7:19
felmane 6. aug. 2019 kl. 0:42 
Where would this file go, and could you do multiple races in 1 file? Or is it 1 file per race?
I love the mod!
felmane 6. aug. 2019 kl. 15:42 
I tried using that code to patch Orassians (neko patch) and Dragonians, but it didn't work. Popped up an error before, but I can't find it again
Lyseria 16. aug. 2019 kl. 3:08 
@felmane
Seems like that patch is for Androids. It looks like a template though so I'm guessing you just need to change some keywords to apply it for Orassians and Dragonians.
Sidst redigeret af Lyseria; 16. aug. 2019 kl. 3:19
YoutubeDeclan 1. sep. 2019 kl. 21:18 
Where exactly would you put the code?
Daemon976 6. nov. 2019 kl. 8:31 
I've used this template to patch multiple alien races that have human-shaped heads successfully and it looks awesome. Ratkin get even cuter, if that's possible.

With non-human heads like Forsaken or Avali if you patch this in it will replace the heads with human shaped ones, which while cute doesn't fit with those races.

To use you need to place an xml file with the template in the Patch folder of this mod (or create a new local mod folder) so that the game will load and apply it.
Bonk 2. dec. 2019 kl. 2:43 
Oprindeligt skrevet af Daemon976:
I've used this template to patch multiple alien races that have human-shaped heads successfully and it looks awesome. Ratkin get even cuter, if that's possible.

With non-human heads like Forsaken or Avali if you patch this in it will replace the heads with human shaped ones, which while cute doesn't fit with those races.

To use you need to place an xml file with the template in the Patch folder of this mod (or create a new local mod folder) so that the game will load and apply it.

So, I've done what you've suggested, but the animations are still not showing up on my alien races. No errors in the console, but definitely no animations either. Humans have them, but Dragonians for example do not.
Wizard 12. dec. 2019 kl. 17:58 
cant get this to work with any other race..... i find there defined names in the code but still doesnt work
Wizard 12. dec. 2019 kl. 18:25 
Oprindeligt skrevet af Nals:
Hi, I 'm not good at English, so I show some examples using patch codes. With this current version, you can make patches for Alien Races as following. That is for Android Mods.
Note: I have not tested it well, so, maybe, probably there are some bugs to use them.

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]</xpath>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="ChjAndroid"]/comps</xpath>
<value>
<li>
<compClass>FacialAnimation.DrawFaceGraphicsComp</compClass>
</li>
<li>
<compClass>FacialAnimation.HeadControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.EyeballControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.LidControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.BrowControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.MouthControllerComp</compClass>
</li>
<!--<li>
<compClass>FacialAnimation.EmotionControllerComp</compClass>
</li>-->
<li>
<compClass>FacialAnimation.FacialAnimationControllerComp</compClass>
</li>
</value>
</li>
</operations>
</Operation>
</Patch>
ive tried multiple races such as Kurin, Ratkin, Callistan, Astoriel by replacing the "ChjAndroid" in both places with the specific races defName "DRTNF_Race" for kurin for example none of them work except for Android one.. what am i doing wrong?
Sidst redigeret af Wizard; 12. dec. 2019 kl. 18:25
felmane 13. dec. 2019 kl. 13:20 
Oprindeligt skrevet af Wizard530:
cant get this to work with any other race..... i find there defined names in the code but still doesnt work
This is my personal patch for Kurins, you can check it against yours:
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="DRNTF_Race"]/comps</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="DRNTF_Race"]</xpath>
<value>
<comps />
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="DRNTF_Race"]/comps</xpath>
<value>
<li>
<compClass>FacialAnimation.DrawFaceGraphicsComp</compClass>
</li>
<li>
<compClass>FacialAnimation.HeadControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.EyeballControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.LidControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.BrowControllerComp</compClass>
</li>
<li>
<compClass>FacialAnimation.MouthControllerComp</compClass>
</li>
<!--<li>
<compClass>FacialAnimation.EmotionControllerComp</compClass>
</li>-->
<li>
<compClass>FacialAnimation.FacialAnimationControllerComp</compClass>
</li>

</value>
</Operation>
</Patch>
felmane 13. dec. 2019 kl. 13:21 
I also have a bunch of other patches that I've made.
The John 21. jan. 2020 kl. 14:36 
Could someone make a patch for the Astoriel and teach me how and where to put it?
Solzucht 19. apr. 2020 kl. 0:01 
@felmane
you planning to release the patches to the public? :)
felmane 19. apr. 2020 kl. 16:49 
the patches are all the same, just replace "DRNTF_Race" with whatever race you want it to work for
< >
Viser 1-15 af 58 kommentarer
Per side: 1530 50