RimWorld

RimWorld

Character Editor
This topic has been locked
Aelanna Jul 24, 2021 @ 8:06am
Errors when attempting to use cosmetic implants
Apologies if this isn't the right place, but I didn't see anywhere else to post bug reports.

When attempting to apply cosmetic implant hediffs from Eccentric Tech - Cosmetic Modifications to colonists, there's a couple of issues that pop up in Character Editor:

  • Ear implants are being restricted to the left ear and right ear body parts, which are incorrect as the cosmetic implants are supposed to be put into the left crown and right crown slots.
  • The tail bone body part that is supposed to accept tail implants does not show up at all.

This is the patch that applies the tail bone body part:

<li Class="PatchOperationTest"> <xpath>Defs/BodyDef[defName="Human"]/corePart/parts/li/def[text()="CosmeticTail"]</xpath> <success>Invert</success> </li> <li Class="PatchOperationInsert"> <xpath>/Defs/BodyDef[defName="Human"]/corePart/parts/li[customLabel="right leg"]</xpath> <order>Append</order> <value> <li> <def>CosmeticTail</def> <customLabel>tail bone</customLabel> <coverage>0.002</coverage> <depth>Outside</depth> <groups> <li>Torso</li> </groups> </li> </value> </li>

This is one of the crown body part patches:

<li Class="PatchOperationInsert"> <xpath>/Defs/BodyDef[defName="Human"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[customLabel="right ear"]</xpath> <order>Append</order> <value> <li> <def>LeftCrown</def> <customLabel>left crown</customLabel> <coverage>0.005</coverage> <depth>Outside</depth> <groups> <li>UpperHead</li> <li>FullHead</li> </groups> </li> </value> </li>

Here is a sample of one of the ear implant hediffs:

<!-- base cosmetic hediff --> <HediffDef Name="EccentricCosmeticPartBase" ParentName="AddedBodyPartBase" Abstract="true"> <defaultLabelColor>(1,.8,1)</defaultLabelColor> <addedPartProps> <solid>true</solid> </addedPartProps> </HediffDef> <!-- cat ears --> <HediffDef ParentName="EccentricCosmeticPartBase"> <defName>Eccentric_Hediff_Ears_CatLeft</defName> <label>left cat ear</label> <labelNoun>a cat ear</labelNoun> <description>An installed cosmetic cat ear.</description> <descriptionHyperlinks><ThingDef>EccentricEarCat</ThingDef></descriptionHyperlinks> </HediffDef> <HediffDef ParentName="EccentricCosmeticPartBase"> <defName>Eccentric_Hediff_Ears_CatRight</defName> <label>right cat ear</label> <labelNoun>a cat ear</labelNoun> <description>An installed cosmetic cat ear.</description> <descriptionHyperlinks><ThingDef>EccentricEarCat</ThingDef></descriptionHyperlinks> </HediffDef>

If there is something that I'm doing wrong, please let me know. Or, if you could look into why this might be happening on your end, it would be greatly appreciated. Thanks in advance!
< >
Showing 1-3 of 3 comments
VOID  [developer] Jul 26, 2021 @ 12:57pm 
@Aelanna
thank you for the detailied information. i will put this on the todo list and check this tomorrow. and i will probably ask you tomorrow about some more infos.
Last edited by VOID; Jul 26, 2021 @ 1:10pm
VOID  [developer] Jul 27, 2021 @ 6:47am 
i've updated the mod, so you can update yours now. add to your HediffDef tags like that

To make only LeftCrown be selectable:
<tags>
<li>LeftCrown</li>
</tags>

To make left and right crown be selectable:
<tags>
<li>LeftCrown</li>
<li>RightCrown</li>
</tags>

To make tail be selectable
<tags>
<li>CosmeticTail</li>
</tags>

To make all available bodparts of the current race be selectable:
<tags>
<li>All</li>
</tags>

Aelanna Jul 27, 2021 @ 7:20am 
I added the tags and everything is working perfectly now, all the hediffs are instantly applying directly to the appropriate part.

Thanks for all the help!
< >
Showing 1-3 of 3 comments
Per page: 1530 50