Can Anyone Tell Me What I Did Wrong? (Bionic)

Started by DigitalCore, May 17, 2015, 08:54:10 AM

Previous topic - Next topic

DigitalCore


<RecipeDef>
    <defName>CreateCuttingArm</defName>
    <label>craft blade arm</label>
    <description>Integrates a Scyther telescoping blade into a bionic arm. Difficult, but rewarding.</description>
    <jobString>Crafting bionic.</jobString>
    <workAmount>1000</workAmount>
<ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>BionicArm</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
  <li>
        <filter>
          <thingDefs>
            <li>ScytherBlade</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
  <li>
        <filter>
          <thingDefs>
            <li>Plasteel</li>
          </thingDefs>
        </filter>
        <count>10</count>
      </li>
    </ingredients>
<fixedIngredientFilter>
<thingDefs>
                <li>BionicArm</li>
<li>ScytherBlade</li>
<li>Plasteel</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<CuttingArm>1</CuttingArm>
</products>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>7</minLevel>
</li>
</skillRequirements>
  </RecipeDef>

Okay so I'm using the Extended Surgery mod and decided that I would make Scyther blades a bit more useful. So I made this, along with the Hediff, the BodyPart Def, and the Recipe. Those three work fine. Brilliantly. I tried splicing it onto my brawler and it went swimmingly well. However, I can't get it to show up in the bills tab when I select the Prosthetics Workbench. I've looked over the xml a thousand times and by all rights it should work. All the definitions are under 'CuttingArm', so there should be no problem there.
Introducing the new and improved killbox: the Minefield! Now with 30% more explosions! Guaranteed to kill all those pesky tribals that keep visiting you at night.

Adamiks

You need to "attach" this recipe to the BenchDef (ThingDef).

DigitalCore

Quote from: Adamiks on May 17, 2015, 09:09:48 AM
You need to "attach" this recipe to the BenchDef (ThingDef).
And... How would I do that? This entry is under the bills list for the workbench btw.
Introducing the new and improved killbox: the Minefield! Now with 30% more explosions! Guaranteed to kill all those pesky tribals that keep visiting you at night.

BEIC

Quote from: DigitalCore on May 17, 2015, 09:18:52 AM
Quote from: Adamiks on May 17, 2015, 09:09:48 AM
You need to "attach" this recipe to the BenchDef (ThingDef).
And... How would I do that? This entry is under the bills list for the workbench btw.

You need to copy the defName of your recipe and paste it under the recipe section of the corresponding workbench in ThingDefs folder.