RimWorld
Character Editor
Ten wątek został zamknięty
Aelanna 24 lipca 2021 o 8:06
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!
< >
Wyświetlanie 1-3 z 3 komentarzy
VOID  [producent] 26 lipca 2021 o 12:57 
@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.
Ostatnio edytowany przez: VOID; 26 lipca 2021 o 13:10
VOID  [producent] 27 lipca 2021 o 6:47 
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 27 lipca 2021 o 7:20 
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!
< >
Wyświetlanie 1-3 z 3 komentarzy
Na stronę: 1530 50