Ludeon Forums

RimWorld => Mods => Help => Topic started by: twoski on December 11, 2017, 08:43:38 PM

Title: Insect Think Trees
Post by: twoski on December 11, 2017, 08:43:38 PM
I am modding the insects (spelopede, etc) and i am running into a think tree error.

Problem is, i can't find their think trees anywhere in the ThinkTreeDefs. Are they stored elsewhere?
Title: Re: Insect Think Trees
Post by: kaptain_kavern on December 11, 2017, 10:11:12 PM
AFAIK they are using the animal thinkTree
Title: Re: Insect Think Trees
Post by: twoski on December 17, 2017, 06:10:57 PM
Ok well maybe it's not their think tree, idk

I spawn a hive and i get this error:

(https://i.imgur.com/AJM5h1v.jpg)
Title: Re: Insect Think Trees
Post by: twoski on December 18, 2017, 12:27:47 PM
i cannot find the thinknode XML that contains ThinkNode_ConditionalHiveCanReproduce
Title: Re: Insect Think Trees
Post by: BrokenValkyrie on December 19, 2017, 05:38:15 AM
core\Defs\DutyDefs\Duties_Misc.xml

I found the thinknode, line 351.

Here the relevant code.

  <DutyDef>
    <defName>DefendAndExpandHive</defName>
    <thinkNode Class="ThinkNode_Priority">
      <subNodes>
        <li Class="JobGiver_HiveDefense">
          <needLOSToAcquireNonPawnTargets>true</needLOSToAcquireNonPawnTargets>
          <targetAcquireRadius>30</targetAcquireRadius>
          <chaseTarget>false</chaseTarget>
        </li>
        <li Class="ThinkNode_ChancePerHour_Constant">
          <mtbHours>5</mtbHours>
          <subNodes>
            <li Class="JobGiver_MaintainHives" />
          </subNodes>
        </li>
        <li Class="ThinkNode_ConditionalBodySize">
          <min>0.7</min>
          <subNodes>
            <li Class="ThinkNode_ConditionalHiveCanReproduce">
              <subNodes>
                <li Class="ThinkNode_ChancePerHour_Constant">
                  <mtbHours>18</mtbHours>
                  <subNodes>
                    <li Class="JobGiver_MineRandom" />
                  </subNodes>
                </li>
              </subNodes>
            </li>
          </subNodes>
        </li>
        <li Class="ThinkNode_Tagger">
          <tagToGive>SatisfyingNeeds</tagToGive>
          <subNodes>
            <li Class="ThinkNode_PrioritySorter">
              <subNodes>
                <li Class="JobGiver_GetFood" />
                <li Class="JobGiver_GetRest" />
              </subNodes>
            </li>
          </subNodes>
        </li>
        <li Class="JobGiver_WanderHive">
          <maxDanger>Deadly</maxDanger>
        </li>
      </subNodes>
    </thinkNode>
  </DutyDef>
Title: Re: Insect Think Trees
Post by: twoski on December 19, 2017, 06:38:35 PM
thank you good sire