Page 1 of 2

[Mod] Lights+ [12112013] [lightsplus]

Posted: Mon Oct 08, 2012 19:32
by qwrwed
Image
This is my first Minetest mod, Lights+. It adds white and gold lights that turn on/off when punched.
Screenshots: http://imgur.com/a/ERFdj
Now with gold and flat lights. ImageImage
License is WTFPL, textures are by VanessaE and paramat, code for flat lights is by LionsDen.
Download (Github)
Code: https://github.com/qwrwed/lightsplus
After downloading, rename the extracted folder to "lightsplus".
If you are updating from a version before 12/11/2013 to a version after, your slab lights and flat lights may be the wrong orientation. I have kept the old version available for download.
The latest version requires Minetest version 0.4.7 or later.
Old download link
Code: https://github.com/qwrwed/lightsplus/tree/old
Feedback is appreciated.
Dependencies:default
Crafting
For some reason, only 3 of the 10 craft recipes are shown in the zcg mod.
Normal light (10):

Code: Select all

GGG
iii
GGG
G = glass
i = torch
Gold lights are crafted with a light and a gold ingot in any formation.
Slab lights are crafted with three lights (normal or gold) in a row.
Two slab lights vertically make a full node light.
Flat lights can be crafted by putting one light (normal or gold) in the crafting grid (makes 16).
Eight flat lights in any formation make one slab light.

Posted: Tue Oct 09, 2012 07:35
by qwrwed
Released!

Posted: Thu Oct 11, 2012 06:23
by gauthierhaas
Your mod is really well made, keep improving it! (new colours/shape/...)

Posted: Thu Oct 11, 2012 07:19
by qwrwed
Thanks for the feedback! When I have time, I will make ground lights, wall lights and full node lights, any other ideas? as for colours, I'll have to find a program that can do it, any suggestions for what is the best one?

Posted: Thu Oct 11, 2012 13:37
by Comp52
GIMP is a free program that a lot of people use. You could try that.

Posted: Sat Oct 13, 2012 10:13
by qwrwed
Updated, see first post

Posted: Sat Nov 03, 2012 02:42
by paramat
Thanks for this mod.
I find the white texture too bright so made this 3kB 16x16 glowing gold block texture. The colour gradients of the faces and edges were colour sampled from a photo of a 24 carat gold bar.
Feel free to use it: Image
RGB values for the Map mod.
On the map this creates a bright gold colour that can be distinguished from torches and sand.

Code: Select all

lightsplus:light 255 218 90

Posted: Tue Dec 11, 2012 03:42
by tux_peng
Maybe you could add a StreetLights function, where they only glow at night

PS-- GIMP is overkill for some; paint.NET is nice for windows, seashore is good on macs

Posted: Tue Dec 11, 2012 06:36
by NakedFury
Can it be possible to create a light source equivalent to the games sun for underground cities[think dwarf city or any other underground race] and be tied to the same cycle as the sun?

Posted: Tue Dec 11, 2012 15:57
by qwrwed
paramat wrote:Thanks for this mod.

Image

I find the white texture too bright so made this 3kB 16x16 glowing gold block texture. The colour gradients of the faces and edges were colour sampled from a photo of a 24 carat gold bar.
Feel free to use it: Image
RGB values for the Map mod.
On the map this creates a bright gold colour that can be distinguished from torches and sand.

Code: Select all

lightsplus:light 255 218 90
No problem. Thanks for the texture. Do I just add that line of code by itself to the init.lua?
tux_peng wrote:Maybe you could add a StreetLights function, where they only glow at night
I could try, but I don't know how. Is there any way to detect what time it is?
NakedFury wrote:Can it be possible to create a light source equivalent to the games sun for underground cities[think dwarf city or any other underground race] and be tied to the same cycle as the sun?
If I can do what tux_peng suggested, then I can probably do the cycle, but I don't think the light would be bright enough to light a whole underground city.

Posted: Tue Dec 11, 2012 18:41
by tux_peng
line 165 of beds mod

