[Solved] Light witout power

Started by Goatlike, June 09, 2014, 04:14:56 AM

Previous topic - Next topic

Goatlike

Hi. I create new mod, but i can't fix one feature. Glowing effect. I write in ThingDef <comps>
  <li>
    <compClass>CompGlower</compClass>
    <glowRadius>6</glowRadius>
   <glowColor>(217,112,33,0)</glowColor>
  </li>
</comps>

But nothing happen. It is need energy? If yes, then how create glowing without energy?

Maybe i need one more def for glowing?

Sorry if it stupid question or you don't understood me  :)
Sorry for my English.

Architect

Yeah, you're gonna need power to make it work at the moment. The only way I know that works is to do it via code, however theoretically it should be possible to just include the power comp and label the power consumption as 0, though I don't know.
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.


Cala13er

#2
Unfortunately it's not possible to have it glow without power through xml, however I've helped someone else before by making them a working CompGlower that doesn't require power.

Download from here http://www.mediafire.com/?d5nguy6iu8tmmlx

And then follow these instructions on how to use.

1. Put in your mods assemblies folder.
2. Go to your light def
3. Change compClass to "<compClass>CompGlowerX</compClass>"
4. Remove all of this
      <li>
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <soundPowerOn>PowerOnSmall</soundPowerOn>
        <soundPowerOff>PowerOffSmall</soundPowerOff>
        <basePowerConsumption>0</basePowerConsumption>
      </li>
5. Finished


Goatlike

Quote from: Cala13er on June 09, 2014, 05:44:25 AM
Unfortunately it's not possible to have it glow without power through xml, however I've helped someone else before by making them a working CompGlower that doesn't require power.

Download from here http://www.mediafire.com/?d5nguy6iu8tmmlx

And then follow these instructions on how to use.

1. Put in your mods assemblies folder.
2. Go to your light def
3. Change compClass to "<compClass>CompGlowerX</compClass>"
4. Remove all of this
      <li>
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <soundPowerOn>PowerOnSmall</soundPowerOn>
        <soundPowerOff>PowerOffSmall</soundPowerOff>
        <basePowerConsumption>0</basePowerConsumption>
      </li>
5. Finished

Thank you very much! It work!  :)

Quote from: Architect on June 09, 2014, 05:44:18 AM
Yeah, you're gonna need power to make it work at the moment. The only way I know that works is to do it via code, however theoretically it should be possible to just include the power comp and label the power consumption as 0, though I don't know.

Thank you for try to help :)
Sorry for my English.