[Mod] Industrial Lights [git][ilights]

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

[Mod] Industrial Lights [git][ilights]

by VanessaE » Wed May 20, 2015 03:07

This is Dan Duncombe's ilights mod, now maintained by me. It adds industrial-style lamps (i.e. the kind that are enclosed in a small cage).

Mesh nodes with a somewhat-low-poly model are used here to provide a somewhat-realistic look compared to Dan's old version.

Crafting:
Place three steel ingots, one regular glass, and one torch, in the following pattern:

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
 --    Steel   --
 --    Glass   --
Steel  Torch  Steel


Yields 3 lights. Once you have a light, place it somewhere and the punch it with dye to change its color. If you dig one of these colorized lights, you get the uncolored one back, plus the dye that you used to color it.

All colors in the abridged Unified Dyes "colorwallmounted" palette are supported, including esoteric shades like grey and black. The screenshot below shows a sample of the available colors (in fact, it shows the color set this mod used to have before dynamic colorization became possible).

Dependencies: default, unifieddyes, and a Minetest engine build newer than 2017-01-23.

License: CC-By-Sa

Download: https://github.com/minetest-mods/ilight ... master.zip
...or browse the code: https://github.com/minetest-mods/ilights
For the 0.4.15-stable version (no hardware coloring), get this ZIP file.

Screenshot:
Image
Regarding the black lights (and for that matter, other colors not usually seen with a light), as Dan said originally, "I have no idea how that works, but hey."

+ "Show old screenshot..."
Attachments
ilights-screenshot.png
ilights-screenshot.png (194.03 KiB) Viewed 2788 times
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Wed May 20, 2015 03:38

Update: the models now have an actual bulb inside, the outer lens is now translucent, and the code now uses ^[colorize to make the colors instead of loading separate textures.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
DS-minetest
Member
 
Posts: 707
Joined: Thu Jun 19, 2014 19:49
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Industrial Lights [git][ilights]

by DS-minetest » Thu May 21, 2015 18:10

I think, the old models were better.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Industrial Lights [git][ilights]

by Krock » Fri May 22, 2015 16:57

In my opinion, they look better with a dark cage.
Also, the most used colors (white, green, blue, red, yellow) would be enough to decorate something :)

Image
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: [Mod] Industrial Lights [git][ilights]

by Nathan.S » Sat May 23, 2015 04:52

I agree with krock dark cages do look better.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Sat May 23, 2015 04:56

I went with the lighter texture originally so as not to vary too much from the original color scheme.

However, you're right that the dark texture does look better. Got a link to the modified file?
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Industrial Lights [git][ilights]

by Krock » Sat May 23, 2015 06:57

Image

I converted the original texture to a black/white image then increased contrast and decrased the brightness.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Sat May 23, 2015 15:28

Merged that in.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

Re: [Mod] Industrial Lights [git][ilights]

by Minetestforfun » Mon May 25, 2015 20:11

Awesome VanessaE O_o !
 

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

Re: [Mod] Industrial Lights [git][ilights]

by philipbenr » Tue May 26, 2015 00:33

+1 looks amazing. I am liking meshnodes...
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: [Mod] Industrial Lights [git][ilights]

by cd2 » Mon Jun 01, 2015 07:36

I like it!
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Mon Jan 30, 2017 18:37

This mod has been converted to use param2 colorization. This adds Unified Dyes as a dependency, and makes a total of 32 colors available (it uses the abridged "colorwallmounted" palette, since the lights support rotation).

Craft a light from glass, steel ingots, and a torch (see first post), then place it somewhere and right-click it with dye to color it. Dig it and you get the uncolored light and the dye back.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Sun Feb 05, 2017 01:03

This mod has been updated to use the revised Unified Dyes API -- you now punch the node while wielding dye, instead of right-clicking. Also, UD will tell you if a node doesn't support the color you want to use.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
fireglow
Member
 
Posts: 72
Joined: Fri Mar 28, 2014 11:36
IRC: fireglow
In-game: fireglow

Re: [Mod] Industrial Lights [git][ilights]

by fireglow » Mon Feb 13, 2017 03:08

Got a server crash with git commit 70145d3 after placing an ilight on a wall so its top faces the player:
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
ERROR[Main]: ServerError: Lua: Runtime error from mod '' in callback item_OnPlace(): /srv/minetest/world/worldmods/ilights/init.lua:28: attempt to call field 'yaw_to_dir' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]:       /srv/minetest/world/worldmods/ilights/init.lua:28: in function 'after_place_node'
ERROR[Main]:       /srv/minetest/servers/0.4.15/bin/../builtin/game/item.lua:296: in function </srv/minetest/servers/0.4.15/bin/../builtin/game/item.lua:199>
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Mon Feb 13, 2017 04:08

Update your engine build to something newer than 2017-01-24 (get a development build or build it from source). That function call was added on the same day as the hardware/param2 coloring feature, which this mod also needs.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
fireglow
Member
 
Posts: 72
Joined: Fri Mar 28, 2014 11:36
IRC: fireglow
In-game: fireglow

Re: [Mod] Industrial Lights [git][ilights]

by fireglow » Mon Feb 13, 2017 06:57

VanessaE wrote:Update your engine build to something newer than 2017-01-24 (get a development build or build it from source). That function call was added on the same day as the hardware/param2 coloring feature, which this mod also needs.

Updated minetest to gf17c9c45, works now.
Thanks!
 

User avatar
googol
Member
 
Posts: 48
Joined: Mon Dec 09, 2013 09:23

Re: [Mod] Industrial Lights [git][ilights]

by googol » Mon Feb 13, 2017 13:02

It`s cool
but I was hoping to see the multi-colored light from the lamps, too.
:(
We do better minetest.
better than minecraft.
 

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

Re: [Mod] Industrial Lights [git][ilights]

by VanessaE » Mon Feb 13, 2017 15:42

It's not possible to colorize the actual light. Engine limitation.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] Industrial Lights [git][ilights]

by Fixerol » Tue Feb 14, 2017 22:49

Players who are using 0.4.15 stable may prefer this version. Newest version is for 0.4.15-dev and beyond.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 49 guests

cron