Light source

Place to get help with not working mods / modding interface.
NightHawk
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 07, 2014 1:39 pm
Contact:

Light source

Post by NightHawk »

Hey, guys,
has anybody discovered a way to get lamps to stay on during day, or how to get a stable light source?

I've seen some prototypes using definiton:

Code: Select all

...
light = {
  minimum_darkness = 0.3,
  intensity = 0.4,
  size = 25,
},
...
I've tried to use minimum_darkness = 0 with lamp type entity with no effect.
For now I'm using explosion type entity with long empty animation, but this way I have to create new light source regularly, and energy consumption is inconsistent with light state.

Alternatively can you recommend me another base entity type with constant energy consumption?
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Light source

Post by L0771 »

you needs a light in the day?
NightHawk
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 07, 2014 1:39 pm
Contact:

Re: Light source

Post by NightHawk »

Yes, I'd like to use it as an effect regardless of the daytime.

Plus I wanted to try to use it as an signal light - e.g. to connect it to some circuit network and have it light green if some condition is met, red otherwise. Now I realize would require swapping entities around for different type, since we can't change light color on entity, only in definition, right?
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Light source

Post by L0771 »

assembler machine? maybe you can make a new item without ingredients and without results XD This emits light when it work
NightHawk
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 07, 2014 1:39 pm
Contact:

Re: Light source

Post by NightHawk »

Thanks. Much better, but it's still not perfect - the assembling machine stops for a moment between after it finishes crafting and start another. How do I set recipe crafting time?
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Light source

Post by L0771 »

in energy_required in recipe.
I think 1 energy_required is 60 ticks = 1 second

... 416 energy is a day defends of crafting speed of assembler
User avatar
berni1212
Fast Inserter
Fast Inserter
Posts: 137
Joined: Sun Dec 07, 2014 8:52 am
Contact:

Re: Light source

Post by berni1212 »

L0771 wrote:in energy_required in recipe.
I think 1 energy_required is 60 ticks = 1 second

... 416 energy is a day defends of crafting speed of assembler

IF you can make that with the Lights on at Day too can u make an SENSOR for the Trains ? then u can use the train to signalse a TRAiN IS COMMING NO CROSSING RAILS !


That would be sooo coool
Smilies
Sorry for my bad English ! i will not remove it !
WIP Test MODS
RailTanker [MP WIP]
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Light source

Post by L0771 »

I have no idea about trains and cars :)
NightHawk
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Dec 07, 2014 1:39 pm
Contact:

Re: Light source

Post by NightHawk »

L0771 wrote:in energy_required in recipe.
I think 1 energy_required is 60 ticks = 1 second

... 416 energy is a day defends of crafting speed of assembler
This will help a ton. Thanks.
Post Reply

Return to “Modding help”