[Mod] Lights+ [12112013] [lightsplus]

User avatar
qwrwed
Member
Posts: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

[Mod] Lights+ [12112013] [lightsplus]

by qwrwed » Post

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.
Last edited by qwrwed on Mon Apr 28, 2014 06:52, edited 2 times in total.

User avatar
qwrwed
Member
Posts: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

Released!

gauthierhaas

by gauthierhaas » Post

Your mod is really well made, keep improving it! (new colours/shape/...)

User avatar
qwrwed
Member
Posts: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

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?

User avatar
Comp52
Member
Posts: 56
Joined: Sun Oct 07, 2012 00:49

by Comp52 » Post

GIMP is a free program that a lot of people use. You could try that.
Last edited by Comp52 on Thu Oct 11, 2012 13:37, edited 1 time in total.

User avatar
qwrwed
Member
Posts: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

Updated, see first post

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

by paramat » Post

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
Last edited by paramat on Fri Jun 14, 2013 07:01, edited 1 time in total.

User avatar
tux_peng
Member
Posts: 99
Joined: Thu Dec 06, 2012 18:21

by tux_peng » Post

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
Last edited by tux_peng on Tue Dec 11, 2012 03:44, edited 1 time in total.
Servers now up (Economy, no PvP) Forum up already! http://tuxcraft.info

User avatar
NakedFury
Member
Posts: 151
Joined: Thu Dec 08, 2011 03:55

by NakedFury » Post

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?

User avatar
qwrwed
Member
Posts: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

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.

User avatar
tux_peng
Member
Posts: 99
Joined: Thu Dec 06, 2012 18:21

by tux_peng » Post

line 165 of beds mod

Code: Select all

        if minetest.env:get_timeofday() < 0.2 or minetest.env:get_timeofday() > 0.805 then
Servers now up (Economy, no PvP) Forum up already! http://tuxcraft.info

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

by paramat » Post

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 :)
Last edited by paramat on Thu Dec 13, 2012 22:22, edited 1 time in total.

User avatar
qwrwed
Member
Posts: 325
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Post

This will probably be updated with new textures and automatic lights tomorrow.
EDIT: maybe not, automatic lights are not working as planned.
Last edited by qwrwed on Sun Dec 23, 2012 15:31, edited 1 time in total.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

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.

User avatar
nikminers
Member
Posts: 29
Joined: Thu Feb 28, 2013 20:31

by nikminers » Post

What happened to Lights+, I can't get it!

User avatar
philipbenr
Member
Posts: 1783
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

whenever it is uploaded to ompldr, I never, ever seem to be able to download. :(

User avatar
philipbenr
Member
Posts: 1783
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

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. :)

Jordach
Member
Posts: 4527
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

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.
Last edited by Jordach on Wed Jul 10, 2013 06:08, edited 1 time in total.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server

User avatar
VanessaE
Moderator
Posts: 4573
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Lights+ is not installed on my server.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Dan Duncombe
Member
Posts: 904
Joined: Thu May 09, 2013 21:11
Location: In the unknown depths of Earth

by Dan Duncombe » Post

I may have a copy... I'll have to check.

EDIT: Nope, no copies, sorry/
Last edited by Dan Duncombe on Wed Jul 10, 2013 12:10, edited 1 time in total.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post


User avatar
philipbenr
Member
Posts: 1783
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

by philipbenr » Post

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.

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Post

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.

User avatar
nikminers
Member
Posts: 29
Joined: Thu Feb 28, 2013 20:31

by nikminers » Post

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.

User avatar
nikminers
Member
Posts: 29
Joined: Thu Feb 28, 2013 20:31

by nikminers » Post

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?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests