Problem making texture darker when light is turned off.

Started by Evul, March 05, 2014, 06:16:47 PM

Previous topic - Next topic

Evul

I have problem with the texture on new created map being bright as day when its turned of how do i fix that?

it look like this:

<ThingDef ParentName="BuildingBase">
<defName>FloorLamp</defName>
<eType>BuildingComplex</eType>
<label>Floor lamp</label>
<thingClass> Building_Glower</thingClass>
<category>Building</category>
<texturePath>Things/Building/FloorLamp</texturePath>
<!-- <altitudeLayer>BuildingTall</altitudeLayer> -->
<!-- <passability>PassThroughOnly</passability> -->
<maxHealth>30</maxHealth>
<flammability>1.0</flammability>
<!-- <selectable>true</selectable> -->
<description>Floor lamp that lights an area.</description>
<size>(1,1)</size>
<workToBuild>35</workToBuild>
<costList>
<li>
<thingDef>Metal</thingDef>
<count>5</count>
</li>
</costList>
<bulletImpactSound>BulletImpactMetal</bulletImpactSound>
<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
<comps>
<li>
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>150</basePowerConsumption>
<powerOnSound>PowerOnSmall</powerOnSound>
<powerOffSound>PowerOffSmall</powerOffSound>
</li>
<li>
<compClass>CompGlower</compClass>
<glowRadius>10</glowRadius>
<glowColor>(217,217,217,0)</glowColor>
</li>
</comps>
<designationCategory>Furniture</designationCategory>
<sunShadowInfo>
<basewidth>0.1</basewidth>
<baseHeight>1</baseHeight>
<tallness>0.1</tallness>
<offset>(1,0,0)</offset>
</sunShadowInfo>
<rotatable>true</rotatable>
</ThingDef>


Any idea?

Evul


Architect

Check out BetterPower+ and all its derivatives by clicking the picture below.

It adds many new methods of power generation and uses for it, as well as other things such as incidents.


Evul

<ThingDef ParentName="BuildingBase">
<defName>FloorLamp</defName>
<eType>BuildingComplex</eType>
<label>Floor lamp</label>
<thingClass> Building_Glower</thingClass>
<category>Building</category>
<texturePath>Things/Building/FloorLamp</texturePath>
<altitudeLayer>FloorEmplacement</altitudeLayer>
<passability>Standable</passability>
<maxHealth>30</maxHealth>
<flammability>1.0</flammability>
<!-- <selectable>true</selectable> -->
<description>Floor lamp that lights an area.</description>
<size>(1,1)</size>
<workToBuild>35</workToBuild>
<costList>
<li>
<thingDef>Metal</thingDef>
<count>5</count>
</li>
</costList>
<bulletImpactSound>BulletImpactMetal</bulletImpactSound>
<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
<comps>
<li>
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>150</basePowerConsumption>
<powerOnSound>PowerOnSmall</powerOnSound>
<powerOffSound>PowerOffSmall</powerOffSound>
</li>
<li>
<compClass>CompGlower</compClass>
<glowRadius>10</glowRadius>
<glowColor>(217,217,217,0)</glowColor>
</li>
</comps>
<designationCategory>Furniture</designationCategory>
<sunShadowInfo>
<basewidth>0.1</basewidth>
<baseHeight>1</baseHeight>
<tallness>0.1</tallness>
<offset>(1,0,0)</offset>
</sunShadowInfo>
<rotatable>true</rotatable>
</ThingDef>


I added this:
      <altitudeLayer>FloorEmplacement</altitudeLayer>
      <passability>Standable</passability>