Installing parts in animals problem

Started by Alenerel, November 30, 2016, 03:05:20 AM

Previous topic - Next topic

Alenerel

Im trying to make this mod to install all installable parts in humans in animals except joywire. I have added this to AnimalsThingsBase def in Races_Animal_Base:

    <recipes>
      <li>InstallPowerClaw</li>
      <li>InstallScytherBlade</li>
      <li>InstallBionicEye</li>
      <li>InstallBionicArm</li>
      <li>InstallBionicLeg</li>
      <li>InstallSimpleProstheticArm</li>
      <li>InstallSimpleProstheticLeg</li>
      <li>InstallPegLeg</li>
      <li>InstallDenture</li>
      <li>InstallPainstopper</li>
      <li>InstallNaturalHeart</li>
      <li>InstallNaturalLung</li>
      <li>InstallNaturalKidney</li>
      <li>InstallNaturalLiver</li>
      <li>ExciseCarcinoma</li>
      <li>RemoveBodyPart</li>
      <li>Euthanize</li>
    </recipes>


I also added the respective body parts to which they have to be attatched (power claw to FrontLeftPaw and FrontRightPaw, peg leg to FrontRightLeg, etc), for example in InstallPegLeg in Recipes_Surgery_NewParts:
<appliedOnFixedBodyParts>
<li>LeftLeg</li>
<li>RightLeg</li>
<li>FrontLeftLeg</li>
<li>FrontRightLeg</li>
<li>RearLeftLeg</li>
<li>RearRightLeg</li>
</appliedOnFixedBodyParts>


The problem is that it doesnt work. In operations in health tab of a wolf, a chicken and a husky it only appears euthanize, even though I have all the items (medicine, doctor, animal bed, parts).

What am I missing? It certainly seems that this would be enough but it isnt.

Thanks you

deliveryservice

#1
Can you download the "A Dogsaid" mod? It's really useful mod. Believe me.
If you do. Try looking for the recipedef.

This is the format, I suppose:

<?xml version="1.0" encoding="utf-8" ?>
<RecipeDefs>

<RecipeDef Abstract="True" Name="SurgeryFlesh">
<effectWorking>Surgery</effectWorking>
<soundWorking>Recipe_Surgery</soundWorking>
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
<workSkill>Medicine</workSkill>
<workSkillLearnFactor>16</workSkillLearnFactor>
</RecipeDef>

<RecipeDef Abstract="True" Name="LegBase" ParentName="SurgeryFlesh">
<appliedOnFixedBodyParts>
<li>FrontLeftLeg</li>
<li>FrontRightLeg</li>
<li>MiddleLeftLeg</li>
<li>MiddleRightLeg</li>
<li>RearLeftLeg</li>
<li>RearRightLeg</li>
<li>FrontLeftInsectLeg</li>
<li>FrontRightInsectLeg</li>
<li>MiddleLeftInsectLeg</li>
<li>MiddleRightInsectLeg</li>
<li>RearLeftInsectLeg</li>
<li>RearRightInsectLeg</li>
<li>LeftLeg</li>
<li>RightLeg</li>
</appliedOnFixedBodyParts>
</RecipeDef>

<RecipeDef ParentName="LegBase">
<defName>InstallPegLegAnimal</defName>
<label>install animal peg leg</label>
<description>Installs animal peg leg.</description>
<workerClass>Recipe_InstallArtificialBodyPart</workerClass>
<jobString>Installing peg leg.</jobString>
<workAmount>2000</workAmount>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Medicine</li>
</categories>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</fixedIngredientFilter>
<addsHediff>PegLeg</addsHediff>
<recipeUsers>
<li>Alpaca</li>
<li>Alphabeaver</li>
<li>Boomalope</li>
<li>Boomrat</li>
<li>Capybara</li>
<li>Caribou</li>
<li>Cassowary</li>
<li>Cat</li>
<li>Chicken</li>
<li>Chinchilla</li>
<li>Cougar</li>
<li>Cow</li>
<li>Deer</li>
<li>Dromedary</li>
<li>Elephant</li>
<li>Elk</li>
<li>Emu</li>
<li>FoxArctic</li>
<li>FoxFennec</li>
<li>FoxRed</li>
<li>Gazelle</li>
<li>GrizzlyBear</li>
<li>Hare</li>
<li>Husky</li>
<li>Ibex</li>
<li>Iguana</li>
<li>LabradorRetriever</li>
<li>Lynx</li>
<li>Megascarab</li>
<li>Megatherium</li>
<li>Monkey</li>
<li>Muffalo</li>
<li>Ostrich</li>
<li>Panther</li>
<li>Pig</li>
<li>PolarBear</li>
<li>Raccoon</li>
<li>Rat</li>
<li>Rhinoceros</li>
<li>Snowhare</li>
<li>Squirrel</li>
<li>Thrumbo</li>
<li>Tortoise</li>
<li>Turkey</li>
<li>Warg</li>
<li>WildBoar</li>
<li>WolfArctic</li>
<li>WolfTimber</li>
<li>YorkshireTerrier</li>
</recipeUsers>
</RecipeDef>
</RecipeDefs>

skullywag

youre probably missing the workgivers, this is achieved in the recipe (recipeUser) in the "A dog said" mod i believe.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Illusion Distort

Remember having a similar problem, think it was the workgiver that was the sinner

:)

Alenerel

#4
Well, its done. For some reason I had to specify <recipeUsers>. And the best part is that its save friendly, I disabled the mod and the parts loaded correctly without throwing any error.

There is no escape:
http://images.akamai.steamusercontent.com/ugc/102851052172200139/2CFD9C91CB79E11F64258D9CF192EC8ABE3EA25D/

http://images.akamai.steamusercontent.com/ugc/102851052172199776/3276460DCF00512BA44E58DE303C1D5007B7D640/

For some reason the denture seems to do more damage than the natural jaw of the wolf and probably other animals too.