Time |
Nick |
Message |
00:07 |
|
puzzlecube1 joined #minetest |
00:22 |
|
Copenhagen_Bram joined #minetest |
00:26 |
|
puzzlecube2 joined #minetest |
00:29 |
|
Lone_Wolf joined #minetest |
01:07 |
|
Pie-jacker875 joined #minetest |
01:23 |
|
NoctisLabs joined #minetest |
01:31 |
|
Sketch2 joined #minetest |
01:36 |
Copenhagen_Bram |
I wonder... how would a p2p minetest server work? |
01:42 |
Calinou |
it wouldn't? :P |
01:42 |
Calinou |
there would be little benefit compared to the downsides |
01:42 |
Calinou |
(let alone the sheer amount of work required) |
01:42 |
Calinou |
the fact the world is persistent makes that difficult in the first place |
01:42 |
|
puzzlecube2 joined #minetest |
01:42 |
Calinou |
(think of a torrent, if nobody seeds it, you can't get the file at all) |
01:48 |
|
Miner_48er joined #minetest |
01:51 |
Wuzzy |
what about a p2p server list? |
01:55 |
|
tuedel joined #minetest |
02:00 |
|
tuedel joined #minetest |
02:21 |
|
amenji joined #minetest |
02:48 |
|
scr267_ joined #minetest |
02:48 |
scr267_ |
!mod blox |
02:48 |
MinetestBot |
scr267_: Opposite Blocks[oblox] by StarNinjas - https://forum.minetest.net/viewtopic.php?t=20205 |
02:49 |
scr267_ |
Anyone having issues with the forum? |
02:51 |
scr267_ |
!mod bobblocks |
02:51 |
MinetestBot |
scr267_: BobBlocks [bobblocks] by RabbiBob - https://forum.minetest.net/viewtopic.php?t=1274 |
02:52 |
Sketch2 |
hmm, yea forum replies 502 Bad Gateway nginx/1.12.2 |
02:52 |
scr267_ |
Oh hum, yep FYI 502 NGINX errors |
02:52 |
scr267_ |
LOL, yeah just saw that too |
02:52 |
scr267_ |
Well that confirms it for me, thanks Sketch2 |
02:56 |
|
Corey[m] joined #minetest |
02:56 |
Corey[m] |
Same here |
02:57 |
scr267_ |
!mod books |
02:57 |
MinetestBot |
scr267_: Books plus [books_plus] by red - https://forum.minetest.net/viewtopic.php?t=12140 |
02:57 |
|
Hawk777 joined #minetest |
03:20 |
|
Ruslan1 joined #minetest |
03:27 |
|
Volgaar joined #minetest |
03:27 |
|
Wuzzy joined #minetest |
03:45 |
|
Quiark joined #minetest |
03:45 |
Quiark |
forum is back up so I can continue being totally unproductive |
03:48 |
scr267_ |
:) |
03:48 |
|
Foz joined #minetest |
04:07 |
|
NoctisLabs joined #minetest |
05:06 |
|
Volgaar joined #minetest |
05:49 |
|
fluxflux joined #minetest |
06:23 |
|
Flabb joined #minetest |
06:56 |
|
ensonic joined #minetest |
07:03 |
|
scr267 joined #minetest |
07:15 |
|
jluc joined #minetest |
07:17 |
|
TomTom joined #minetest |
07:33 |
|
andyo joined #minetest |
07:37 |
|
supahati joined #minetest |
07:39 |
|
Norore joined #minetest |
08:02 |
|
Sketch2 joined #minetest |
08:05 |
|
CWz joined #minetest |
08:38 |
|
ShadowNinja joined #minetest |
08:53 |
|
NobleTechie left #minetest |
08:54 |
|
NobleTechie joined #minetest |
09:05 |
Quiark |
cool stuff in the screenshots thread |
09:25 |
|
ensonic joined #minetest |
09:52 |
|
ssieb joined #minetest |
10:21 |
|
Markow joined #minetest |
10:34 |
|
proller joined #minetest |
10:53 |
|
Fixer joined #minetest |
10:59 |
|
Hirato_ joined #minetest |
11:12 |
|
Persi joined #minetest |
11:18 |
|
proller joined #minetest |
11:30 |
|
tomraceror joined #minetest |
11:44 |
|
CWz joined #minetest |
12:08 |
|
riff-IRC joined #minetest |
12:19 |
|
proller joined #minetest |
12:32 |
|
Fixer joined #minetest |
12:39 |
|
calcul0n joined #minetest |
12:53 |
|
calcul0n joined #minetest |
12:53 |
|
proller joined #minetest |
12:53 |
|
TomTom joined #minetest |
12:53 |
|
jluc joined #minetest |
12:53 |
|
Foz joined #minetest |
12:53 |
|
amenji joined #minetest |
12:53 |
|
BillyS joined #minetest |
12:53 |
|
pyrollo joined #minetest |
12:53 |
|
BuckarooBanzai joined #minetest |
12:53 |
|
kawaiipunk joined #minetest |
12:53 |
|
Edgy1 joined #minetest |
12:53 |
|
eukara joined #minetest |
12:53 |
|
namespace joined #minetest |
12:53 |
|
erstazi joined #minetest |
12:53 |
|
stiell joined #minetest |
12:53 |
|
Hijiri joined #minetest |
12:53 |
|
comrad joined #minetest |
12:57 |
|
tomraceror joined #minetest |
13:03 |
|
Fixer_ joined #minetest |
13:11 |
|
proller joined #minetest |
13:11 |
|
nri joined #minetest |
13:22 |
|
nri joined #minetest |
13:32 |
|
Fixer joined #minetest |
14:09 |
|
CrazyDave joined #minetest |
14:33 |
|
NathanS21 joined #minetest |
14:44 |
|
tomraceror joined #minetest |
15:42 |
|
Ruslan1 joined #minetest |
15:42 |
|
Pie-jacker875 joined #minetest |
15:44 |
|
Lunatrius joined #minetest |
16:13 |
|
AkRa_ joined #minetest |
16:15 |
AkRa_ |
hi! |
16:17 |
|
majochup joined #minetest |
16:21 |
|
Lone_Wolf joined #minetest |
16:36 |
|
Wuzzy joined #minetest |
17:02 |
|
Pie-jacker875 joined #minetest |
17:25 |
|
Krock joined #minetest |
17:34 |
|
ssieb joined #minetest |
17:36 |
|
ensonic joined #minetest |
17:43 |
|
fluxflux joined #minetest |
18:03 |
|
puzzlecube joined #minetest |
18:45 |
|
FreeFull joined #minetest |
19:00 |
|
Norore joined #minetest |
19:21 |
MinetestBot |
[git] sfan5 -> minetest/minetest: Optimize semaphore wait with zero timeout on POSIX 49365b2 https://git.io/JeryS (2019-11-14T19:20:14Z) |
19:25 |
|
Soo_Slow joined #minetest |
19:29 |
|
Volgaar joined #minetest |
19:30 |
|
fwhcat joined #minetest |
19:31 |
|
scr267_ joined #minetest |
19:35 |
|
nowhere_man joined #minetest |
19:40 |
|
Doyousketch2 joined #minetest |
19:49 |
|
scr267 joined #minetest |
19:50 |
|
ensonic joined #minetest |
20:01 |
|
MaybeItsMia joined #minetest |
20:02 |
MaybeItsMia |
Is it possible to "append" statements to an already existing function in Lua? |
20:02 |
rubenwardy |
yes, define a new function which wraps it |
20:03 |
rubenwardy |
local old = func; func = function() old(); stuff end |
20:03 |
MaybeItsMia |
Would I get the new functionality by calling the old function? |
20:04 |
rubenwardy |
err |
20:05 |
rubenwardy |
if you called func() you would |
20:05 |
rubenwardy |
however, the old function still exists the variable has just been redefined |
20:07 |
MaybeItsMia |
Wait so is the function acting like a variable? |
20:07 |
|
Pie-jacker875 joined #minetest |
20:07 |
rubenwardy |
yes, functions are first class in lua meaning that they are stored in variables |
20:09 |
rubenwardy |
well, first class actually just means that functions are values like any other value |
20:12 |
MaybeItsMia |
ugh, tbh what I'm thinking about might not be the best way to do what I want. I'm working on a mod to play background music like MC, playing a random track at sunrise, sunset, and whatnot. I do have a mod that works using "register_globalstep" to check every second if it's a particular time of day, but it would be nicer to have a system where I |
20:12 |
MaybeItsMia |
could define "triggers " to easily just run a function at points in the day that I determine |
20:12 |
|
Pie-jacker875 joined #minetest |
20:14 |
rubenwardy |
sounds like you want the observer pattern |
20:14 |
rubenwardy |
!book design |
20:14 |
MinetestBot |
rubenwardy: Nothing found. |
20:14 |
rubenwardy |
!book clean |
20:14 |
MinetestBot |
rubenwardy: Intro to Clean Architectures - https://rubenwardy.com/minetest_modding_book//en/quality/clean_arch.html |
20:14 |
MaybeItsMia |
oh thanks! |
20:14 |
Krock |
!book pattern |
20:14 |
MinetestBot |
Krock: Nothing found. |
20:15 |
MaybeItsMia |
I basically know how to code, I'm not super familiar with actual best practices, or designing code, ha ha |
20:16 |
sfan5 |
well it's not like you can use this pattern without anyone giving you the event you need |
20:16 |
sfan5 |
and afaik there is no way to specifically listen to changes to in-game time |
20:16 |
rubenwardy |
it sounds like they are the author of the mod which checks the time of day |
20:17 |
MaybeItsMia |
I mean register globastep works, I'm just concerned about how computationally intensive it might be. Also It's not super extensible |
20:31 |
|
AlexYst joined #minetest |
20:31 |
MaybeItsMia |
Is there more examples of the observer pattern? I'm having my trouble wrapping my head around it? |
20:34 |
rubenwardy |
every where in the Lua API |
20:34 |
rubenwardy |
register_globalstep is an example of the observer pattern |
20:35 |
MaybeItsMia |
Implementation I mean |
20:35 |
rubenwardy |
it's a fancy term for callbacks where the thing making the callback doesn't care who is listening |
20:35 |
rubenwardy |
the book already contains an example |
20:36 |
MaybeItsMia |
So I want to get to the point where I can say: |
20:38 |
Sketch2 |
you could make it so it doens't check time absolutely ever clock-tick. just have it do it when someone speaks, or joins / parts the server |
20:38 |
MaybeItsMia |
mymobs.register_on_timeofday() do stuffend) |
20:39 |
MaybeItsMia |
Sketch2 I already have it running every second instead of every tick |
20:39 |
Sketch2 |
ok, but my point was that you were worried about it being computationally expensive. |
20:40 |
Sketch2 |
the time change you're looking for is measured in hours, not seconds |
20:40 |
Sketch2 |
so you can cut back on the number of checks |
20:40 |
Sketch2 |
this will save you vast amounts of processing power |
20:43 |
MaybeItsMia |
I'm weirdly anal about the music starting at exactly sunset.... though I guess I could have it check every minute or so, then if it's within a minute of sunset I could have it que the music to play in the remaining time till the point I want to play it, though that might be a bit hacky, and lead to weirdness if people skip around time. |
20:43 |
MaybeItsMia |
*sunrise, though it doesn't make much of a difference to my point |
20:44 |
MaybeItsMia |
weirdly in minetest sunrise does not take place at exactly .25, but actually a bit before that |
20:58 |
Krock |
there's some value specified in the code that defines the sunrise |
21:12 |
|
proller joined #minetest |
21:33 |
|
pipo joined #minetest |
21:34 |
|
proller joined #minetest |
21:48 |
AlexYst |
What does the v7 caverns flag do? I thought it was responsible for the larger caves, but when I turn caves off and caverns on, I get a completely-solid earth, with no air pockets in the ground. |
22:11 |
|
proller joined #minetest |
22:12 |
|
Pie-jacker875 joined #minetest |
22:23 |
|
cdde joined #minetest |
22:34 |
|
riff-IRC joined #minetest |
22:47 |
|
Pie-jacker875 joined #minetest |
22:51 |
|
Pie-jacker875 joined #minetest |
22:54 |
|
longerstaff13 joined #minetest |
22:56 |
|
benrob0329 joined #minetest |
23:11 |
|
Fixer joined #minetest |
23:21 |
|
Ruslan1 joined #minetest |
23:47 |
|
sagax joined #minetest |
23:58 |
|
NoctisLabs joined #minetest |