Time Nick Message 06:25 ANAND Greetings! I'd like to know if it's possible to use a local variable in place of a numeric constant for minetest,after 06:26 ANAND like so: minetest.after(duration, function()) 06:26 sofar yes, absolutely 06:26 sofar even function() can be variable 06:27 ANAND but minetest crashes when I replace the constant with a variable 06:27 sofar how does the crash look? 06:29 ANAND Minetest\bin\..\builtin\common\after.lua:25: Invalid core.after invocation 06:29 sofar how does your code look? 06:30 sofar also 06:30 sofar your problem is probably 06:30 sofar minetest.after(duration, function) 06:30 sofar not 06:30 sofar minetest.after(duration, function()) 06:30 ANAND https://gist.github.com/ClobberXD/9e867010930f4431ce8313469257c37a 06:31 ANAND afk, brb 06:31 sofar need the code that creates the `duration` variable 06:32 sofar the error message suggests that `duration` is either nil or not a number value, as possible reason 06:32 sofar your pasted code looks OK 06:32 sofar if you inline a function, you need () after the word function 06:34 ANAND ah 06:34 ANAND the duration var might be the issue 06:34 sofar yep 06:35 ANAND duration is supposed to store an int from minetest.conf 06:35 ANAND which probably doesn't exist 06:35 sofar settings:get() ? 06:35 ANAND yest 06:35 ANAND yes* 06:36 ANAND I'll modify the code so that a default value is set if duration is nil after reading the setting 06:36 sofar so you can use something like 06:36 sofar `or 10` 06:36 sofar after the settings function call to make sure it has a default value 06:37 ANAND local duration = minetest.settings_get("duration") or 10 06:37 sofar biome_lib/init.lua:biome_lib.queue_run_ratio = tonumber(minetest.settings:get("biome_lib_queue_run_ratio")) or 100 06:37 ANAND ^ like that? 06:37 sofar yes, like that 06:37 ANAND so the 2nd value is taken if the first doesn't exist, right? 06:38 sofar if the left side of the `or` evaluates to `false` or `nil`, then the right hand side value is returned 06:38 ANAND Alright, I'll let you know if it works 06:40 sofar don't be shy and look at other mods' code too to see how they do it 06:42 ANAND Oh I am already looking at other mods' code too :) 06:43 ANAND That works without a hitch, thanks! 13:50 IhrFussel ANAND, don't use deprecated methods... minetest.settings_get() is deprecated..use minetest.settings:get() instead 14:16 ANAND IhrFussel, I did not know that... Thanks for the tip! 14:37 ANAND Is there a corresponding minetest.settings:set() too? 14:42 ANAND I guess there should be... thanks again :) 14:42 IhrFussel ANAND, the settings name is the exact same 14:43 IhrFussel Oh sorry misread 14:43 IhrFussel Yes set exists too 14:43 ANAND Right... thanks! 16:27 Minelord Is there a way to leave creative mode when you're an admin on a server? 16:28 sfan5 no 16:28 sfan5 some mods provide ways to set creative mode per-user though 17:40 MinetestBot 02[git] 04Dumbeldor -> 03minetest/minetest: Fix invisible chat error messages (#7289) 1324b6bd0 https://git.io/vpE6T (152018-05-01T17:38:37Z) 18:14 Fulgen Krock: thanks, I'll check the enabled mods (no need to shout, http://irc.minetest.net/minetest/2018-04-29 ftw) 18:18 Krock Fulgen, yay! The logs are being noticed :) 18:18 Fulgen :D 18:19 Krock it's really some mods that take an enormous long time to execute, either due inefficient programming or because Lua (without JIT) is very slow sometimes 18:19 Fulgen ok 18:21 Krock Hint. We have a profiler: https://github.com/minetest/minetest/blob/master/minetest.conf.example#L1395-L1399 18:22 Fulgen o.O nice one, thanks 18:22 Krock !next 18:22 MinetestBot Another satisfied customer. Next! 18:23 Fulgen limnoria? 18:23 Fulgen or not. 18:23 Fulgen anyways, the repositioning also happens in a test map without external mods 18:37 IhrFussel Fulgen, repositioning of entities? 18:37 Fulgen yea 18:37 Fulgen minecarts suddenly are at a position where they've already been before 18:37 epic8009 hi 18:38 IhrFussel Does it happen randomly? 18:39 epic8009 new poll: does @octacian suck dont respond to this for yes, respond to this for yes 18:40 Fulgen IhrFussel: randomly as in "I can't tell any reason why", yes 18:40 wowaname[m] this isnt twitter, you dont need @ before a name 18:40 wowaname[m] oh convenient, leaves right after 18:41 IhrFussel Fulgen, no I mean does it happen at random intervals or fixed ones when riding? 18:42 Fulgen IhrFussel: dunno, didn't count the seconds (yet), but if you ask my feeling it's more like fixed intervals 18:43 IhrFussel Add "disable_anticheat = true" to your minetest.conf and try again 18:43 IhrFussel It could be the anticheat feature doing that 18:44 IhrFussel Are you using 0.4.16? 18:46 Fulgen yea 18:52 IhrFussel Fulgen, 0.4.16 should have a pretty advanced anticheat already...older versions had wayy more false positives 18:52 Fulgen :o 18:52 IhrFussel But just to make sure try with that added line ^ 18:52 Fulgen yeah, minetest just decided not to start 18:53 IhrFussel Crash? 18:53 IhrFussel It cannot crash cause of that line...did you accidentally mistype something? 18:57 Krock IhrFussel, anticheat only has an effect for objects that aren't attached 18:57 Krock since they're observing lags with the minecarts too, then is anticheat not the issue 18:58 rubenwardy carts jolt due to anticheat 18:58 rubenwardy not sure why though 18:59 IhrFussel Krock, are you sure about that? Maybe that was a recent change but in the past I had multiple problems with attached players 18:59 Fulgen issue is gone, thanks! 18:59 Fulgen well, almost gone 19:00 IhrFussel Fulgen, if it's really gone now with that line added then it was caused by anticheat after all...or at least part of the reason 19:00 Fulgen :o 19:01 IhrFussel That is both good and bad...the good side is that the behavior is better now, the bad is that with disabled anticheat you're open to various cheats/exploits 19:01 IhrFussel The worst right now is Android players being able to interact with nodes from very far away 19:02 Fulgen I'm playing on Arch Linux, so not my problem :D 19:02 IhrFussel If you don't use it as server then anticheat doesn't matter 19:03 Fulgen ok 19:03 IhrFussel Anticheat is only for multiplayer servers to prevent basic cheating like speed hacks 19:04 sfan5 IhrFussel: if you want better anticheat you should actually upgrade to 0.4.17 19:06 IhrFussel sfan5, I did in december...were the improvements added later? 19:07 sfan5 no, just saying this in general 19:08 IhrFussel Oh yeah...but since 0.4.17 isn't "official" yet people might have issues finding the download for it 19:08 Fulgen I filed a bug report for this: https://github.com/minetest/minetest/issues/7292 19:08 sfan5 btw you should probably reproduce this bug with 0.5.0 19:08 IhrFussel Fulgen, are you on Win? 19:08 sfan5 in case it has been fixed in the meantime (for some reason) 19:08 Fulgen no, Arch Linux 19:09 IhrFussel Oh yeah you told me earlier^^ try to reproduce the bug on 0.5.0 ... or 0.4.17 at least (since anticheat improvements were backported) 19:10 Fulgen ok, I'll compile the latest git commit tomorrow and see if it has improved 19:11 IhrFussel Does Arch Linux support PPAs? 19:12 IhrFussel Cause that would be a faster way to test it since Minetest got a daily build there 19:12 rubenwardy lol! 19:12 rubenwardy the best thing about arch is they don't have PPAs 19:12 rubenwardy there's the AUR instead 19:13 Fulgen yeah, AUR ftw 19:14 IhrFussel I have no clue about that Linux version that's why I asked ... there is no need to compile from scratch just for testing if there's some kind of pre-built repo for it 19:16 rubenwardy compiling from scratch is easy 19:19 IhrFussel It takes longer than entering "blah blah install minetest" unless you have a automatic script for that 19:19 Fulgen tell that to all the gentoo users =) 19:28 IhrFussel Looks like anticheat ignores players with fast priv ... is that correct? Or at least it doesn't punish as soon then 19:29 IhrFussel I mean regarding movement speed only* 19:33 ThatLividDoggo Hello! 19:34 ThatLividDoggo Hi! 19:44 sfan5 IhrFussel: players with "fast" priv are allowed to move faster 19:44 sfan5 but they are not completely ignored 21:14 Ruslan1 Hello