Page 1 of 1
[Done] How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 1:15 am
by dvalitov
I tried to do this in data.lua in clear new mod_0.0.1.zip :
Code: Select all
data.raw["electric-pole"]["small-electric-pole"].light = {{
-- minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
color = {r=0.0, g=1.0, b=0.0}, }}
data.raw["player"]["player"].light = {{
-- minimum_darkness = 0.3,
intensity = 0.9,
size = 60,
color = {r=1.0, g=0.0, b=0.0}, }}
It's working with "player", but not working with "small-electric-pole".
Or should i add a some entity like "hidden-lamp" and add it to every electric pole?
Like how it is done in
https://mods.factorio.com/mod/LightedPolesPlus and some other mods.
I probably can do little copypaste and rewrite, but i dont realy wont.
Or maybe i can add some parameters to "small-electric-pole" to make it light?
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 2:04 pm
by dvalitov
Or how can i create just a simple source of light which wil no need in any kind of fuel or energy?
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 2:06 pm
by darkfrei
dvalitov wrote: Mon Dec 17, 2018 2:04 pm
Or how can i create just a simple source of light which wil no need in any kind of fuel or energy?
1. Wait for 0.17
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 4:30 pm
by Optera
Doesn't LEP work for you or why would you try to reinvent the lighted pole?
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 6:23 pm
by dvalitov
Optera wrote: Mon Dec 17, 2018 4:30 pm
Doesn't LEP work for you or why would you try to reinvent the lighted pole?
I want to add just a little tiny light to default electric poles. Like light = {intensity = 0.1, size = 20}. To not to bump into them by car at the night.
But if i use your hidden-lamp with energy_usage_per_tick = "0W" they works, but start to blink with red triangle.
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 6:57 pm
by darkfrei
dvalitov wrote: Mon Dec 17, 2018 6:23 pm
Optera wrote: Mon Dec 17, 2018 4:30 pm
Doesn't LEP work for you or why would you try to reinvent the lighted pole?
I want to add just a little tiny light to default electric poles. Like light = {intensity = 0.1, size = 20}. To not to bump into them by car at the night.
But if i use your hidden-lamp with energy_usage_per_tick = "0W" they works, but start to blink with red triangle.
In 0.17 you can make entities with any power source, nothing = don't need any power source.
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 7:20 pm
by Bilka
dvalitov wrote: Mon Dec 17, 2018 6:23 pm
But if i use your hidden-lamp with energy_usage_per_tick = "0W" they works, but start to blink with red triangle.
You can turn off the warning icon in the prototype:
https://wiki.factorio.com/Types/EnergyS ... power_icon
Re: How to add Light to Small Electric Pole?
Posted: Mon Dec 17, 2018 8:36 pm
by dvalitov
Thank you guys! I think it look nice.
I use energy_usage_per_tick = "10W" and it dont cause red triangle.
I dont know am i need or can upload it, because it is basically Optera's LEP+ without new poles.
I do not know how to write it correctly in english.
Re: [Done] How to add Light to Small Electric Pole?
Posted: Tue Dec 18, 2018 7:21 am
by Optera
LEP+ is released under MIT license. You are free to change or fork as long as the original license remains in all copies or substantial portions of it.
It'd also be polite to reference the original mod in the mod description.