[mod] There shall be light ! lagfree in air and water [lightup]

Post Reply
u18398

[mod] There shall be light ! lagfree in air and water [lightup]

by u18398 » Post

Image
Last edited by u18398 on Wed Jul 20, 2022 06:09, edited 3 times in total.

User avatar
apercy
Member
Posts: 645
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [mod] There shall be light ! [lightup]

by apercy » Post

Nice mod!!!!!!

u18398

Re: [mod] There shall be light ! [lightup]

by u18398 » Post

Update:

fix error when placing a node on a lightnode (water or air)

User avatar
firefox
Member
Posts: 1709
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox
Location: Xanadu

Re: [mod] There shall be light ! [lightup]

by firefox » Post

rather than a torchlight tool, this would be nice if implemented as armor.
doesn't necessarily need to be a helmet, nipple lights would work, too. :P
βœ¨πŸ³οΈβ€πŸŒˆβ™£οΈβœ¨

u18398

Re: [mod] There shall be light ! [lightup]

by u18398 » Post

lol, this can be implemented as anything. It just needs a start pos for the ray to calculate.

Originally I started to play around with this because we searched for a light for the nautilus.
viewtopic.php?f=9&t=25001

User avatar
FreeLikeGNU
Member
Posts: 280
Joined: Tue Oct 28, 2014 02:50
GitHub: FreeLikeGNU
IRC: freelikegnu
In-game: FreeLikeGNU

Re: [mod] There shall be light ! [lightup]

by FreeLikeGNU » Post

Cool!

u18398

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by u18398 » Post

Update:

no more dependent on mobkit
uses raycasts, no expansive node calculations
now uses nodetimers instead of minetest.after() which works
reliantly and leaves no traces. This way I could get rid of all the
LBMs which checked for remains of the bright nodes.

You can easily add other nodes, just see the table in init.lua.
It still works with privs but it has WTFPL so apply it to WTF you want to XD

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by runs » Post

Cool concept.

u18398

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by u18398 » Post

Update


fixed blinking light bug in water
removed light nodes from inventory
now smooth by default

cuthbertdoublebarrel
Member
Posts: 348
Joined: Tue Apr 14, 2020 16:03
GitHub: cuthbert

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by cuthbertdoublebarrel » Post

missed this one
yeah a water proof torch is a very useful tool to have .
nice one gundul
Project BrutalTest...hide your Petz

cuthbertdoublebarrel
Member
Posts: 348
Joined: Tue Apr 14, 2020 16:03
GitHub: cuthbert

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by cuthbertdoublebarrel » Post

conflicting with the witt mod ,now everything registers as light air or flickers rapidly between that and the item label .
any chance you could add a setting that the light only activates when its pointed at a dark area instead of active all the time ?
Project BrutalTest...hide your Petz

u18398

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by u18398 » Post

Sorry but this mod is only a proof of concept. It is not meant to be used standalone.
The priv solution I made only to demonstrate how it works and that it works at all.
Code is WTFPL so you can use it in any mod you made from it. Maybe just consider
writing some credit where it came from.

u18398

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by u18398 » Post

Update

fixed bug with brightwater nodes and self renewable.

User avatar
hex
Member
Posts: 82
Joined: Sun Dec 06, 2020 04:22
IRC: hecks
In-game: hex hhhehehe

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by hex » Post

I did something like this before using a Bresenham walk, not a raycast, but I forgot the reason. Could entities possibly interfere with the raycast?

u18398

Re: [mod] There shall be light ! lagfree in air and water [lightup]

by u18398 » Post

Interfering with objects could be turned on/off. Like it is now, when thy ray hits an object it will stop and return the position of the object. So the light will be at the objects position.

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests