Page 1 of 1

[Mod] Industrial Lights [git][ilights]

Posted: Wed May 20, 2015 03:07
by VanessaE
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:

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

You can right-click a light to turn it on/off, or send it a Mesecons signal. They are also Digilines compatible, and will respond to "on" and "off" messages sent from another source. There are no return/status messages. Just shift-punch a light to set its channel.

These lights will stay on when placed, until you explicitly shut them off with one of the above.

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

License: CC-By-Sa

Download: https://github.com/mt-mods/ilights/arch ... master.zip
...or browse the code: https://github.com/mt-mods/ilights

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."
Spoiler
Image

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

Posted: Wed May 20, 2015 03:38
by VanessaE
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.

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

Posted: Thu May 21, 2015 18:10
by Desour
I think, the old models were better.

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

Posted: Fri May 22, 2015 16:57
by Krock
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

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

Posted: Sat May 23, 2015 04:52
by Nathan.S
I agree with krock dark cages do look better.

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

Posted: Sat May 23, 2015 04:56
by VanessaE
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?

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

Posted: Sat May 23, 2015 06:57
by Krock
Image

I converted the original texture to a black/white image then increased contrast and decrased the brightness.

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

Posted: Sat May 23, 2015 15:28
by VanessaE
Merged that in.

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

Posted: Mon May 25, 2015 20:11
by Minetestforfun
Awesome VanessaE O_o !

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

Posted: Tue May 26, 2015 00:33
by philipbenr
+1 looks amazing. I am liking meshnodes...

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

Posted: Mon Jun 01, 2015 07:36
by cd2
I like it!

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

Posted: Mon Jan 30, 2017 18:37
by VanessaE
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.

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

Posted: Sun Feb 05, 2017 01:03
by VanessaE
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.

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

Posted: Mon Feb 13, 2017 03:08
by fireglow
Got a server crash with git commit 70145d3 after placing an ilight on a wall so its top faces the player:

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>

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

Posted: Mon Feb 13, 2017 04:08
by VanessaE
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.

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

Posted: Mon Feb 13, 2017 06:57
by fireglow
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!

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

Posted: Mon Feb 13, 2017 13:02
by googol
It`s cool
but I was hoping to see the multi-colored light from the lamps, too.
:(

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

Posted: Mon Feb 13, 2017 15:42
by VanessaE
It's not possible to colorize the actual light. Engine limitation.

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

Posted: Tue Feb 14, 2017 22:49
by Fixer
Players who are using 0.4.15 stable may prefer this version. Newest version is for 0.4.15-dev and beyond.

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

Posted: Tue Aug 08, 2017 18:29
by KatzEyez
I recently started playing MineTest. I seen these lights in a video shared in a group on FB and really liked these lights a lot! I was pointed here by the OP. Thank you for this mod!

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

Posted: Fri Aug 11, 2017 10:07
by paramat
Hi, that was me who linked you.

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

Posted: Thu Aug 17, 2017 12:56
by KatzEyez
paramat wrote:Hi, that was me who linked you.
Oh hi, thank you for that! Sorry for the delayed reply. :) Idk who ppl are on FB, in game and on here, so sorry for not knowing.

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

Posted: Wed Jun 06, 2018 12:30
by VanessaE
This project has been moved to Gitlab.

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

Posted: Mon Aug 23, 2021 12:21
by AntumDeluge
I love these lights. They make my helipad look great.

Image