RimWorld
[NL] Facial Animation - WIP
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.
< >
Se afișează 1-15 din 58 comentarii
I would also be interested in seeing if this can be done.
Nals  [dezvoltator] 22 iul. 2019 la 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>
Editat ultima dată de Nals; 22 iul. 2019 la 7:19
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 la 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 la 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.
Editat ultima dată de Lyseria; 16 aug. 2019 la 3:19
Where exactly would you put the code?
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 la 2:43 
Postat inițial de 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 la 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 la 18:25 
Postat inițial de 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?
Editat ultima dată de Wizard; 12 dec. 2019 la 18:25
felmane 13 dec. 2019 la 13:20 
Postat inițial de 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 la 13:21 
I also have a bunch of other patches that I've made.
The John 21 ian. 2020 la 14:36 
Could someone make a patch for the Astoriel and teach me how and where to put it?
@felmane
you planning to release the patches to the public? :)
felmane 19 apr. 2020 la 16:49 
the patches are all the same, just replace "DRNTF_Race" with whatever race you want it to work for
< >
Se afișează 1-15 din 58 comentarii
Per pagină: 1530 50