Having trouble with a Heatpusher

Started by squirrel gnut, January 27, 2017, 04:16:16 PM

Previous topic - Next topic

squirrel gnut

Having trouble with a fueled heat pusher mod. I have been able to make a cooler with a negative heatpusher value, but for some reason CANNOT get this heating/lamp mod to work. Any help would be greatly appreciated. Thanks!

<?xml version="1.0" encoding="utf-8" ?>
<Defs> 
 
  <ThingDef ParentName="BuildingBase">
    <defName>MagicalGrowingOrb</defName>
    <label>magical growing orb</label>
    <description>Lights an area brightly enough to grow crops, but consumes Cursed Blood. Produces Heat!</description>
    <category>Building</category>
    <graphicData>
<graphicClass>Graphic_Single</graphicClass>
      <drawRotated>false</drawRotated>
      <allowFlip>false</allowFlip>
      <texPath>Things/Building/GrowingOrb</texPath>

    </graphicData>
<altitudeLayer>Building</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <pathCost>50</pathCost>
    <constructEffect>ConstructDirt</constructEffect>
    <drawerType>RealtimeOnly</drawerType>
    <fillPercent>0.40</fillPercent>
    <statBases>
      <MaxHitPoints>800</MaxHitPoints>
<Flammability>0</Flammability>
      <WorkToBuild>1000</WorkToBuild>
      <Beauty>100</Beauty>
    </statBases>
<tickerType>Normal</tickerType>
<selectable>true</selectable>

    <costList>
     <Steel>25</Steel>
<Jade>3</Jade>
    </costList>
<soundImpactDefault>BulletImpactGround</soundImpactDefault>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>    <resourcesFractionWhenDeconstructed>0</resourcesFractionWhenDeconstructed>
   <placeWorkers>
     <li>PlaceWorker_Heater</li>
    </placeWorkers>
    <drawPlaceWorkersWhileSelected>true</drawPlaceWorkersWhileSelected>

<building>
      <ignoreNeedsPower>true</ignoreNeedsPower>
    </building>
      <comps>
      <li Class="CompProperties_Glower">
        <overlightRadius>7.0</overlightRadius>
        <glowRadius>20</glowRadius>
        <glowColor>(4, 93, 28)</glowColor>
      </li>
<li Class="CompProperties_Flickable" />
<li Class="CompProperties_HeatPusher">
        <heatPerSecond>50</heatPerSecond>
        <heatPushMinTemperature>50</heatPushMinTemperature>
      </li>
        <li Class="CompProperties_Refuelable">
        <fuelConsumptionRate>.5</fuelConsumptionRate>
        <fuelCapacity>10.0</fuelCapacity>
        <fuelFilter>
          <thingDefs>
            <li>BloodThing</li>
          </thingDefs>
        </fuelFilter>
              </li>
    </comps>
<researchPrerequisites>
      <li>MagicGrowing</li>
    </researchPrerequisites>
<designationCategory>Temperature</designationCategory>   
<specialDisplayRadius>5.8</specialDisplayRadius>
<designationCategory>Furniture</designationCategory>
<designationHotKey>Misc1</designationHotKey>
  </ThingDef>
</Defs>

sulusdacor

you set a min temperatur of 50. have you tried heating up the room and testing if then your building starts pushing heat if the room reaches that temperature? my guess you wanted it to heat up to 50. so you would need <heatPushMaxTemperature>.


squirrel gnut

Quote from: sulusdacor on January 28, 2017, 03:19:57 AM
you set a min temperatur of 50. have you tried heating up the room and testing if then your building starts pushing heat if the room reaches that temperature? my guess you wanted it to heat up to 50. so you would need <heatPushMaxTemperature>.

Wow...what an oversight on my part. I am still a huge noob to modding, so thanks a bunch for your help. It works!

squirrel gnut

I am also throwing the error: Duplicate Xml node. Does anyone see where this might be?

sulusdacor

check your xml files. the error means you have two tags defined twice.
(categories define where a building shows up in the build menu you can only choose one)

squirrel gnut

Just downloaded an .xml editor instead of using word pad, so this should help resolve my errors. Thanks again!