Code: Select all

        if minetest.env:get_timeofday() < 0.2 or minetest.env:get_timeofday() > 0.805 then

Posted: Thu Dec 13, 2012 15:04
by paramat
qwrwed wrote:No problem. Thanks for the texture. Do I just add that line of code by itself to the init.lua?
In PilzAdam's map mod http://minetest.net/forum/viewtopic.php?id=2747 add the following code to the 'colors.txt' file if you want the lights to show up on the generated map.

Code: Select all

lightsplus:light 255 218 90
lightsplus:light_on 255 218 90
lightsplus:slab_light_wall 255 218 90
lightsplus:slab_light_wall_on 255 218 90
lightsplus:slab_light 255 218 90
lightsplus:slab_light_on 255 218 90
lightsplus:slab_light_inv 255 218 90
lightsplus:slab_light_inv_on 255 218 90
GIMP can give you RGB values for any colour. For the default white lights it would be 255 255 255.
I don't really expect anyone to use my texture, it was made for my own use as i needed a glowing gold node :)

Posted: Sat Dec 22, 2012 22:28
by qwrwed
This will probably be updated with new textures and automatic lights tomorrow.
EDIT: maybe not, automatic lights are not working as planned.

Posted: Wed Apr 03, 2013 09:49
by Bas080
I like the simplicity of this mod. Nice craft and bright looking nodes. I am missing the mesecons compatibility. Being able to turn the lights on and off with a mesecon signal.

Posted: Wed Jul 10, 2013 05:04
by nikminers
What happened to Lights+, I can't get it!

Posted: Wed Jul 10, 2013 05:16
by philipbenr
whenever it is uploaded to ompldr, I never, ever seem to be able to download. :(

Posted: Wed Jul 10, 2013 05:17
by philipbenr
tux_peng wrote:
PS-- GIMP is overkill for some; paint.NET is nice for windows, seashore is good on macs
If you know how to use Gimp, it is one of the best. :)

Posted: Wed Jul 10, 2013 06:05
by Jordach
philipbenr wrote:whenever it is uploaded to ompldr, I never, ever seem to be able to download. :(
Omploader is dead. Permanently. VaneesaE may have a copy of this as it is used on her server.

Posted: Wed Jul 10, 2013 10:39
by VanessaE
Lights+ is not installed on my server.

Posted: Wed Jul 10, 2013 11:54
by Dan Duncombe
I may have a copy... I'll have to check.

EDIT: Nope, no copies, sorry/

Posted: Wed Jul 10, 2013 21:44
by Topywo

Posted: Wed Jul 10, 2013 23:26
by philipbenr
Jordach wrote:
philipbenr wrote:whenever it is uploaded to ompldr, I never, ever seem to be able to download. :(
Omploader is dead. Permanently. VaneesaE may have a copy of this as it is used on her server.
This is why I use Github.

Posted: Thu Jul 11, 2013 00:13
by LionsDen
Topywo wrote:I'm not 100% sure if it's 2.0:

https://dl.dropboxusercontent.com/u/654 ... tsplus.zip
It's version 1.0 because the slabs don't hang on the walls right. If I get some time in the next few days, I will try to fix it if I can.

Posted: Thu Jul 11, 2013 00:24
by nikminers
LionsDen wrote:
Topywo wrote:I'm not 100% sure if it's 2.0:

https://dl.dropboxusercontent.com/u/654 ... tsplus.zip
It's version 1.0 because the slabs don't hang on the walls right. If I get some time in the next few days, I will try to fix it if I can.


Huge thanks!! I'll use 1.0 for now to hold me over.

Posted: Thu Jul 11, 2013 01:08
by nikminers
nikminers wrote:
LionsDen wrote:
Topywo wrote:I'm not 100% sure if it's 2.0:

https://dl.dropboxusercontent.com/u/654 ... tsplus.zip
It's version 1.0 because the slabs don't hang on the walls right. If I get some time in the next few days, I will try to fix it if I can.


Huge thanks!! I'll use 1.0 for now to hold me over. BTW any idea how to make the lights brighter? Which part of which file do I alter?