Problems with stuffing buildings

Started by Ykara, May 23, 2015, 05:00:51 AM

Previous topic - Next topic

Ykara

Hi guys, I really, really need your help. I've tried everything but it still doesn't work.
Here's the problem: I have made a bench and want it to use stuff. It works fine, but the texture just doesn't change and I don't know why.
Here's the code, please take a look :/

  <ThingDef ParentName="BuildingBase">
    <DefName>Test</DefName>
    <label>test</label>
    <ThingClass>Building_WorkTable_HeatPush</ThingClass>
    <Description>Bakes tasty pastries.</Description>
    <graphicPath>Things/Building/Production/Test</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>
    <graphicShaderType>CutoutComplex</graphicShaderType>
    <stuffCategories>
      <li>Stony</li>
    </stuffCategories>
    <costStuffCount>100</costStuffCount>
    <costList>
      <Steel>20</Steel>
    </costList>
    <AltitudeLayer>Waist</AltitudeLayer>
    <useHitPoints>True</useHitPoints>
    <statBases>
      <WorkToMake>4500</WorkToMake>
      <MaxHitPoints>300</MaxHitPoints>
      <Flammability>0</Flammability>
    </statBases>
    <Size>(3,1)</Size>
    <graphicOverdraw>False</graphicOverdraw>
    <DesignationCategory>Production</DesignationCategory>
    <fillPercent>1</fillPercent>
    <Passability>Impassable</Passability>
    <hasInteractionCell>True</hasInteractionCell>
    <interactionCellOffset>(0,0,-1)</interactionCellOffset>
    <itemSurface>True</itemSurface>
    <inspectorTabs>
      <li>ITab_Bills</li>
    </inspectorTabs>
    <comps>
      <li>
        <compClass>CompPowerTrader</compClass>
        <basePowerConsumption>250</basePowerConsumption>
        <startElectricalFires>true</startElectricalFires>
        <soundPowerOn>PowerOnSmall</soundPowerOn>
        <soundPowerOff>PowerOffSmall</soundPowerOff>
      </li>
      <li>
        <compClass>CompGlower</compClass>
        <glowRadius>6</glowRadius>
        <glowColor>(217,112,33,0)</glowColor>
      </li>
    </comps>
    <building>
      <spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
      <heatPerTickWhileWorking>0.6</heatPerTickWhileWorking>
    </building>
  </ThingDef>


Thanks in advance!

mrofa

Remove <graphicShaderType>CutoutComplex</graphicShaderType>

Use this line only if you got a texture mask, if you dont have it then you dont need it :)
All i do is clutter all around.

Ykara

Thank you very much! It works now, but I think I should do a texture mask so it looks better ^^ Thanks again!