What did i do wrong?

Started by Petrenko, August 20, 2017, 02:34:50 PM

Previous topic - Next topic

Petrenko

Heyho,

i'm trying to add an crafing table. An Alter. It has one recipe. Sacrifice Human Meat. And it gives a few items. SoulOre;BloodOre;BoneFragments.

So far i am able to build the altar. I'm also able to set it to the recipe i want. But no pawn is crafting at it.

Here is the code:

1. The Recipe

<RecipeDef>
    <defName>POW_SacrificeMeat</defName>
    <label>Sacrifice Human Meat</label>
    <description>Sacrifice the Meat of a Human..</description>
    <jobString>Sacrificing.</jobString>
    <workSpeedStat>SmithingSpeed</workSpeedStat>
    <effectWorking>Cook</effectWorking>
    <soundWorking>Recipe_Machining</soundWorking>
    <workAmount>500</workAmount>
    <ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>Human_Meat</li>
          </thingDefs>
        </filter>
        <count>10</count>
      </li>
    </ingredients>
    <fixedIngredientFilter>
      <thingDefs>
        <li>Human_Meat</li>
      </thingDefs>
    </fixedIngredientFilter>
    <products>
<POW_BloodOre>1</POW_BloodOre>
<POW_SoulOre>1</POW_SoulOre>
<POW_BoneFragments>3</POW_BoneFragments>
    </products>
<skillRequirements>
<li>
<skill>Cooking</skill>
<minLevel>4</minLevel>
</li>
</skillRequirements>
    <workSkill>Crafting</workSkill>
  </RecipeDef>


2. The CraftingTable

<ThingDef ParentName="BuildingBase">
<DefName>POW_Altar</DefName>
<label>Sacrificing Pit</label>
<ThingClass>Building_WorkTable</ThingClass>
<Description>Sacrifice to the gods. Requires fuel to "cook".</Description>
<graphicData>
<texPath>Cupro/Object/Station/MagicTable/MagicTable</texPath>
<shaderType>CutoutComplex</shaderType>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(3,3)</drawSize>
</graphicData>
<stuffCategories>
<li>Metallic</li>
<li>Stony</li>
</stuffCategories>
<costStuffCount>50</costStuffCount>
<minifiedDef>MinifiedFurniture</minifiedDef>
<altitudeLayer>Building</altitudeLayer>
<fillPercent>0.01</fillPercent>
<useHitPoints>True</useHitPoints>
<statBases>
<WorkToBuild>1200</WorkToBuild>
<MaxHitPoints>120</MaxHitPoints>
<Beauty>10</Beauty>
<Flammability>0</Flammability>
<Mass>12</Mass>
</statBases>
<Size>(3,3)</Size>
<DesignationCategory>Production</DesignationCategory>
<Passability>PassThroughOnly</Passability>
<canOverlapZones>false</canOverlapZones>
<pathCost>60</pathCost>
<hasInteractionCell>True</hasInteractionCell>
<interactionCellOffset>(0,0,1)</interactionCellOffset>
<surfaceType>Item</surfaceType>
<recipes>
<li>POW_SacrificeMeat</li>
</recipes>
<inspectorTabs>
<li>ITab_Bills</li>
</inspectorTabs>
<tickerType>Normal</tickerType>
<comps>
<li>
<compClass>CompQuality</compClass>
</li>
<li Class="CompProperties_Refuelable">
<fuelConsumptionRate>80.0</fuelConsumptionRate>
<fuelCapacity>25.0</fuelCapacity>
<fuelFilter>
<thingDefs>
<li>POW_Charcoal</li>
</thingDefs>
</fuelFilter>
<consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
</li>
<li Class="Powerless.CompProperties_Smoker">
<smokeStyle>Single</smokeStyle>
<frequencyMin>240</frequencyMin>
<frequencyMax>640</frequencyMax>
<produceSmokeOnlyWhenUsed>true</produceSmokeOnlyWhenUsed>
<size>0.45</size>
</li>
</comps>
<placeWorkers>
<li>PlaceWorker_ShowFacilitiesConnections</li>
</placeWorkers>
<building>
<heatPerTickWhileWorking>0.35</heatPerTickWhileWorking>
<spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
</building>
</ThingDef>


3. One of the Ressources

<ThingDef ParentName="ResourceBase">
<defName>POW_BloodOre</defName>
<label>Blood Ore</label>
<description>Made by sacrificing human meat. It glows red. Ingredient for Magics</description>
<graphicData>
<texPath>Cupro/Item/Material/Magic/bloodore</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<useHitPoints>false</useHitPoints>
<statBases>
<Beauty>2</Beauty>
<MarketValue>10</MarketValue>
<Mass>0.8</Mass>
</statBases>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
<Comps>
<li Class="CompProperties_Glower">
<glowRadius>3</glowRadius>
<glowColor>(205,85,50,0)</glowColor>
</li>
</Comps>
<tradeability>Sellable</tradeability>
<tradeTags>
<li>Exotic</li>
</tradeTags>
</ThingDef>


Thanks in advance for any advice =)




kaptain_kavern

Have a look in 'Core/Defs/WorkGiverDefs/WorkGivers.xml'

It's where you specify which bill use which bench and the skill/capacity required.

I'm sure you'll manage to understand by yourself, judging on how far you've progressed already.