Minetest logo

IRC log for #minetest, 2018-05-01

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:04 riff_IRC joined #minetest
00:15 est31 joined #minetest
00:21 lemonade joined #minetest
00:25 superfly joined #minetest
00:39 ehlodex joined #minetest
00:46 erudition joined #minetest
00:52 Jordach joined #minetest
00:53 bugzapper joined #minetest
00:57 ehlodex joined #minetest
01:42 EvergreenTree joined #minetest
02:00 Foz joined #minetest
02:01 who_da_fly joined #minetest
02:03 ehlodex joined #minetest
02:23 Jordach joined #minetest
02:24 ehlodex joined #minetest
02:32 wilkgr joined #minetest
02:46 superfly joined #minetest
02:47 Ruslan1 joined #minetest
02:51 who_da_fly joined #minetest
03:12 Cornelia joined #minetest
04:38 ssieb joined #minetest
04:53 Jordach joined #minetest
05:37 ehlodex joined #minetest
05:48 DrFrankenstone joined #minetest
06:22 ANAND joined #minetest
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 superfly joined #minetest
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!
06:54 Markow joined #minetest
07:05 cyberarm joined #minetest
07:10 lumberJ joined #minetest
07:24 Jordach joined #minetest
07:41 dvere joined #minetest
07:53 jluc joined #minetest
07:55 Fulgen joined #minetest
08:00 YuGiOhJCJ joined #minetest
08:06 ehlodex joined #minetest
08:22 lumberJuice joined #minetest
08:27 redneonglow joined #minetest
08:34 Gael-de-Sailly joined #minetest
08:37 ANAND joined #minetest
08:40 Lymkwi joined #minetest
08:42 ANAND_ joined #minetest
08:50 Xio joined #minetest
08:57 JMatZNC joined #minetest
08:57 Jordach joined #minetest
08:58 Xio joined #minetest
09:36 red-001 joined #minetest
09:46 FreeFull joined #minetest
10:00 Beton joined #minetest
10:01 lumberJ joined #minetest
10:07 Jordach joined #minetest
10:07 bas080 joined #minetest
10:11 Fixer joined #minetest
10:20 Jordach joined #minetest
10:30 Jordach joined #minetest
10:38 longerstaff13-m joined #minetest
10:51 ehlodex joined #minetest
10:54 Lymkwi joined #minetest
11:22 ssieb joined #minetest
11:50 Beton_ joined #minetest
12:18 lumberJ joined #minetest
12:26 DI3HARD139 joined #minetest
12:41 ensonic joined #minetest
12:50 ensonic joined #minetest
12:54 Tux[Qyou] joined #minetest
12:57 Jordach joined #minetest
13:09 CWz joined #minetest
13:12 ehlodex joined #minetest
13:12 Swablu joined #minetest
13:15 lumberJ joined #minetest
13:37 Jordach joined #minetest
13:38 Wuzzy joined #minetest
13:39 ensonic joined #minetest
13:49 IhrFussel joined #minetest
13:50 IhrFussel ANAND, don't use deprecated methods... minetest.settings_get() is deprecated..use minetest.settings:get() instead
14:09 nowhere_man joined #minetest
14:09 ehlodex_ joined #minetest
14:12 antims joined #minetest
14:16 ANAND IhrFussel, I did not know that... Thanks for the tip!
14:29 Jordach joined #minetest
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!
14:45 Player-2 joined #minetest
14:59 progysm joined #minetest
15:21 illwieckz joined #minetest
15:26 Akberid joined #minetest
15:36 Fulgen left #minetest
15:36 Fulgen joined #minetest
16:04 dvere joined #minetest
16:08 ehlodex joined #minetest
16:13 ensonic joined #minetest
16:21 Krock joined #minetest
16:23 EvergreenTree joined #minetest
16:27 Minelord joined #minetest
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
16:29 octacian joined #minetest
16:29 octacian joined #minetest
16:30 ehlodex_ joined #minetest
16:34 Jordach joined #minetest
16:34 Minelord left #minetest
16:57 Telesight joined #minetest
16:59 Telesight joined #minetest
17:14 ehlodex joined #minetest
17:25 ensonic joined #minetest
17:29 lisac joined #minetest
17:38 Raven262 joined #minetest
17:40 MinetestBot [git] Dumbeldor -> minetest/minetest: Fix invisible chat error messages (#7289) 24b6bd0 https://git.io/vpE6T (2018-05-01T17:38:37Z)
17:51 longerstaff13-m joined #minetest
17:53 ehlodex_ joined #minetest
18:13 ehlodex joined #minetest
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 ensonic joined #minetest
18:19 Fulgen ok
18:20 ehlodex joined #minetest
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 Cornelia joined #minetest
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:27 ehlodex joined #minetest
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 joined #minetest
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 epic8009 was kicked by rubenwardy: kick
18:40 Pie-jacker875 joined #minetest
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:42 ssieb joined #minetest
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:47 ehlodex_ joined #minetest
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 Fulgen joined #minetest
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 </ego>
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 xerox123_ joined #minetest
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 joined #minetest
19:33 ThatLividDoggo Hello!
19:34 Gael-de-Sailly joined #minetest
19:34 ThatLividDoggo Hi!
19:42 Player-2 joined #minetest
19:44 sfan5 IhrFussel: players with "fast" priv are allowed to move faster
19:44 sfan5 but they are not completely ignored
19:48 proller joined #minetest
19:52 Fixer joined #minetest
20:10 rubenwardy joined #minetest
20:30 Wuzzy joined #minetest
20:36 rohju joined #minetest
20:45 Taoki joined #minetest
21:10 ehlodex joined #minetest
21:13 Ruslan1 joined #minetest
21:14 Ruslan1 Hello
21:26 ehlodex_ joined #minetest
21:28 EvergreenTree joined #minetest
21:36 corvus_ joined #minetest
21:38 lisac joined #minetest
21:51 wilkgr joined #minetest
21:58 fwhcat joined #minetest
22:17 IhrFussel left #minetest
22:31 proller joined #minetest
22:39 CarbineMorpho joined #minetest
22:49 longerstaff13-m joined #minetest

| Channels | #minetest index | Today | | Google Search | Plaintext