No Resource Viewer display and no Stack Count Tracking [Solved]

Started by theguruofreason, May 28, 2018, 02:40:33 AM

Previous topic - Next topic

theguruofreason

My mod adds an item to the game and two recipes to create it. One recipe creates one at a time, the other creates five at a time.

Despite creating a category for the items;
  <ThingCategoryDef>
    <defName>SC_Farming</defName>
    <label>Farming</label>
    <parent>ResourcesRaw</parent>
    <resourceReadoutRoot>true</resourceReadoutRoot>
<iconPath>Fertilizer</iconPath>
  </ThingCategoryDef>

Which they are both in;

  <ThingDef>
    <defName>SC_Compost</defName>
    <thingClass>ThingWithComps</thingClass>
...
    <thingCategories>
      <li>SC_Farming</li>
    </thingCategories>
...
  </ThingDef>

  <ThingDef>
    <defName>SC_Fertilizer</defName>
    <thingClass>ThingWithComps</thingClass>
...
    <thingCategories>
      <li>SC_Farming</li>
    </thingCategories>
...
  </ThingDef>

neither shows up in the resource browser. Additionally, when I set the create compost recipe to "do until you have X", it counts stacks instead of individual items.

Help is greatly appreciated!

theguruofreason

Solved by adding the resourceReadoutPriority tag to the items.