| Time |
Nick |
Message |
| 00:08 |
|
Panquesito7_ joined #luanti-dev |
| 04:00 |
|
MTDiscord joined #luanti-dev |
| 05:48 |
|
Sharpman joined #luanti-dev |
| 06:15 |
|
sugarbeet joined #luanti-dev |
| 08:15 |
|
TenPlus1 joined #luanti-dev |
| 08:16 |
TenPlus1 |
Hi folks |
| 08:20 |
sfan5 |
is it intentional that we expose core.assert_same? it's undocumented |
| 08:22 |
TenPlus1 |
When using Abm's, why doesnt the active_object_count register the player inside that mapblock ? |
| 08:24 |
TenPlus1 |
would be extremely handy to limit abm usage to directly around player only |
| 08:28 |
sfan5 |
the object count is pretty useless because you don't know which objects they are |
| 08:29 |
sfan5 |
the direct answer is that it only counts objects that are statically saved |
| 08:29 |
TenPlus1 |
true, but it reports 0 when only the player is inside active block... seemed strange |
| 08:30 |
TenPlus1 |
am looking for a way to only run abm directly around player but aoc didnt work |
| 08:32 |
|
chripo joined #luanti-dev |
| 08:32 |
sfan5 |
ABMs only run in active blocks, and active blocks are only those near the player, so what's the point? |
| 08:33 |
TenPlus1 |
I mean directly around as in neighbouring block, not the whole active block range |
| 08:33 |
sfan5 |
but why? |
| 08:34 |
TenPlus1 |
I have falling leaves in Ethereal which currently use Abm's to find the leaves, chose a random few and drop animated particles... this works fine but runs for whole active block range which is kinda huge |
| 08:35 |
TenPlus1 |
I wanted it to run just around player for effect, tried the globalstep way of grabbing leaves in a box in front of player but even though it works well, is slower |
| 08:35 |
TenPlus1 |
https://codeberg.org/tenplus1/ethereal/src/branch/master/leaves.lua#L582 |
| 08:37 |
TenPlus1 |
was hoping if aoc was simple 1 (player in block) it would help, but as above, reports 0 |
| 08:38 |
sfan5 |
as I said the count is useless because e.g. a dropped item would also be counted |
| 08:39 |
sfan5 |
if you want to do this anyway you can manually check the distance to any player |
| 08:39 |
TenPlus1 |
inside an abm for every leaf, wouldnt that slow things down more ? |
| 08:43 |
sfan5 |
i don't think some basic position math should be slow, but try it |
| 08:43 |
TenPlus1 |
time to tinker, thanks dude... o/ |
| 09:15 |
|
YuGiOhJCJ joined #luanti-dev |
| 09:40 |
|
Desour joined #luanti-dev |
| 11:51 |
|
YuGiOhJCJ2 joined #luanti-dev |
| 12:21 |
|
YuGiOhJCJ2 joined #luanti-dev |
| 16:43 |
|
Panquesito7 joined #luanti-dev |
| 19:56 |
|
crazylad joined #luanti-dev |
| 20:24 |
|
pgimeno joined #luanti-dev |
| 21:54 |
|
crazylad joined #luanti-dev |
| 22:06 |
|
mrcheese joined #luanti-dev |
| 22:13 |
|
mrcheese joined #luanti-dev |
| 22:28 |
|
panwolfram joined #luanti-dev |