[Mod] Industrial Lights [git][ilights]

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

[Mod] Industrial Lights [git][ilights]

by VanessaE » Post

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://gitlab.com/VanessaE/ilights/-/a ... master.zip
...or browse the code: https://gitlab.com/VanessaE/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
Attachments
ilights-screenshot.png
(194.03 KiB) Not downloaded yet
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

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

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

by VanessaE » Post

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 (64-512px)

User avatar
DS-minetest
Member
Posts: 1141
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: DS-minetest
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by DS-minetest » Post

I think, the old models were better.
Note that I've recently renamed myself on github and co. to "Desour". (I'm bad at naming things.)
Feel free to call me DS.

User avatar
Krock
Developer
Posts: 4562
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

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
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Nathan.S
Member
Posts: 1031
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

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

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

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

by VanessaE » Post

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 (64-512px)

User avatar
Krock
Developer
Posts: 4562
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

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

by Krock » Post

Image

I converted the original texture to a black/white image then increased contrast and decrased the brightness.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

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

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

by VanessaE » Post

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

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

Awesome VanessaE O_o !

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

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

by philipbenr » Post

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

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

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

by cd2 » Post

I like it!

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

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

by VanessaE » Post

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 (64-512px)

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

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

by VanessaE » Post

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 (64-512px)

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

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

by fireglow » Post

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>

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

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

by VanessaE » Post

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 (64-512px)

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

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

by fireglow » Post

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: 81
Joined: Mon Dec 09, 2013 09:23

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

by googol » Post

It`s cool
but I was hoping to see the multi-colored light from the lamps, too.
:(
I am groot!

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

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

by VanessaE » Post

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 (64-512px)

User avatar
Fixer
Member
Posts: 896
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

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

by Fixer » Post

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

User avatar
KatzEyez
Member
Posts: 45
Joined: Tue Aug 08, 2017 18:24
GitHub: KatzPetz
IRC: LadyK
In-game: LadyK
Location: (IG: Depends) (RL: USA)

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

by KatzEyez » Post

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!
Why wish upon a star when you can pray to the one who created it.

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

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

by paramat » Post

Hi, that was me who linked you.

User avatar
KatzEyez
Member
Posts: 45
Joined: Tue Aug 08, 2017 18:24
GitHub: KatzPetz
IRC: LadyK
In-game: LadyK
Location: (IG: Depends) (RL: USA)

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

by KatzEyez » Post

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.
Why wish upon a star when you can pray to the one who created it.

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

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

by VanessaE » Post

This project has been moved to Gitlab.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests