[Mod] Lights+ [12112013] [lightsplus]

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

[Mod] Lights+ [12112013] [lightsplus]

by qwrwed » Mon Oct 08, 2012 19:32

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):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Tue Oct 09, 2012 07:35

Released!
 

gauthierhaas
 

by gauthierhaas » Thu Oct 11, 2012 06:23

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

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

by qwrwed » Thu Oct 11, 2012 07:19

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?
 

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

by Comp52 » Thu Oct 11, 2012 13:37

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: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Sat Oct 13, 2012 10:13

Updated, see first post
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Sat Nov 03, 2012 02:42

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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
lightsplus:light 255 218 90
Last edited by paramat on Fri Jun 14, 2013 07:01, edited 1 time in total.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

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

by tux_peng » Tue Dec 11, 2012 03:42

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 » Tue Dec 11, 2012 06:36

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: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Tue Dec 11, 2012 15:57

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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.
 

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

by tux_peng » Tue Dec 11, 2012 18:41

line 165 of beds mod

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

by paramat » Thu Dec 13, 2012 15:04

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.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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.
I rely on donations to help provide an income https://forum.minetest.net/viewtopic.php?f=3&t=14935
 

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

by qwrwed » Sat Dec 22, 2012 22:28

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

by Bas080 » Wed Apr 03, 2013 09:49

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.
 

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

by nikminers » Wed Jul 10, 2013 05:04

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

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Wed Jul 10, 2013 05:16

whenever it is uploaded to ompldr, I never, ever seem to be able to download. :(
"The Foot is down!"
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Wed Jul 10, 2013 05:17

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. :)
"The Foot is down!"
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Wed Jul 10, 2013 06:05

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.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Wed Jul 10, 2013 10:39

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

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Wed Jul 10, 2013 11:54

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: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Wed Jul 10, 2013 21:44

 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Wed Jul 10, 2013 23:26

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.
"The Foot is down!"
 

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

by LionsDen » Thu Jul 11, 2013 00:13

Topywo wrote:I'm not 100% sure if it's 2.0:

https://dl.dropboxusercontent.com/u/65428713/lightsplus.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.
 

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

by nikminers » Thu Jul 11, 2013 00:24

LionsDen wrote:
Topywo wrote:I'm not 100% sure if it's 2.0:

https://dl.dropboxusercontent.com/u/65428713/lightsplus.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.
 

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

by nikminers » Thu Jul 11, 2013 01:08

nikminers wrote:
LionsDen wrote:
Topywo wrote:I'm not 100% sure if it's 2.0:

https://dl.dropboxusercontent.com/u/65428713/lightsplus.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?
 

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

by LionsDen » Thu Jul 11, 2013 05:14

nikminers wrote:BTW any idea how to make the lights brighter? Which part of which file do I alter?


As far as I could see from a quick look, the lights are already at maximum. The maximum amount of brightness that a light can have is 14, any value higher and the game just substitutes 14 for it. Only the sun is allowed to be 15. To make them brighter, would probably require a lot of code and slow down the game majorly because you would be changing the lighting on every node in an area around every light. That or else some changes made to the base game code would have to be made and it doesn't seem likely or at least high on the features list.
 

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

by LionsDen » Fri Jul 12, 2013 18:57

Ok, I managed to get the slab lights working. Here is a link to a mediafire account that has the file. Sorry about mediafire but fileden kept erroring out when I tried to register and dropbox says that is free for only 14 days. So I went with mediafire. I didn't want to use a site that needed me to download something to use it either. So here is the link.

http://www.mediafire.com/?37haa5tuu8dwcic
 

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

by Topywo » Fri Jul 12, 2013 22:12

Thanks for providing this mod again!
 

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

by nikminers » Fri Jul 12, 2013 23:00

LionsDen wrote:Ok, I managed to get the slab lights working. Here is a link to a mediafire account that has the file. Sorry about mediafire but fileden kept erroring out when I tried to register and dropbox says that is free for only 14 days. So I went with mediafire. I didn't want to use a site that needed me to download something to use it either. So here is the link.

http://www.mediafire.com/?37haa5tuu8dwcic



Thanks, this is awesome!
 

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

by nikminers » Sun Jul 14, 2013 13:09

I have 1 prob with Lights+, the full nodes are remarkably dim and ugly when used beside any other light from the mod. Is there any way to fix this?
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 13 guests

cron