[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 » 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):
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
 

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

paramat
Developer
 
Posts: 2997
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: 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.
Code: Select all
lightsplus:light 255 218 90
Last edited by paramat on Fri Jun 14, 2013 07:01, edited 1 time in total.
 

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

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
Developer
 
Posts: 2997
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: 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.
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 » 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
Location: Netherlands
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: 1679
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

by philipbenr » Wed Jul 10, 2013 05:16

whenever it is uploaded to ompldr, I never, ever seem to be able to download. :(
“Would it save you a lot of time if I just gave up and went mad now?”

“I'd far rather be happy than right any day.”

“What, are you, crazy?" "It's a possibility I haven't ruled out yet"
 

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

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. :)
“Would it save you a lot of time if I just gave up and went mad now?”

“I'd far rather be happy than right any day.”

“What, are you, crazy?" "It's a possibility I haven't ruled out yet"
 

User avatar
Jordach
Member
 
Posts: 4462
Joined: Mon Oct 03, 2011 17:58
Location: Blender Scene
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.
PM me if you want access to my Solar Plains Discord and or Dev server.
 

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

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)
 

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

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
 

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

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.
“Would it save you a lot of time if I just gave up and went mad now?”

“I'd far rather be happy than right any day.”

“What, are you, crazy?" "It's a possibility I haven't ruled out yet"
 

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?
 

Next

Return to Mod Releases



Who is online

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